Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel doesn't recognize USB keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Thoom
n00b
n00b


Joined: 06 Jan 2004
Posts: 12
Location: Stanford, CA

PostPosted: Sat Aug 28, 2004 1:17 am    Post subject: Kernel doesn't recognize USB keyboard Reply with quote

When I boot up, my BIOS and Grub both recognize my USB keyboard just fine, but when I get to the login prompt, it doesn't work, nor do the lights turn on, which seems to indicate it isn't receiving power anymore.

I have UHCI OHCI and EHCI, as well as HID and the HID input layer all compiled into my kernel (gentoo-dev-sources, 2.6.8-gentoo-r3). HID input layer instructs me to enable "Input core" (CONFIG_INPUT), but it doesn't show up anywhere in the Input devices section of menuconfig. I checked .config out in nano, and CONFIG_INPUT is set to "y".

I'm baffled. Is it possible that menuconfig bugged out? Or that I'm missing some terribly obvious submenu or option elsewhere in the kernel that would make Input core show up?
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1612
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Sat Aug 28, 2004 2:33 am    Post subject: Reply with quote

Unless you have multiple USB chipsets you shouldn't need both UHCI and OHCI but it probably isn't hurting anything either. It will say something when the kernel boots about what chipset your usb has.

I imaging it wants this in the kernel.
Code:

CONFIG_INPUT_KEYBOARD=y

I think it is on by default but it wouldn't hurt to check your config.

There's also one for the MOUSE, PCSPKR, UINPUT(?), and HIDINPUT too incase you need them and missed them.

I have these for HID.
Code:

# USB Human Interface Devices (HID)
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y
Back to top
View user's profile Send private message
Thoom
n00b
n00b


Joined: 06 Jan 2004
Posts: 12
Location: Stanford, CA

PostPosted: Sat Aug 28, 2004 10:56 am    Post subject: Reply with quote

I checked, and in fact do have all of the required kernel modules. Also, I do indeed have all three USB chipsets in my system, though oddly enough, only three of my four or five reported USB cards have ports anywhere on the casing of my PC.

That aside, looking at /var/log/kernel/current brings something interesting to light.

Code:
Aug 28 03:25:39 [kernel] drivers/usb/input/hid-core.c: ctrl urb status -2 received
Aug 28 03:25:39 [kernel] drivers/usb/input/hid-core.c: usb_submit_urb(ctrl) failed


This would appear to me to be a bug in the 2.6.8 version of hid-core, since I didn't have any such problem with 2.6.7.

Edit: It might be useful to know that my keyboard is the standard USB keyboard that comes with Dell desktops. My mouse is a Microsoft wireless optical, but the error is there whether or not it's plugged in, so I doubt it's the problem.
Back to top
View user's profile Send private message
Caustiq
n00b
n00b


Joined: 29 Aug 2004
Posts: 57

PostPosted: Sun Aug 29, 2004 4:33 am    Post subject: Reply with quote

Thoom wrote:
That aside, looking at /var/log/kernel/current brings something interesting to light.

Code:
Aug 28 03:25:39 [kernel] drivers/usb/input/hid-core.c: ctrl urb status -2 received
Aug 28 03:25:39 [kernel] drivers/usb/input/hid-core.c: usb_submit_urb(ctrl) failed




I've observed this same exact error from my dmesg output. I am having problems getting my usb mouse to work in Xorg.

I'm using kernel 2.6.8 with nptl and I've built the kernel with nearly all USB related options from menuconfig.

Any help would be greatly appreciated.

Edit: Oddly enough, my USB Keyboard works fine.
Back to top
View user's profile Send private message
Caustiq
n00b
n00b


Joined: 29 Aug 2004
Posts: 57

PostPosted: Mon Aug 30, 2004 12:44 am    Post subject: Reply with quote

I solved the problem. I believe the error was a result of both my keyboard and mouse using USB connections. I simply connected my keyboard with a USB to PS/2 adapter and I no longer recieved that error, and my mouse is functioning now on /dev/input/mice . Either the USB HID input layer can't handle 2 input devices, or there's a different bug altogether somewhere else. If you have a USB mouse, it stands to reason that my 'method' may resolve your issue, but I'm certain this is not the true solution.

Thoom wrote:
Edit: It might be useful to know that my keyboard is the standard USB keyboard that comes with Dell desktops. My mouse is a Microsoft wireless optical, but the error is there whether or not it's plugged in, so I doubt it's the problem.


