2.0

Table Of Contents
VMware, Inc. 187
Chapter 8 Configuring Virtual Machine Hardware
Configuring How Keysyms Are Mapped
Whenkeycodemappingcannotbeused(orisdisabled),VMwareServermaps
keysymstovscancodes.Itdoesthisusingoneofthetablesinthexkeymapdirectory
intheVMwareServerinstallation(usually/usr//lib/vmware).
Whichtableyouusedependsonthekeyboardlayout.Thenormaldistributionincludes
tables
forPCkeyboardsfortheUnitedStatesandanumberofEuropeancountriesand
languages.Andformostofthese,thereareboththe101key(or102key)andthe
104key(or105key)variants.
VMwareServerautomaticallydetermineswhichtabletousebyexaminingthecurrent
X
keymap.However,itsmappingmightnotbecorrect.Inaddition,eachmappingis
fixedandmightnotbecompletelycorrectforagivenkeyboardandXkey
codetokeysymmapping.Forexample,ausermighthaveswappedCtrlandCaps
Lockusingxmodmap.Thismeansthekeysareswapped
inthevirtualmachinewhen
usingaremoteserver(keysymmapping),butarenotswappedwhenusingalocal
server(keycodemapping).
Therefore,keysymmappingisnecessarilyinexact.Tomakeupforthis,youcancontrol
mostofthebehaviorusingconfigurationsettings:
xkeymap.language = "<keyboard-type>"
UsethissettingifVMwareServerhasatableinxkeymapforyourkeyboardbut
cannotdetectit.<keyboard-type>mustbeoneofthetablesinthexkeymap
directory.(Seeaboveforlocation.)However,thefailuretodetectthekeyboard
probablymeansthatthetableisnotcompletelycorrectfor
you.
xkeymap.keysym.<sym> = "<v-scan code>"
Ifyouusekeysymmapping,mapkeysym<sym>to<v-scan code>.Whenyoudo,
<sym>mustbeanXkeysymnameand<v-scan code>isaCsyntaxhexadecimal
number(forexample,0x001).
Theeasiestwaytofindthekeysymnameforakeyistorunxevorxmodmap -pk.
The
Xheaderfile/usr/include/X11/keysymdef.hhasacompletelistof
keysyms.(ThenameofakeysymisthesameasitsCconstantwithouttheXK_
prefix.)Mostvscancodesarein“VScanCodeTableonpage 188.
Thexkeymaptablesthemselvesarealsohelpful.Usethemtofixsmallerrors
inan
existingmapping.