View previous topic :: View next topic |
Author |
Message |
faz n00b


Joined: 02 Nov 2002 Posts: 73 Location: the Netherlands
|
Posted: Mon Jan 27, 2003 10:04 am Post subject: howto hotplug a USB Mouse and get it automagically work in X |
|
|
We'll, the subject says it all, i guess. My USB Mouse works great in Xfree86 4.2.1-r2 on my Inspiron 8000 notebook... but only when I startup with the USB Mouse allready plugged in or after I do a CTRL-ALT-Backspace. What I really want is to plug in the mouse en have it work immediately in X. I've been searching the forums and the Net for hours, but I can't find it.
I do get the following in my log after I plug in:
Code: |
hub.c: USB new device connect on bus1/1, assigned device number 2
input0,hiddev0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb1:2.0
|
Any help is very, very welcome!! |
|
Back to top |
|
 |
xr31Daisy Guru


Joined: 19 Jul 2002 Posts: 326 Location: Paris, France
|
Posted: Mon Jan 27, 2003 2:25 pm Post subject: |
|
|
I've got the same kind of config ( i8200 + ms optical USB mouse ), and it works fine. Sometimes, the USB autodetection doesn't work on the first try? All I have to do is unplug it, and plug it in again.
Here's my XF86Config :
http://www.franchini.info/XF86Config
These are the 'interesting' sections :
Code: |
Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".
InputDevice "Mouse1" "CorePointer"
InputDevice "USBMouse" "AlwaysCore"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
|
_________________ #include "pictures.h" |
|
Back to top |
|
 |
pilla Bodhisattva


Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Mon Jan 27, 2003 2:33 pm Post subject: |
|
|
Do you have hotplug installed in your notebook? _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
 |
faz n00b


Joined: 02 Nov 2002 Posts: 73 Location: the Netherlands
|
Posted: Mon Jan 27, 2003 2:37 pm Post subject: |
|
|
Thanks xr31Daisy!!
I found the problem. I was using /dev/input/mouse0 instead of /dev/input/mice. It's working like a charm now.  |
|
Back to top |
|
 |
Inf7 n00b


Joined: 12 Feb 2003 Posts: 16
|
Posted: Wed Feb 12, 2003 7:54 am Post subject: |
|
|
I have the same mouse as Faz had above but that fix didn't help me out. My mouse doen't work in X at all and I am starting to run out of ideas on how to get this thing working.
I have had one hell of a time getting USB to run on my Sony Vaio and once I get it running X is saying that it can't find my mouse protocol. I tried the config that xr31Daisy posted and many other configs and still to no avail my mouse wont work in X.
I have cat'ed /dev/input/mice and I got the screen full of junk so the mouse is working. I must be missing one small thing for this puzzle to be solved.
What protocol should I use for the same kind of mouse as Fez?
Thanks in advance!
Ps I have abused the search on the forum and I had to give in and post. <3 u mods ^^ |
|
Back to top |
|
 |
faz n00b


Joined: 02 Nov 2002 Posts: 73 Location: the Netherlands
|
Posted: Wed Feb 12, 2003 8:24 am Post subject: |
|
|
Could you list you're USB modules (lsmod) or, if compiled into the kernel, the relevant .config entries. |
|
Back to top |
|
 |
|