USB mouse in 2.2.12

Brendan Cully (brendan@kublai.com)
Fri, 27 Aug 1999 11:47:14 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0053_01BEF081.E7E87050
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, that subject has probably gotten this message deleted without being =
read, but if you've gotten this far...

I've been trying to use my USB mouse in Linux for the last few stable =
kernels without luck. I'm currently running 2.2.12 on a dual PII/350, =
440BX system. I enabled CONFIG_USB??? and built the usb-uhci module. I =
can modprobe it and it detects my mouse (according to SIGUSR1 on =
uhci-control), but I can't get any data from reading /dev/usbmouse (c 10 =
32). I also can't open the mouse until I kill -USR1 uhci-control. The =
interrupt service registers itself in /proc/interrupts (IO-APIC-edge, =
irq11), but the interrupt counters never increment.

This is what I've tried:

I moved uhci_check_configuration above interruptible_sleep_on in =
uhci_control_thread. This seemed to fix the problem of not being able to =
open /dev/usbmouse until I'd killed -USR1 uhci-control.

I stuck printks at the tops of a lot of functions. What I noticed is =
uhci_interrupt is never called. At least, I never see the printk. Can =
you printk inside of an interrupt handler?

I think maybe ???_ticktd is failing? The function gets called, and says =
it is supposed to cause an interrupt per second on the USB device, but I =
never see any interrupts happen.

Any ideas? I realise USB isn't supported in 2.2, but I don't really want =
to go to 2.3 just yet... anyone have any ideas what's wrong in the 2.2 =
code?

ObItWorksInWindows: It works great in Windows 98! :)

Thanks,
Brendan

------=_NextPart_000_0053_01BEF081.E7E87050
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Ok, that subject has probably gotten = this message=20 deleted without being read, but if you've gotten this = far...
 
I've been trying to use my USB mouse in = Linux for=20 the last few stable kernels without luck. I'm currently running 2.2.12 = on a dual=20 PII/350, 440BX system. I enabled CONFIG_USB??? and built the usb-uhci = module. I=20 can modprobe it and it detects my mouse (according to SIGUSR1 on = uhci-control),=20 but I can't get any data from reading /dev/usbmouse (c 10 32). I also = can't open=20 the mouse until I kill -USR1 uhci-control. The interrupt service = registers=20 itself in /proc/interrupts (IO-APIC-edge, irq11), but the interrupt = counters=20 never increment.
 
This is what I've tried:
 
I moved uhci_check_configuration above=20 interruptible_sleep_on in uhci_control_thread. This seemed to fix the = problem of=20 not being able to open /dev/usbmouse until I'd killed -USR1=20 uhci-control.
 
I stuck printks at the tops of = a lot of=20 functions. What I noticed is uhci_interrupt is never called. At least, I = never=20 see the printk. Can you printk inside of an interrupt = handler?
 
I think maybe ???_ticktd is failing? = The function=20 gets called, and says it is supposed to cause an interrupt per second on = the USB=20 device, but I never see any interrupts happen.
 
Any ideas? I realise USB isn't = supported in 2.2,=20 but I don't really want to go to 2.3 just yet... anyone have any ideas = what's=20 wrong in the 2.2 code?
 
ObItWorksInWindows: It works great in = Windows 98!=20 :)
 
Thanks,
Brendan
------=_NextPart_000_0053_01BEF081.E7E87050-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/