I have found another solution.
Here's the steps I took. Now this is specifically for the Logitech MX1000 mouse. And pretty much followed the guide here:
http://gentoo-wiki.com/HOWTO_Advanced_Mouse
Yeah, Gentoo has great HOWTOs ...
So,
1) Make sure you plug the mouse in via USB, NOT the funky USB -> PS/2 converter ... it is crap !
2) Next run:
Code:
cat /proc/bus/input/devices
(just like the HOWTO says)
Mine says:
Code:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=046d Product=c50e Version=2500
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:03.0-2/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse0 event1
B: EV=7
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
Notice that the first one is for the keyboard ... ignore that, but know that one of them will be for the keyboard (and other input devices)
The second one says "Logitech USB Receiver", yeah, that one is the mouse (receiver).
3)Now, I tried Option 2 of that HOWTO, namely:
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Name" "Logitech USB Receiver"
EndSection
But xserver never started
BUT, I then tried option 1, which is:
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection
EXCEPT, in our case here, check #2 above, it says:
Code:
H: Handlers=mouse0 event1
So our config must be this:
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Device" "/dev/input/event1"
EndSection
I have also tried 'mouse0' thinking it would work ... nope
4) Now there is one problem with the above, which is that the event bound to the mouse may change.
Might want to try evdev autodetection (option 3 on the HOWTO), even tho it doesn't work for me
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "evBits" "+1-2"
Option "keyBits" "~272-287"
Option "relBits" "~0-2 ~6 ~8"
Option "Pass" "3"
EndSection
Or, I wrote a script to fix xorg.conf on boot to the new event (this hack is the only thing that I could get to work):
Code:
#!/bin/sh
# fixes /etc/X11/xorg.conf for the right mouse event
# event from /proc/bus/input/devices
DEVEVENT=$(grep mouse /proc/bus/input/devices | awk '{ print $3 }')
# event from /etc/X11/xorg.conf
XEVENT=$(grep /dev/input /etc/X11/xorg.conf | awk '{ print $3 }' | sed 's/"//g' | sed 's/\// /g' | awk '{ print $3 }')
# if the events are not equal, fix it
if test $DEVEVENT != $XEVENT
then
# fix it
sed "s/$XEVENT/$DEVEVENT/g" /etc/X11/xorg.conf > /etc/X11/xorg.conf-mod
cat /etc/X11/xorg.conf-mod > /etc/X11/xorg.conf
fi
# success
exit 0
Your choice. You can call this script from rc.local, and I put the script in /etc/rc.d.
5) Last thing is,
if your mouse buttons still do not work, do one of the following
from the Gentoo guide here:
http://gentoo-wiki.com/HOWTO_Advance...ogitech_MX1000
a) put this line into '~/.Xmodmap' (create it if it doesn't exist):
Code:
pointer = 1 3 2 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
b) If (a) reverses your middle and right mouse buttons do this instead:
Code:
pointer = 1 2 3 4 5 8 9 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
('a' worked for me, but yours may not need any of these, depending on which version of the mouse you bought ... mice have versions ... who knew ?)
There you have it, hope that helps. Again, this is all taken (and interpreted by me) from the above two referenced Gentoo HOWTOs. Again, Gentoo has great howtos, especially on how to customize ...
And if you still wanna use imwheel, there's a section on that in there too:
http://gentoo-wiki.com/HOWTO_Advanced_Mouse#imwheel
BUT,
Quote:
Note:
IMWheel is completely unnecessary for most modern mice including both USB and PS/2 models. X will usually detect that these mice have a scroll wheel or else you'll be able to map it properly with Xmodmap and the axis settings in your xorg.conf file. This program should only be used for extreme cases including very odd or old mice, or if you wish to define custom behaviour (such as trigger your window manager to invoke specific scripts) on mouse events.
|