Specifications

Table Of Contents
VMware, Inc. 227
Chapter 8 Configuring Devices
If!you!are!using!an!XFree86based!server!that!VMware!Server!does!not!recognize!as!an!
XFree86!server,!enter!the!following!line!instead:!
xkeymap.usekeycodeMap = true
If!you!are!using!an!XFree86!server!running!locally,!and!the!keyboard!does!not!work!
correctly,!report!the!problem!by!submitting!a!support!request!at!
www.vmware.com/requestsupport.
Keyboard Mapping Support for the PC
Key!code!mapping!is!simple,!automatic,!and!foolproof.!(Keysym! mapping!is!more!
complex!and!described!later.)!However,!because!the!program!cannot!tell!whether!a!
remote!server!is!running!on!a!PC!or!on!some!other!kind!of!computer,!it!errs!on!the!safe!
side!and!uses!key!code!mapping !only!with
!local!X!servers.!This!is!often!too!conservative!
and!has!undesirable!effects.!This!and!other!behavior!related!to!key!codemapping!can!
be!controlled!by!using!a!text!editor!to!add!configuration!settings!to!the!virtual!
machine’s!configuration!file.
NOTE Powering!off!the!virtual!machine!and!close!the!console!before!you!edit!a!
configuration!file.
! xkeymap.usekeycodeMapIfXFree86 = true
Use!key!code!mapping!if!you!are!using!an!XFree86!server,!even!if!it!is!remote.!
! xkeymap.usekeycodeMap = true
Always!use!key!code!mapping!regardless!of!server!type.!
! xkeymap.nokeycodeMap = true
Never!use!key!code!mapping.!
! xkeymap.keycode.<code> = <v-scan code>
If!using!key!code!mapping,!map!key!code!<code>!to!<v-scan code>.!In!this!
example,!<code>!must!be!a!decimal!number!and!<v-scan code>!should!be!a!
Csyntax!hexadecimal!number!(for!example,!0x001).!
The!easiest!way!to!find!the!X!key!code!for!a!key!is!to!run!xev!or!
xmodmap -pk.!Most!of!
the!vscan!codes!are!covered!in!the!“VScan!Code!Table!on!page 229.!The!keysym!
mapping!tables!described!in!this!section!are!also!helpful.!
Use!this!feature!to!make!small!modifications!to!the!mapping.!For!example,!to!swap!left!
Ctrl!and!Caps!Lock,!use!the!following!
lines:
xkeymap.keycode.64 = 0x01d # X Caps_Lock -> VM left ctrl
xkeymap.keycode.37 = 0x03a # X Control_L -> VM caps lock