Using a PS/2 mouse, USB wheel mouse, gpm, and X simultaneously?
Hi,
Is there some way to get gpm to read /dev/psaux as a PS/2 mouse,
/dev/input/mice as a ImPS/2 mouse, and repeat everything to
/dev/gpmdata so that both gpm and X can use them, and I can still use
the wheel on the ImPS/2 mouse on consoles and in X applications?
Here is some context:
My Compaq Armada M300 has a built in PS/2 mouse that works with gpm
and XFree86 4.1.x (this is a Woody system that is dist-upgraded
regularly), but not if both gpm and X try to use it. I run gpm like
this (via gpm.conf and so on)
/usr/sbin/gpm -m /dev/psaux -t ps2 -Rraw
and I configure XF86Config-4 to use /dev/gpmdata as a PS/2 mouse device.
Now I found this really nice Logitech USB wheel mouse (M-BE58) at the
office that is a dream to use. So, I got these two stanza's in
XF86Config-4
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/gpmdata"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
and both mice work perfectly in X. I can scroll my emacs buffers with
the wheel. Wheeee! But, of course, gpm won't see the USB mouse, so I
add some parameters to gpm.conf to have it read both devices and
repeat and so on.
However, all attempts to get these mice to work with both X *and* gpm
at the same time while still being able to use the wheel (imps2) were
a miserable failure. For example
/usr/sbin/gpm -m /dev/psaux -t ps2 -Rraw -M -m /dev/input/mice -t imps2
goes nowhere and so on. I can get the two mice to work if I treat the
USB mouse as a PS/2 mouse. But then I lose that wheel....
Is there a way to tell gpm *not* to repeat just one of a set of
specific device? Then perhaps I could have it not repeat the USB
mouse, because I'm thinking that driver does not mind be read by both
gpm and X simultaneously, while /dev/psaux does....?
Cheers!
Shyamal
--
To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: