[Tfug] X Configuration of mice
Choprboy
choprboy at dakotacom.net
Wed Jul 7 11:09:36 MST 2004
On Tuesday 06 July 2004 23:02, Iketo wrote:
> I ran into a neat thing. I have an older computer, Debian 3.0 running X
4.3.0.1.
>
> I had to reinstall (Hard drive failure) and now while setting up I was
testing a couple things. I set the mouse in X to use '/dev/input/mice' and
the USB mouse works. When I change that to '/dev/psaux', the PS/2 mouse
works. Since my USB is wireless, I would like it to work... but I need the
PS/2 for when the batteries go dead ((no I do not want to logout when I need
to change). Any way to enable both with the "GUI" interface? Or, do I have to
butcher the XF86Config-4 file?
>
You don't have to butcher your XF86Config file at all (though you will have to
modify it slightly). You just need to add a second mouse configuration.
In the (probably first) "ServerLayout" section, add another InputDevice
identifier, something like:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer" <-- Primary mouse
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore" <-- Secondary mouse
EndSection
Then add the definition section for the second mouse:
Section "InputDevice"
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Restart X and your done.
Adrian
More information about the tfug
mailing list