Hi all,
I've been trying to get my MX 500's extra buttons to work under X. There's not an exceeding amount of information on the net, but I worked out a solution that *almost* works. Here's the relevant section of my XF86Config:
Quote:
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "Buttons" "7"
# Option "CorePointer"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "6 7"
EndSection
|
Also, at every X startup, the command
Quote:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
|
is run in order to enable the mouse wheel to work (apparently most programs expect buttons 4 and 5 to act as the mousewheel).
Now to the core of the problem - this would all be fine if it wasn't for the fact that (according to xev), the side buttons and mouse wheel movement generate two events each - the upper side button & mouse wheel up genereta ButtonPress 4
and ButtonPress 6 (and corresponding Release events), and the lower side button & mouse wheel down generate ButtonPress 5
and ButtonPress 7.
Before the xmodmap call is executed, every button generates a single event, but the scroll wheel doesn't work (in fact, in most programs I can scroll with the side buttons, but that's not exactly the point).
Any suggestions?