[opensuse] Re: vmware and keyboard layout
Roger Oberholtzer wrote:
On Tue, 2010-06-01 at 01:24 +0200, Carlos E. R. wrote:
No one knows of a command to reset the keyboard to the boot state? I cannot believe that there is no such command. I trued the rc script that sets up the keyboard (kbd) but that did not help.
AFAIU, your normal keys still work, but your modifier keys (Shift, Ctrl, etc.) don't work anymore after leaving VMware. Then the cited VMWare knowledge base article probably won't help you, it's about non-fitting keyboard assignments within VMware instances, not VMWare-induced problems on the host's key bindings. I can only guess the root cause of your problem, but maybe you want to try the following. (Step 4 has a test if my guess is right; maybe you want to try that out first, but then you'll face an additional reboot.) 1) Use the command xmodmap -q -pm | sed -e '1 d' -e '/^$/ d' \ -e 's/, //' -e 's/ (0x[0-9a-f]*)//g' \ -e 's/ */ = /' \ -e 's/.*/add &/' >xmodmap.mod-keys to create a xmodmap control file that resets the modifier keys as they were after login. 2) Create a script in key-reload your path #!/bin/sh xmodmap /wherever/this/file/is/xmodmap.mod-keys 3) Create your VMware problem situation. Make sure that you have a terminal window open that you can select by mouse. 4) Call "xmodmap -pm" If that reports key bindings, then the problem lies somewhere else and this approach won't help you. If that doesn't report any key bindings, call the script that you created in step 2). Check if you can use your modifier keys again. 5) If it helps, make sure you can call that script easily with a mouse, e.g., add it to your KDE/GNOME/whatever command menu. I have this problem with missing modifier keys regularly, though not caused by VMware. It appeared here since I gat a new workstation with an Intel 82Q35 integrated graphics controller. Quality of X drivers seem to detoriate... If my guess of your root cause is right, this is a better solution than calling setxkbmap. setxkbmap installs a default mapping, but not the specific mapping that you had beforehand. HTH, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Joachim Schrod