Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Having X.Org Autodetect When USB Mouse Is Inserted
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Thu Mar 03, 2005 3:51 am    Post subject: Having X.Org Autodetect When USB Mouse Is Inserted Reply with quote

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
View user's profile Send private message
akos
n00b
n00b


Joined: 15 Jul 2004
Posts: 9

PostPosted: Thu Mar 03, 2005 12:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mooses
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2002
Posts: 128

PostPosted: Thu Mar 03, 2005 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Thu Mar 03, 2005 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum