Logitech MX500 side(thumb) buttons
Csaba Paradi <[email protected]>
| Newsgroups | gmane.comp.xfree86.expert |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am trying to set up Logitech MX500 mouse with 10 buttons(maybe 8) under XFree86 ( 4.2.1 ). The kernel's mousedev driver (2.4.19) can handle 7 buttons ( left,middle,rigth, wheel up,down, two side buttons ) The wheel up,down, button1,button2,button3 is working correctly with Gnome2. The XFree86's xev program seems to recognize correctly the wheel, and the side buttons two. ( See the settings at the end of the email... ) The xev reports the side buttons as button6, button7 . How can I bind keyboard events to these buttons ? ( I'd like to bind virtual desktop switching in Metacity to these buttons. ) Tried xmodmap, changed /usr/X11R6//lib/X11/XKeysymDB to handle XeroxPointerButton6 buttons - no success to assign keycode events to these buttons. Maybe the new line's number in XKeysymDB assigment is not correct. I tried to dig www.google.com search results, wheel mouse forums, but it seems that everybody is happy with the 5 buttons. Can anybody help me ? Thanks in advance, Csaba Paradi [email protected] ps.: What about handling the 'Quick Switch Program Selector' and the 'Cruise Control' buttons, gpm's mev reports wheel events for the Cruise Control buttons and nothing for the Quick Switch button. ( It seems that it is not handled by the kernel's driver/input/mousedev driver... ) XF86Config mouse section: ------------------------------------------------ Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "6 7" ------------------------------------------------ xmodmap settings: ------------------------------------------------ xsetpointer Mouse2 xmodmap -e "pointer = 1 2 3 6 7 4 5" xsetpointer Mouse1 ------------------------------------------------ xev's output pressing side buttons: ------------------------------------------------ ButtonPress event, serial 25, synthetic NO, window 0x3400001, root 0x3a, subw 0x0, time 3301386875, (131,10), root:(718,542), state 0x0, button 7, same_screen YES ButtonRelease event, serial 25, synthetic NO, window 0x3400001, root 0x3a, subw 0x0, time 3301387099, (131,10), root:(718,542), state 0x0, button 7, same_screen YES ButtonPress event, serial 25, synthetic NO, window 0x3400001, root 0x3a, subw 0x0, time 3301387667, (131,10), root:(718,542), state 0x0, button 6, same_screen YES ButtonRelease event, serial 25, synthetic NO, window 0x3400001, root 0x3a, subw 0x0, time 3301387843, (131,10), root:(718,542), state 0x0, button 6, same_screen YES ------------------------------------------------ New lines in /usr/X11R6//lib/X11/XKeysymDB ------------------------------------------------ XeroxPointerButton6 :10070006 XeroxPointerButton7 :10070007