My guess is that maybe the usb port your keyboard is connected to is malfunctioning for some reason. When I switched my keyboard to a ps/2 adapter, I connected my mouse to the usb port my keyboard was originally using (which worked). Try disconnecting your mouse again like you did before, but this time try connecting your keyboard to the port the mouse was disconnected from. Maybe the issue is with certain USB ports not registering with the system for some reason? It might explain why my solution works anyways...
Back to top
View user's profile Send private message
Thoom
n00b
n00b


Joined: 06 Jan 2004
Posts: 12
Location: Stanford, CA

PostPosted: Wed Sep 01, 2004 6:51 am    Post subject: Reply with quote

Caustiq wrote:
My guess is that maybe the usb port your keyboard is connected to is malfunctioning for some reason.


Port's working fine. Connecting the keyboard to a different port resulted in GRUB giving me an error "No keyboard detected", so some ports are broken, but not that one.

Quote:
Try disconnecting your mouse again like you did before, but this time try connecting your keyboard to the port the mouse was disconnected from.


This would be difficult, given that my mouse is plugged into my keyboard.

At any rate, I solved the problem by downgrading to 2.6.7-r14, which works flawlessly. I'll wait until 2.6.9 to do any more buggering about with the kernel.
Back to top
View user's profile Send private message
Lord Bob
n00b
n00b


Joined: 05 Sep 2003
Posts: 62
Location: State of confusion, USA

PostPosted: Sun Sep 19, 2004 11:47 pm    Post subject: Reply with quote

I have a little to add to this as well...

I got the same messages in my logs as Thoom when I tried to attach my new USB Logitech Dual Action Gamepad. I did a little testing with a few other kernels, and a little searching on the internet. I found that my gamepad works fine in 2.4.

I thought I would give Gentoo-Dev-2.6.7-r14 a try like Thoom, but it didn't like my nvidia card. So I went to 2.6.7 vanilla, and everything works once again.

I have noticed a few postings about that particular error and USB keyboards in the kernel archive... so people know about it. Hopefully it gets fixed, or maybe I can learn enough about USB to fix it myself... or I could be lazy and leave it to the professionals :)

[edit]Oh, oops:
I was running linux-2.6.8-gentoo-r3 On an Athlon-XP 2500+, nForce2 motherboard when I initially plugged in my gamepad. Vanilla 2.6.8.1 did not work either.
_________________
This post brought to you by the letters: T, U, and X, and by the numbers 2 and 6.
"The joy from having 3D flying toasters across two monitors almost brought a tear to my eye :)" -- Me
Back to top
View user's profile Send private message
jarkko
n00b
n00b


Joined: 28 Jan 2004
Posts: 1

PostPosted: Mon Sep 27, 2004 12:47 pm    Post subject: USB keyboard Reply with quote

Hi,
I've also noticed some wierdness with the gentoo linux kernel 2.6.8 and USB keyboards. When i upgraded from linux-2.6.1-gentoo to linux-2.6.8-gentoo-r3 our computer fails to finishing booting properly. I.e. it just hangs after mounting root filesystem unless i keep hitting the keys on the USB keyboard.. What at problem.. Actually the init procedure doesn't continue unless i keep pressing any keys on the keyboard.. When the init process reaches something near where it's says "* Starting named.... [OK]" everything suddenly returns to normal and the system is in full speed again. This problem didn't exists with the previous kernel version..

Code:
raid1: raid set md0 active with 2 out of 2 mirrors
md: ... autorun DONE.
usb 5-1.1: new full speed USB device using address 3
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 140k freed

Here is where i need to pushing the keys on the keyboard to make the init continue. If i wait more than 30 seconds it's too late and the pushing of the keys nolonger doesn't help and the computer is hung...
Code:

input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard Hub] on usb-0000:00:10.3-1
.1
input: USB HID v1.10 Device [Dell Dell USB Keyboard Hub] on usb-0000:00:10.3-1.1
Adding 500344k swap on /dev/md1.  Priority:-1 extents:1
EXT3 FS on md2, internal journal
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0,  type 0



Linux jabserver2.jab.fi 2.6.8-gentoo-r3 #3 Mon Sep 27 15:07:47 EEST 2004 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

--jarkko
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum