Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Replugging mouse in X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TekCop
n00b
n00b


Joined: 15 Apr 2004
Posts: 43

PostPosted: Tue Dec 06, 2005 12:10 pm    Post subject: Replugging mouse in X Reply with quote

Hi everybody,

when i startup X with plugged in mouse everythink works fine. then i plug off the mouse while the X server (with kde) is running. after plugging the mouse in again the mouse wont work anymore. in such a case my only solution is to restart the X server. Hotplug is running.

I am using a microsoft usb 5 button mouse.

here my xorg.conf
...
Section "ServerLayout"
Identifier "Xorg default configuration"
Screen "Screen1"
InputDevice "TouchPad1" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
...
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse1"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
...


Any ideas?
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Tue Dec 06, 2005 1:38 pm    Post subject: Reply with quote

I use /dev/input/mice and never had such problems. Using PS2 if possible (even when having to use an adapter from usb to ps2), but usb should work too (with some stability issues or course :twisted: having a USB harddisc and a USB CD burner and a USB mouse at one laptop is not the most stable setup :twisted: )

The main problem should be with reconnecting it gets assigned to /dev/input/mouse2 and so on. So you could write a udev rule wich the information gathered by udevinfo. Then you can define a device which is assigned every time you plug in this particular mouse.
Back to top
View user's profile Send private message
TekCop
n00b
n00b


Joined: 15 Apr 2004
Posts: 43

PostPosted: Tue Dec 06, 2005 1:59 pm    Post subject: Reply with quote

wow /dev/input/mice!

that works!

:D

thx
Back to top
View user's profile Send private message
mijenix
Guru
Guru


Joined: 22 Apr 2003
Posts: 393
Location: Switzerland

PostPosted: Tue Dec 06, 2005 4:07 pm    Post subject: udev? Reply with quote

Hi

Wirte ur own udev rule and every time our mouse will have the same dev-name.

http://gentoo-wiki.com/UDEV

--Mathias
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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