Linx Trix

July 22, 2008

VMWare Alt Key gets Stuck

Filed under: medium, vmware — Tags: — admin @ 3:14 pm

There seems to be a bug in VMWare, at least in Linux when you switch back and forth between the Guest and Host sometimes the Alt key gets stuck in the Host, where in the guest the key is not stuck. This simple script solves the problem:

#!/bin/sh
/usr/bin/xmodmap – << XXX
clear shift
add shift = Shift_L Shift_R
clear lock
add lock = Caps_Lock
clear control
add control = Control_L Control_R
clear mod1
add mod1 = Alt_L Alt_R
clear mod2
add mod2 = Num_Lock
clear mod3
clear mod4
add mod4 = Super_L Super_R
clear mod5
add mod5 = Scroll_Lock
XXX

Just run it and it will clear the stuck keys.

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Slashdot
  • StumbleUpon
  • Live
  • Propeller
  • Technorati
  • Google Bookmarks
  • YahooMyWeb

2 Comments »

  1. I have run into this problem too. Generally it’s ALT key, but sometimes other keys like CAPS LOCK get stuck on. At first I didn’t know what was happening, as I’d be typing on the host and menue and windows would go crazy. Once I figured out which key was stuck, pressing it on the Host caused it to get unstuck.

    Comment by Mark MacVicar — July 31, 2008 @ 9:31 pm

  2. Yes, like said in the post for me too the Alt key was the one, but there was nothing I could do about it except this script

    Comment by admin — August 1, 2008 @ 12:28 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress