I finally found a solution by reading the man for xmodmap. See http://ubuntuforums.org/showthread.php?t=738490
Here is the info: I'm using Hardy beta. Do NOT use gnome's keyboard control (Ubuntu System > Preferences > Keyboard > Layout Options). Instead follow the example in man xmodmap as explained below. NOTE: before doing this, undo any changes in Keyboard layout options. Put the options back to defaults in gnome's keyboard control. And, if you have done anything advanced to try to work around these issues, remove those modifications too. For example, the following is NOT needed so if you are using it, remove it (may require a restart): xmodmap -e "clear lock" -e "add lock = Caps_Lock" Put the following in a text file. ! ! Swap Caps_Lock and Control_L ! remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L save the above as /etc/SwapCapsCtrl.kmap then, from a terminal, run: xmodmap /etc/SwapCapsCtrl.kmap To make the change permanent, do this: edit /etc/rc.local add the following before the last line that says 'exit 0' sudo loadkeys /etc/SwapCapsCtrl.kmap Now in tsclient (Terminal Services Client) version 0.150, in the Local Resources tab, make sure the correct keyboard layout is selected. For me, it is en-us. Previously I either left it blank (or I tried two letter codes like "us"). With the correct code, everything works. With the incorrect code, tsclient will often give an error when disconnecting -- and the keyboard layout options are not applied correctly, as mentioned previously. Everything is now working exactly right for the first time. __________________ -- keyboard layout changes are problematic https://bugs.launchpad.net/bugs/207960 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs