Thanks to this howto and after reading a bit around these forums and some manual pages, I've managed to get the Logitech LX7 working perfectly.
Since the procedure was a bit custom, I'll post it, perhaps it will be of use to someone. First of all: I use Kubuntu 7.10.
After installing evdev, I had to edit xorg.conf like this:
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Configured Mouse"
EndSection
[...]
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "CorePointer"
Option "Name" "Logitech USB RECEIVER"
EndSection
Then, I installed xbindkeys, xvkbd and xmacro, and edited ~/.xbindkeysrc like this:
Code:
#little buttons:
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:8
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:9
#tilt wheel:
"echo ButtonPress 2 ButtonRelease 2 Delay 0 | xmacroplay -d 0 :0.0"
release+b:11
"echo ButtonPress 2 ButtonRelease 2 Delay 0 | xmacroplay -d 0 :0.0"
release+b:12
Note that what this does is map the little left and right buttons like it is by default, but it maps the left and right wheel buttons to the middle button. This is because I wanted it to be that way. To find out that the middle button is number 2, I used xev. You could modify ButtonPress 2 ButtonRelease 2 by whatever button number you should like: that xmacroplay line just sends the signal "press and release button 2". Make sure to leave the Delay 0 at the end of the pipe, always, because xmacroplay has a bug which makes it play the last action twice. Using delay 0 is a workaround.
If you want the default config (i.e. the tilt wheel acts as horizontal scroll), I could do it like this:
Code:
#tilt wheel:
"/usr/bin/xvkbd -xsendevent -text "\[Left]""
b:11
"/usr/bin/xvkbd -xsendevent -text "\[Right]""
b:12
It didn't work as flawlessly as it should have: if you held down the wheel right, it scrolled right only a little bit, making it a bit pointless. If anyone knows how to config a smooth scroll, please say so.
In any case, using xbindkeys and proper command lines you can map the tilt wheel buttons and the right-left buttons to whatever you want. Using xvkbd you can make it "press keyboard buttons" and using xmacroplay you can make it "press mouse buttons".
Bookmarks