VMware + X.org + gnome-screensaver + strong password = FAIL

Guess what happens when you use software that can fuck up your keyboard mappings (VMware Remote Console), in combination with software that uses these mappings to be able to switch back to a text console (X.org) and a screen saver that locks your screen (gnome-screensaver, but that would worl equally well with xlock or anything else similar) ? A recipe for FAIL.

It so happens that VMware Remote Console, and apparently other VMware products such as Player or Workstation not only are unable to do anything useful with special keys (try installing Debian without the arrows keys, for example), but they are also able to remap keys (such as ctrl, shift and caps lock) to nothing.

It also happens that X.org uses its keyboard mappings when dealing with the ctrl+alt+Fn key combinations that allow to get back to a text console. Yes, that means you can't switch to a text console after VMware fucked up your keyboard mappings.

On top of all that, add a X session locking program, that won't allow you back until you type your password, and a password that, well, you just can't type without shift of caps-lock, because it is somehow strong. The X session locking program won't allow you to fix your keyboard mappings, you can't switch to a text console either, and you can't unlock for obvious reasons.

The only solution that didn't involve a reboot or losing everything under the X session was to ssh in, change the password to one that can be typed without shift and unlock.

It is said on the interwebs that adding "xkeymap.nokeycodeMap = true" in the ~/.vmware/config file solves the issue. At least, it works for the arrows. I'll see if it also prevents the special keys to be remapped.

2009-12-09 00:13:15+0900

miscellaneous, p.d.o

You can leave a response, or trackback from your own site.

5 Responses to “VMware + X.org + gnome-screensaver + strong password = FAIL”

  1. me Says:

    wouldn’t it have been easier to just pkill gnome-screens?

  2. Andres Freund Says:

    As a last resort sysrq-unraw(R) is very usefull in such a situation…

  3. Marius Gedminas Says:

    ssh + sudo chvt 1 is a replacement for Ctrl+Alt+F1.

  4. jell Says:

    why U didn’t change ctrl+alt in vmware configuration to something other, like ctrl+alt+shift? alt+ctrl+f1 works as excepted in that configuration…

  5. Patrik Says:

    That’s what we have the magic SysRequest key for.

    Alt+PrintScreen+r to reset keyboard mappings, followed by Alt+F1 to switch to vt 1.

Leave a Reply