Edit your xorg.conf file.
First, make sure you have your desired mouse in an InputDevice section
somewhere
This is a clip from one of my two mice:
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
Then find in your ServerLayout section where the InputDevice is set for
"CorePointer". Here is a clip from mine, which is currently configured
to use all mice:
InputDevice "all_mice" "CorePointer"
You would then replace the identifier (in this case "all_mice") with the
identifier of the mouse you want, i.e. "Mouse0" so the line would read:
InputDevice "Mouse0" "CorePointer"
- Aaron
Alan Bromborsky wrote:
Derek Juba wrote:
I am trying to build a rotary encoder for a robotic telescope using
optical usb mice (I am running gentoo linux). My system would require
three mice connected to usb ports (two mice for two rotary encoders and
one for X-windows on the control computer). I have found a library
(manymouse which uses the evdev driver) for linux that allows multiple
mice to be connected and read out. The problem is that the X-window
cursor responds to all of the mice connected to the computer. I would
like the X-window cursor to respond to only one of the mice connected to
the computer, since the two mice used as rotary encoders would move the
cursor all over the screen and prevent me from using mouse driven input
for any programs I am running. Any ideas on how to acomplish this?
I'm not too knowledgable about X-windows, but I think if you connect
multiple USB mice you get entries in /dev like /dev/mouse0, /dev/mouse1,
and /dev/mice. /dev/mice gives input from all mice combined, while the
others give input from the individual mice. If you could somehow
configure X-windows to use /dev/mouse0 for mouse input rather than
/dev/mice, it seems like that might do what you want.
-Derek
Thank you. Your idea worked perfectly!!!!!!