View previous topic :: View next topic |
Author |
Message |
dopey Apprentice

Joined: 10 Feb 2003 Posts: 235
|
Posted: Mon Feb 10, 2003 11:19 pm Post subject: USB Mouse not being picked up as an input device |
|
|
Hi,
I just started working with Gentoo a little. I think I'm missing something obvious, so if anyone has any ideas, I'd appreciate it.
I've built 2.4.19-gentoo-r10 kernel with nearly everything modular (I prefer modules for silly reasons).
Here's lsmod output:
Module Size Used by Not tainted
keybdev 1792 0 (unused)
mousedev 3796 0 (unused)
input 3072 0 [keybdev mousedev]
hid 8468 0 (unused)
usb-uhci 19948 0 (unused)
ds 7112 2
usbcore 52768 1 [hid usb-uhci]
i82365 26784 2
pcmcia_core 43360 0 [ds i82365]
And here's the relevant portions from the kernel:
usb-uhci.c: $Revision: 1.275 $ time 01:26:39 Feb 10 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 5 for device 00:07.2
PCI: Sharing IRQ 5 with 00:08.0
PCI: Sharing IRQ 5 with 00:10.0
usb-uhci.c: USB UHCI at I/O 0x1060, IRQ 5
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
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x46d/0xc00b) is not claimed by any active driver.
usb.c: registered new driver hid
hiddev0: USB HID v1.10 Mouse [Logitech USB Mouse] on usb1:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
Basically, it looks like the mouse input driver is not picking up the
mouse as an input device. Normally I'd expect an
inputX line for the mouse and then a /dev/input/mouse0 node
being created but this isn't happening.
I can't figure what I'm missing.
Here's the relevant kernel configuration information:
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
CONFIG_USB_LONG_TIMEOUT=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI=m
CONFIG_USB_UHCI_ALT=m
CONFIG_USB_OHCI=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=m
CONFIG_USB_HIDDEV=m
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
CONFIG_INPUT=m
CONFIG_INPUT_KEYBDEV=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_EVDEV=m
If anyone has any ideas, it'd be much appreciated.
I found quite a few posts in the forums similar to this problem
but with very little to go on as to what actually fixed it.
Thanks |
|
Back to top |
|
 |
BonezTheGoon Bodhisattva


Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Mon Feb 10, 2003 11:37 pm Post subject: |
|
|
Are you sure that you enabled the correct USB support for your hardware (chipset)? What mainboard chipset do you have (specifically the southbridge), or if it is a PCI USB card what chipset is used on the card? What I am getting at is maybe instead of the usb-uhci module you need the usb-ohci module. Other than that it looks to me like you have done most everything right. Another thing to check is the very very helpful how to posted here.
Hope that gets you going!
Regards,
BonezTheGoon |
|
Back to top |
|
 |
dopey Apprentice

Joined: 10 Feb 2003 Posts: 235
|
Posted: Mon Feb 10, 2003 11:56 pm Post subject: |
|
|
BonezTheGoon wrote: | What mainboard chipset do you have (specifically the southbridge), or if it is a PCI USB card what chipset is used on the card? |
It's a Dell Inspiron 5000 laptop. It uses the UHCI module. It's definitely the usb-uhci. ohci won't even load.
Also, I was using usb-uhci with RedHat 8.0, and 7.3 prior to dumping RH and going gentoo.
I've done the USB thing before many times. Built custom kernels in redhat and it's always just worked. I found that howto last night and compared. I pretty much did everything the same except I used modules instead of compiling stuff into the kernel. GRRRR!! Any ideas? |
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Feb 11, 2003 12:12 am Post subject: |
|
|
I don't know if this will help you but I have my usb mouse working and this is the relative part in lsmod:
Code: | mousedev 4596 1
hid 15368 0 (unused)
usb-uhci 29996 0 (unused)
input 3840 0 [keybdev mousedev hid] |
Note the absence of usbcore. |
|
Back to top |
|
 |
dopey Apprentice

Joined: 10 Feb 2003 Posts: 235
|
Posted: Tue Feb 11, 2003 12:49 am Post subject: |
|
|
Yeah, the problem is usbcore is required for USB. I can't even unload it. Gentoo automatically loads it. You probably built it with USB in the kernel. I'll probably try that. Too bad my damn laptop's disk is so slow. Compiling the kernel takes a while.
The key in my lsmod is that mousedev comes up unused. Now if only I can figure out why.
bsolar wrote: | I don't know if this will help you but I have my usb mouse working and this is the relative part in lsmod:
Code: | mousedev 4596 1
hid 15368 0 (unused)
usb-uhci 29996 0 (unused)
input 3840 0 [keybdev mousedev hid] |
Note the absence of usbcore. |
|
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Feb 11, 2003 1:36 pm Post subject: |
|
|
Another maybe useful maybe not thing...
I have the first uhci, not the alternate driver. I don't know the difference but if I recall well the second one was the default. |
|
Back to top |
|
 |
dopey Apprentice

Joined: 10 Feb 2003 Posts: 235
|
Posted: Tue Feb 11, 2003 6:38 pm Post subject: |
|
|
bsolar wrote: | Another maybe useful maybe not thing...
I have the first uhci, not the alternate driver. I don't know the difference but if I recall well the second one was the default. |
The first uhci is usb-uhci module. Just plain uhci is the alternate driver module. So I got it working. However, I don't like what I did.
I edited my .config and rebuilt my kernel.
First I set CONFIG_USB=y instead of m.
Didn't solve it. then I made CONFIG_USB_HIDINPUT=y instead of
m.
That did it.
If anyone can shed some light as to why building HIDINPUT as a module (input.o) wouldn't work but building into the kernel would that would be great.
I made no other changes to the kernel config from the config that didn't work. |
|
Back to top |
|
 |
dopey Apprentice

Joined: 10 Feb 2003 Posts: 235
|
Posted: Tue Feb 11, 2003 10:18 pm Post subject: |
|
|
problem resolved.
I was using a custom .config file. I broke something in the config file.
make menuconfig didn't properly validate it and fix it.
make xconfig did. The .config file created by make xconfig looks much
more reasonable and after rebuilding all is happy.
Yay!! |
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Feb 11, 2003 10:20 pm Post subject: |
|
|
Glad to hear that . |
|
Back to top |
|
 |
|