[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB mouse under X not working



On Thu, 2003-10-02 at 18:57, willem wrote:
> Been at this for two days and getting rather desperate...googled
> meself to bits but no luck...i'm really lost on this one.
> Sorry for such a big email with all the logs and such.
> I might be missing something very obvious.
> 
> Running on a Asus P4P800.
> Legagy USB support and PNP OS disabled in BIOS.
> Debian SID.
> 
> Trust 4 port compact USB HUB(supported according to
> www.linux-usb.org)
> Logitech wheelmouse (M-DB58) connected to the HUB.
> 
> When i disable all the USB host options the mouse works fine
> in X.
> But as soon as i start enabling UHCI...or usb-UHCI or ECHI
> things go wrong.
> It does get detected fine during boot but refuses to work under X.
> And i can't get it to work with gpm either.
> Looking at the messages log it does get detected aswell when i
> disconnect and reconnect it.
> 
> It doesn't show in sys.log, but during boot after:
> Oct  2 17:34:49 willemsbak kernel: input: USB HID v1.10 Mouse [Logitech USB 
> Mouse] on usb3:3.0
> it will pause and i get  this sequense on screen(takes about 8 secs):
> 001 001 001  ]   .
> Then it continues the boot process
> 
> lsmod:
> 
> Module                  Size  Used by    Not tainted
> usbmouse                2296   0 (unused)
> usb-uhci               23600   0 (unused)
> keybdev                 2116   0 (unused)
> mousedev                4372   0 (unused)
> hid                    21860   0 (unused)
> ehci-hcd               17868   0 (unused)
> usbcore                63372   1 [usbmouse usb-uhci hid ehci-hcd]
> pci_hotplug            18532   0 (unused)
> input                   3648   0 [usbmouse keybdev mousedev hid]
> 

As far as I can tell usbmouse and hid are mutually exclusive. Try
unloading usbmouse (or not loading it in the first place preferably. if
you compiled the kenel yourself change CONFIG_USB_MOUSE under USB
support to n). From the config option of the driver:

--------------------------------------
CONFIG_USB_MOUSE:

Say Y here only if you are absolutely sure that you don't want
to use the generic HID driver for your USB keyboard and prefer
to use the keyboard in its limited Boot Protocol mode instead.

This is almost certainly not what you want.

This code is also available as a module ( = code which can be
inserted in and removed from the running kernel whenever you want).
The module will be called usbmouse.o. If you want to compile it as
a module, say M here and read Documentation/modules.txt.

If even remotely unsure, say N.
-------------------------------------

don't know how usb-uhci and ehci-hcd play together. iirc ehci-hcd is for
usb 2.0, so if you don't have such bus, disable it.

If this doesn't help, try removing all usb drivers (including input
mousedev and keybdev) and then on a console, not in X (don't know if it
matters if its tty1 or not)
modprobe usb-uhci
modprobe hid
/etc/init.d/gpm start

and see if you get any error message.
I had that problem some time ago and apparently for some reason hid
started requiring keybdev which it didn't before and I don't have any
usb keyboards attached, but I saw that you have it loaded.

