View previous topic :: View next topic |
Author |
Message |
TekCop n00b
Joined: 15 Apr 2004 Posts: 43
|
Posted: Tue Dec 06, 2005 12:10 pm Post subject: Replugging mouse in X |
|
|
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 |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Tue Dec 06, 2005 1:38 pm Post subject: |
|
|
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 having a USB harddisc and a USB CD burner and a USB mouse at one laptop is not the most stable setup )
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 |
|
|
TekCop n00b
Joined: 15 Apr 2004 Posts: 43
|
Posted: Tue Dec 06, 2005 1:59 pm Post subject: |
|
|
wow /dev/input/mice!
that works!
thx |
|
Back to top |
|
|
mijenix Guru
Joined: 22 Apr 2003 Posts: 393 Location: Switzerland
|
Posted: Tue Dec 06, 2005 4:07 pm Post subject: udev? |
|
|
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 |
|
|
|