2.0

Table Of Contents
VMware Server User’s Guide
186 VMware, Inc.
Configuring How Key Codes Are Mapped
Keycodemappingissimple,automatic,andfoolproof.(Keysymmappingismore
complexandisdescribedlater.)However,becausetheprogramcannottellwhethera
remoteserverisrunningonaPCoronsomeotherkindofcomputer,ituseskeycode
mappingonlywithlocalXservers.Thisapproach
mighthaveundesirableeffects.This
andotherbehaviorrelatedtokeycodemappingcanbecontrolledbypoweringoffthe
virtualmachine,closingtheVMwareServerwindow,andusingatexteditortoadd
configurationsettingstothevirtualmachine’sconfiguration(.vmx)file.Youmight
wanttousesome
ofthefollowingconfigurationsettings:
xkeymap.usekeycodeMapIfXFree86 = "TRUE"
UsekeycodemappingifyouareusinganXFree86server,evenifitisremote.
xkeymap.usekeycodeMap = "TRUE"
Alwaysusekeycodemappingregardlessofservertype.
xkeymap.nokeycodeMap = "TRUE"
Neverusekeycodemapping.
xkeymap.keycode.<code> = "<v-scan code>"
Ifyouare usingkeycodemapping,mapkeycode<code>to<v-scan code>.In
thisexample,<code>mustbeadecimalnumberand<v-scan code>isaCsyntax
hexadecimalnumber(forexample,0x001).
TheeasiestwaytofindtheXkeycodeforakeyistorunxev
orxmodmap -pk.Mostof
thevscancodesarecoveredin“VScanCodeTableonpage 188.Thekeysym
mappingtablesdescribedinthissectionarealsohelpful.
Usethisfeaturetomakesmallmodificationstothemapping.Forexample,toswapleft
CtrlandCapsLock,usethefollowing
settings:
xkeymap.keycode.64 = "0x01d # X Caps_Lock -> VM left ctrl"
xkeymap.keycode.37 = "0x03a # X Control_L -> VM caps lock"
TheseconfigurationlinescanbeaddedtoyourpersonalVMwareServerconfiguration
(~/.vmware/config),oreventothehostwide(/etc/vmware/config)or
installationwide(usually/usr/lib/vmware/config)configuration.