upgrading to xorg 7 appears to break xmodmap, but why or how it does this i have no idea!
having noticed my keyboards (cherry cymotion linux) extra keys are no longer mapped, and neither are some of my mouse (logitech mx1000) buttons, i started poking around.
first thing i noticed was that
br /]xmodmap -pk
doesn't return ANY of my mapped keyboard keys, even though my $HOME/.xinitrc script contains the line:
br /]xmodmap ~/.Xmodmap
among other things, and $HOME/.Xmodmap contains
br /]keycode 234 = CM_BACK
keycode 233 = CM_FORWARD
keycode 232 = CM_KILL
keycode 231 = CM_RELOAD
keycode 122 = CM_MAGNIFY
keycode 162 = CM_PLAYPAUSE
keycode 164 = CM_STOP
keycode 144 = CM_PREVIOUSTRACK
keycode 153 = CM_NEXTTRACK
keycode 204 = CM_EJECT
keycode 161 = CM_CALC
keycode 236 = CM_MAIL
keycode 130 = CM_HOME
keycode 227 = CM_POWER
keycode 188 = CM_CUT
keycode 192 = CM_COPY
keycode 248 = CM_PASTE
keycode 138 = CM_REDO
keycode 135 = CM_UNDO
keycode 115 = CM_TUX
keycode 116 = CM_MAILTO
keycode 174 = CM_MINUS
keycode 176 = CM_PLUS
keycode 160 = CM_MUTE
keycode 129 = CM_MEDIA
confused, i then checked the output of
br /]xmodmap -pp
and to my surprise, not only are my mouse buttons still mapped correctly, but i have 4 extra ones!
br /]trickyric@opteron246 ~ $ xmodmap -pp
There are 16 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 6
5 7
6 8
7 9
8 10
9 11
10 12
11 4
12 5
13 13
14 14
15 15
16 16
buttons 13-16 simply shouldn't exist! my xorg.conf contains the correct options, including a buttons count of 12:
br /]Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "12"
Option "ZAxisMapping" "11 12"
Option "Resolution" "800"
Option "Emulate3Buttons" "no"
Option "Name" "Logitech MX1000 USB PS/2 Mouse"
EndSection
and my above xinitrc script also contains the line:
br /]xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 4 5"
any ideas whats going on here? maybe this is just a bug and i should report it?
cheers.
[EDIT]
looks like xorg 7 uses a different XKeysymDB file. having copied my CM entries from /usr/X11R6/lib/X11/XKeysymDB to /usr/share/X11/XKeysymDB (note /usr/X11R6 is really a symlink to /usr for backward compatibility) my keyboard mappings now work fine.
still having issues with the mouse though...