View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Thu Mar 03, 2005 3:51 am Post subject: Having X.Org Autodetect When USB Mouse Is Inserted |
|
|
I'm using udev and would like for X.Org to automatically detect when I plug my USB mouse (/dev/input/mouse1) into my ThinkPad. The TrackPoint works fine, but the USB mouse won't work unless X.Org is started with it plugged in. /dev/input/mouse1 appears and disappears as the mouse the mouse is inserted and removed, as it should. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
akos n00b
Joined: 15 Jul 2004 Posts: 9
|
Posted: Thu Mar 03, 2005 12:52 pm Post subject: |
|
|
Hi!
As far as I know XInput hotplugging is still in design phase. What you can do now is to use "/dev/input/mice" in the "Input Device" section for device name (instead of /dev/input/mouse1).
regards,
Akos |
|
Back to top |
|
|
Mooses Tux's lil' helper
Joined: 16 Jul 2002 Posts: 128
|
Posted: Thu Mar 03, 2005 12:59 pm Post subject: |
|
|
Well, I don't use udev, but is it not possible the "standart" way?
i.e. Generate an entry in yout xorg.conf for the second mouse, just non't set it as core pointer.
Code: | Section "InputDevice"
Identifier "track_pt_pad"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.08"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0010"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "3"
Option "ZAxisMapping" "4 5"
EndSection
Section "ServerLayout"
Identifier "Server Layout"
Screen "Screen0"
InputDevice "Track_pt_pad" "CorePointer"
InputDevice "Mouse0" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
# Option "OffTime" "10"
EndSection
|
That's how I do it at my Thinkpad
Have Fun
Mooses |
|
Back to top |
|
|
tscolari l33t
Joined: 02 May 2004 Posts: 602 Location: curitiba - pr - Brazil
|
Posted: Thu Mar 03, 2005 1:17 pm Post subject: |
|
|
does you enabled event interface in the kernel? (i guess device drivers->input devices suport)
just make an extramouse in you xorg.conf that device is /dev/input/eventX or something like this, make it a "SendCoreEvents"
i think it will work _________________ ------------------------------------
Tiago Scolari |
|
Back to top |
|
|
|