Note, that this recipe is not updated long time and could be outdated!
Got it.

VmWare Keyboard Fix

When releasing VmWare server console or player in Ubuntu, it happens that keyboard control keys stop working either inside virtual computer or on host system.
This issue is fixed for Vmware Player 3.0 version (checked on Ubuntu 9.10)!


Simple workaround for host system

  1. If control keys don't work in host system after leaving guest system, try to run setxkbmap command to reinitialize keyboard for host system. Feel free to create application launcher to do it quickly using mouse

Workaround for guest and host system

  1. Another way is to add additional VmWare settings. Do the following:

    gedit ~/.vmware/config

    add following lines in the file:

    xkeymap.nokeycodeMap = true
  2. If control keys don't work inside virtual computer, do following:

    gedit ~/.vmware/config
  3. add following lines in the file:

    xkeymap.keycode.108 = 0x138 # Alt_R
    xkeymap.keycode.106 = 0x135 # KP_Divide
    xkeymap.keycode.104 = 0x11c # KP_Enter
    xkeymap.keycode.111 = 0x148 # Up
    xkeymap.keycode.116 = 0x150 # Down
    xkeymap.keycode.113 = 0x14b # Left
    xkeymap.keycode.114 = 0x14d # Right
    xkeymap.keycode.105 = 0x11d # Control_R
    xkeymap.keycode.118 = 0x152 # Insert
    xkeymap.keycode.119 = 0x153 # Delete
    xkeymap.keycode.110 = 0x147 # Home
    xkeymap.keycode.115 = 0x14f # End
    xkeymap.keycode.112 = 0x149 # Prior
    xkeymap.keycode.117 = 0x151 # Next
    xkeymap.keycode.78 = 0x46 # Scroll_Lock
    xkeymap.keycode.127 = 0x100 # Pause
    xkeymap.keycode.133 = 0x15b # Meta_L
    xkeymap.keycode.134 = 0x15c # Meta_R
    xkeymap.keycode.135 = 0x15d # Menu
    xkeymap.keycode.79  = 0x137 # Numpad_Home as Prt_Scr

    note that these lines are not working, if xkeymap.nokeycodeMap = true setting is used, so these solutions are mutually exclusive.


Created by Valdis Vītoliņš on 2013-09-08 17:28
Last modified by Valdis Vītoliņš on 2013-09-09 13:49
Xwiki Powered
Creative Commons Attribution 3.0 Unported License