> XF86config4:
> 
> Section "InputDevice"
> 	Identifier	"Configured Mouse"
> 	Driver		"mouse"
> 	Option		"CorePointer"
> 	Option		"Device"		"/dev/psaux"
> 	Option		"Protocol"		"PS/2"
> #	Option		"Emulate3Buttons"	"no"
>                 Option          "Buttons"               "5"
> 	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		"Emulate3Buttons"	"no"
> 	Option          "Buttons"               "5"
> 	Option		"ZAxisMapping"		"4 5"
> 
> EndSection
> 
> 
> syslog:
> Oct  2 17:34:49 willemsbak kernel: pci_hotplug: PCI Hot Plug PCI Core 
> version: 0.5
> Oct  2 17:34:49 willemsbak kernel: Linux agpgart interface v0.99 (c) Jeff 
> Hartmann
> Oct  2 17:34:49 willemsbak kernel: agpgart: Maximum main memory to use for 
> agp memory: 941M
> Oct  2 17:34:49 willemsbak kernel: agpgart: Detected an Intel(R) 865G, but 
> could not find the secondary device. Assuming a non-integrated video card.
> Oct  2 17:34:49 willemsbak kernel: agpgart: Detected Intel(R) 865G chipset
> Oct  2 17:34:49 willemsbak kernel: agpgart: AGP aperture is 64M @ 0xf8000000
> Oct  2 17:34:49 willemsbak kernel: isapnp: Scanning for PnP cards...
> Oct  2 17:34:49 willemsbak kernel: isapnp: No Plug & Play device found
> Oct  2 17:34:49 willemsbak kernel: ide: late registration of driver.
> Oct  2 17:34:49 willemsbak kernel: usb.c: registered new driver usbdevfs
> Oct  2 17:34:49 willemsbak kernel: usb.c: registered new driver hub
> Oct  2 17:34:49 willemsbak kernel: PCI: Setting latency timer of device 
> 00:1d.7 to 64
> Oct  2 17:34:49 willemsbak kernel: ehci_hcd 00:1d.7: Intel Corp. 82801EB USB2
> Oct  2 17:34:49 willemsbak kernel: ehci_hcd 00:1d.7: irq 11, pci mem f8c7cc00
> Oct  2 17:34:49 willemsbak kernel: usb.c: new USB bus registered, assigned 
> bus number 1
> Oct  2 17:34:49 willemsbak kernel: ehci_hcd 00:1d.7: enabled 64bit PCI DMA
> Oct  2 17:34:49 willemsbak kernel: PCI: 00:1d.7 PCI cache line size set 
> incorrectly (0 bytes) by BIOS/FW.
> Oct  2 17:34:49 willemsbak kernel: PCI: 00:1d.7 PCI cache line size 
> corrected to 32.
> Oct  2 17:34:49 willemsbak kernel: ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 
> 1.00, driver 2003-Jun-19/2.4
> Oct  2 17:34:49 willemsbak kernel: hub.c: USB hub found
> Oct  2 17:34:49 willemsbak kernel: hub.c: 6 ports detected
> Oct  2 17:34:49 willemsbak kernel: usb.c: registered new driver hiddev
> Oct  2 17:34:49 willemsbak kernel: usb.c: registered new driver hid
> Oct  2 17:34:49 willemsbak kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech 
> Pavlik <vojtech@suse.cz>
> Oct  2 17:34:49 willemsbak kernel: hid-core.c: USB HID support drivers
> Oct  2 17:34:49 willemsbak kernel: mice: PS/2 mouse device common for all mice
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: $Revision: 1.275 $ time 
> 21:22:19 Sep 27 2003
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: High bandwidth mode enabled
> Oct  2 17:34:49 willemsbak kernel: PCI: Setting latency timer of device 
> 00:1d.0 to 64
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: USB UHCI at I/O 0xef00, IRQ 10
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: Detected 2 ports
> Oct  2 17:34:49 willemsbak kernel: usb.c: new USB bus registered, assigned 
> bus number 2
> Oct  2 17:34:49 willemsbak kernel: hub.c: USB hub found
> Oct  2 17:34:49 willemsbak kernel: hub.c: 2 ports detected
> Oct  2 17:34:49 willemsbak kernel: PCI: Setting latency timer of device 
> 00:1d.1 to 64
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: USB UHCI at I/O 0xef20, IRQ 3
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: Detected 2 ports
> Oct  2 17:34:49 willemsbak kernel: usb.c: new USB bus registered, assigned 
> bus number 3
> Oct  2 17:34:49 willemsbak kernel: hub.c: USB hub found
> Oct  2 17:34:49 willemsbak kernel: hub.c: 2 ports detected
> Oct  2 17:34:49 willemsbak kernel: PCI: Setting latency timer of device 
> 00:1d.2 to 64
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: USB UHCI at I/O 0xef40, IRQ 5
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: Detected 2 ports
> Oct  2 17:34:49 willemsbak kernel: usb.c: new USB bus registered, assigned 
> bus number 4
> Oct  2 17:34:49 willemsbak kernel: hub.c: USB hub found
> Oct  2 17:34:49 willemsbak kernel: hub.c: 2 ports detected
> Oct  2 17:34:49 willemsbak kernel: usb-uhci.c: v1.275:USB Universal Host 
> Controller Interface driver
> Oct  2 17:34:49 willemsbak kernel: uhci.c: USB Universal Host Controller 
> Interface driver v1.1
> Oct  2 17:34:49 willemsbak kernel: hub.c: new USB device 00:1d.1-1, 
> assigned address 2
> Oct  2 17:34:49 willemsbak kernel: hub.c: USB hub found
> Oct  2 17:34:49 willemsbak kernel: hub.c: 4 ports detected
> Oct  2 17:34:49 willemsbak kernel: hub.c: new USB device 00:1d.1-1.1, 
> assigned address 3
> Oct  2 17:34:49 willemsbak kernel: input: USB HID v1.10 Mouse [Logitech USB 
> Mouse] on usb3:3.0
> Oct  2 17:34:49 willemsbak kernel: ip_tables: (C) 2000-2002 Netfilter core team
> Oct  2 17:34:49 willemsbak kernel: ip_conntrack version 2.1 (8185 buckets, 
> 65480 max) - 292 bytes per conntrack
> Oct  2 17:34:49 willemsbak kernel: apm: BIOS version 1.2 Flags 0x03 (Driver 
> version 1.16)
> Oct  2 17:34:49 willemsbak apmd[976]: apmd 3.2.0 interfacing with apm 
> driver 1.16 and APM BIOS 1.2
> Oct  2 17:34:55 willemsbak usb.agent[233]: missing kernel or user mode 
> driver usbcore
> Oct  2 17:34:55 willemsbak usb.agent[233]: missing kernel or user mode 
> driver usbcore
> Oct  2 17:34:55 willemsbak kernel: usb.c: registered new driver usbmouse
> Oct  2 17:34:55 willemsbak kernel: usbmouse.c: v1.6:USB HID Boot Protocol 
> mouse driver
> Oct  2 17:34:55 willemsbak usb.agent[239]: missing kernel or user mode 
> driver hid
> Oct  2 17:34:55 willemsbak usb.agent[239]: missing kernel or user mode 
> driver mousedev
-- 
Micha Feigin
michf@math.tau.ac.il



Reply to: