VMware Player and Ubuntu 8.10 keyboard mapping issues

Yesterday I installed VMware Workstation 6.5 on my fresh install of Ubuntu 8.10. After powering on a Windows XP vm, I realized that I could not use the arrow keys properly. On hitting the left arrow key, start menu was being displayed and other arrow keys had similar issues. Also, using VMware player was completely impossible as ctrl-alt-del wasn’t working.

After searching around a bit I found that many others had faced similar issue. Apparently it is not a bug with VMware Workstation. Due to some updates to Ubuntu 8.10, the keyboard mappings were screwed up. I found good amount of information in the VMware communities forum.

To fix this issue, you simply need to run the following command,

echo 'xkeymap.nokeycodeMap = true' > ~/.vmware/config

and if VMware Player/Server/Workstation was running, just restart it.

You should then be good to go…

41 Replies to “VMware Player and Ubuntu 8.10 keyboard mapping issues”

  1. Add the following code to your /etc/vmware/config 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

  2. Thanks Carlos but it did not fixed my keys..

    ?£ and ?ß?° and those…

    the “7” and “/” is fine, but the “special” keys (~?ß-_’`?°) dont work :S

    Any ideas ?

  3. Thanks – I was unable to select entries in the Grub boot menu of the physical disk I assigned to a VM. Now it’s working again!

  4. Thanks, it fixed my arrow keys problem on my toshiba laptop.
    AltGr key not working but i can go around it by using Alt + Ctrl keys.

  5. Great hint! In vmware sever 1.08 I had to copy the string into /etc/vmware/config for it to work, but pay attention, use the “>>” and not “>” for echo, i overwrote the entire config file and nedeed to launch vmware-config.pl to turn back ^^;
    Thank you

  6. Great post. Been looking for an easy solution and your one line command just sorted it all. I just knew there had to be a config line for this. Thank you for a great post which ranks nicely on Google using the phrase “ubuntu 8.10 vmware workstation keyboard problem”.

    Cheers!

  7. I made this changes in my ~/.vmware/config file and the portuguese special keys (¬?¬™~^?ß?ᬥ`\|’?¬´¬ª) work fine.

    xkeymap.keycode.61 = 0x035 # –
    xkeymap.keycode.61 = 0x5f # _
    xkeymap.keycode.47 = 0x027 # ?ß
    xkeymap.keycode.47 = 0xc7 # ?á
    xkeymap.keycode.48 = 0x028 # ¬?
    xkeymap.keycode.48 = 0xaa # ª
    xkeymap.keycode.51 = 0x02b # ~
    xkeymap.keycode.51 = 0xfe52 # ^
    xkeymap.keycode.34 = 0x01a # +
    xkeymap.keycode.34 = 0x2a # *
    xkeymap.keycode.35 = 0x01b # ´
    xkeymap.keycode.35 = 0xfe50 # `
    xkeymap.keycode.20 = 0x00c # ‘
    xkeymap.keycode.20 = 0x3f # ?
    xkeymap.keycode.21 = 0xab # ¬´
    xkeymap.keycode.21 = 0xbb # »
    xkeymap.keycode.49 = 0x029 # \
    xkeymap.keycode.49 = 0x056 # |

    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

  8. arrow keys don’t work in ubuntu, kubuntu, mint, left and up and down and right are not respecting speed repeat rates of rest of keyboard… making coding annoying

  9. I’m no linux expert (in fact I just installed ubuntu 8.10 and am having keyboard issues) but shouldn’t the command have a >> instead of > ? You wouldn’t want to overwrite the config file…

  10. I didn’t notice it was a “>”, so… by default is there anything at the config file?
    I agree with Rahul, it must be “>>” instead of “>”.
    Anyway, it solved my problem! thank you!

  11. arrow keys don’t work in ubuntu, kubuntu, mint, left and up and down and right are not respecting speed repeat rates of rest of keyboard… making coding annoying

Leave a Reply

Your email address will not be published. Required fields are marked *