View previous topic :: View next topic |
Author |
Message |
madpenguin8 n00b
Joined: 19 Jun 2002 Posts: 38 Location: Detroit MI
|
Posted: Wed Feb 12, 2003 12:32 am Post subject: usbmouse and ps/2 |
|
|
I've tried several how-to articles on the web on making a usb mouse and ps/2 mouse work together with X, but I have not been able to get it to work. I do have a working usb mouse device, but I'm not sure what I am doing wrong in XF86config. If anyone has this working please post your input section from XF86config. And also can this work hot plugable?
Thanks. _________________ Have you ever stopped to think...............and never start again? |
|
Back to top |
|
|
taorob n00b
Joined: 11 Feb 2003 Posts: 2
|
Posted: Wed Feb 12, 2003 5:12 am Post subject: here's part of my setup file |
|
|
Here's the pertinent sections cut from my /etc/X11/XF86Config file. This is working just fine for me.
The only limitation I've noticed is needing to have the USB mouse plugged in before starting X in order to have it work. These entries support a mouse with a scroll wheel and 2 or 3-button devices. (My touchpad has 2 buttons with a scroll slider and my USB mouse has 3 buttons with a scroll wheel).
Code: | Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
Section "ServerLayout"
...extra stuff
InputDevice "Mouse1" "CorePointer"
InputDevice "USB Mouse" "SendCoreEvents"
...extra stuff
EndSection
|
|
|
Back to top |
|
|
krt Tux's lil' helper
Joined: 27 Nov 2002 Posts: 102 Location: Earth
|
Posted: Wed Feb 12, 2003 9:35 am Post subject: |
|
|
as long as you have hotplug support in your kernel, and point your usb device to /dev/usb/mice (and not mouse0, mouse1, etc.) you should be able to plug and unplug your usb mouse at will.. inclusive of not having it plugged in until after X is started (I do this all the time..) _________________ Everyone has something clever for a signature but me. |
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Wed Feb 12, 2003 10:02 am Post subject: |
|
|
Also make sure the hotplug package is installed ("emerge hotplug" iirc) |
|
Back to top |
|
|
|