LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   help getting usb mouse working (https://www.linuxquestions.org/questions/debian-26/help-getting-usb-mouse-working-147651/)

liquigel 02-18-2004 01:03 PM

help getting usb mouse working
 
I can't get my usb mouse to work on my x86 box. I've read the other recent relevant threads
on the subject:
http://www.linuxquestions.org/questi...hreadid=129513
http://www.linuxquestions.org/questi...hreadid=118534
http://www.linuxquestions.org/questi...hreadid=141329

I had a related question, that drifted into this one
http://www.linuxquestions.org/questi...hreadid=147461
but thought that it deserved its own thread -- so I started this one right here.

Recently installed Woody 3.0 with the bf24 kernel.

When I try to start icewm, it comes up, but the mouse (usb) and the keyboard (programmable
ps/2 style) are frozen. The relevant portion of my XF86Config-4 is:
Code:

Section  "InputDevice"
  Identifier  "Configured Mouse"
  Driver  "mouse"
  Option  "CorePointer"
  Option  "Device"  "/dev/psaux"
  Option  "Protocol"  "ImPS/2"
  Option  "ZAxisMapping"  "4 5"
EndSection

Section  "InputDevice"
  Identifier  "Generic Mouse"
  Driver  "mouse"
  Option  "SendCoreEvents"  "true"
  Option  "Device"  "/dev/input/mice"
  Option  "Protocol"  "ImPS/2"
  Option  "ZAxisMapping"  "4 5"
EndSection

and my /var/log/XFree86.0.log says:
Code:

(II) Keyboard "Generic Keyboard" handled by legacy driver
(**) Option "Protocol" "ImPS/2"
(**) Configured Mouse: Protocol: "ImPS/2"
(**) Option "CorePointer"
(**) Configured Mouse: Core Pointer
(**) Option "Device" "/dev/psaux"
(==) Configured Mouse: Buttons: 3
(**) Option "ZAxisMapping" "4 5"
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(**) Option "Protocol" "ImPS/2"
(**) Generic Mouse: Protocol: "ImPS/2"
(**) Option "SendCoreEvents" "true"
(**) Generic Mouse: always reports core events
(**) Option "Device" "/dev/input/mice"
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
        No such device.
(EE) Generic Mouse: cannot open input device
(EE) PreInit failed for input device "Generic Mouse"
(II) UnloadModule: "mouse"
(II) XINPUT: Adding extended input device "Configured Mouse" (type: MOUSE)

lsmod tells me (non-usb material snipped):
Code:

hid      0 (unused)
usbmouse  0 (unused)
input    0 [hid usbmouse keybdev usbkbd]
usb-uhci  0 (unused)
usbcore  0 [hid usbmouse usb-storage usbkbd usb-uhci]

and dmesg tells me the following about usb:
Code:

usb.c: registering new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 10:29:43 Apr 14 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 12 for device 00:07.2
PCI: Sharing IRQ 12 with 00:07.3
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 12 for device 00:07.3
PCI: Sharing IRQ 12 with 00:07.2
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver keyboard
usbkbd.c: :USB HID Boot Protocol keyboard driver
spurious 8259A interrupt: IRQ7
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x46d/0xc001) is not claimed by any active driver.

...

usb.c: registered new driver usb_mouse
input0: Logitech USB Mouse on usb1:2.0
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver

...

usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers

...

usb.c: USB disconnect on device 2
hub.c: USB nev device connect on bus1/1, assigned device number 3
input0: Logitech USB Mouse on usb1:3.0

At the console, when I unplug the mouse, I get:

usb.c: USB disconnect on device 2

And when I reconnect the mouse, I get:

hub.c: USB new device connect on bus1/1, assigned device number 3
input0: Logitech USB Mouse on usb1:3.0

'cat /dev/input/mice' yields "No such device".
'cat /dev/psaux' just sits there doing nothing (even while I'm moving and clicking the mouse)
until I ctrl-c out of it.

Also, lspci yields:

00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 16)
00:07.3 USB Controller: VIA Technologies, Inc. UHCI USB (rev 16)

liquigel 02-18-2004 01:45 PM

Got it. :)

In modconf, under kernel/drivers/input, "mousedev" had not been selected. I installed that module,
and now all seems well on the western front.

Now, in my dmesg output, near the end, there's a line that says:
Code:

mice: PS/2 mouse device common for all mice
Also, lsmod now lists "mousedev" along with "[usbkbd hid usbmouse keybdev]"
after the "input" module.

Sweet!


All times are GMT -5. The time now is 04:36 PM.