Wrong keyboard layout on client PC when using synergy
Solution 1:
In my case synergy seams simply to ignore actual keyboard layout but it helps if I set it after starting synergyc.
synergyc myhost
setxkbmap us -option grp:alt_shift_toggle
You will find correct values for setxkbmap
arguments in file /etc/default/keyboard
. Instead of us
place value of XKBLAYOUT
and pass value of XKBOPTIONS
to -options
.
You can use this simple script to do this automatically:
#!/bin/sh
. /etc/default/keyboard
synergyc $1
setxkbmap $XKBLAYOUT -option "$XKBOPTIONS" -model "$XKBMODEL" \
-variant "$XKBVARIANT"
Save it as mysynergyc
, set correct permissions (chmod 755 mysynergyc
) and then run as usual instead of synergyc
.
Solution 2:
Search for "Keyboard Layout" and open it.
Use the plus sign on the bottom left of the screen to add the keyboard layout "English(US)".
Restart synergy
This worked for me. (Ubuntu 11.10 64-bit)
Solution 3:
I had the same problem with my Windows server / Ubuntu client configuration. At work I had the setup the other way around and it worked like a dream.
As a workaround a added an another keymap to the Ubuntu client. Then while using Synergy switched the keymap from en to de and it started working.
Solution 4:
Stop the synergy server, reset keyboard layout in server, then restart synergy seems to solve the problem in my situtation. Original reference is here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580504#15