FS#15333 - Keyboard only works in fallback kernel

Attached to Project: Arch Linux
Opened by Daniel (Doehni) - Wednesday, 01 July 2009, 15:54 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 03 July 2009, 10:00 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I'm not really sure it's kernel related, but here goes:
Since about the upgrade from kernel26-2.6.28 to 2.6.29 (Xorg was also upgraded) I got a problem with my keyboard. It is also persistent in 2.6.30-5:

When starting the normal kernel image, in 99 % of the time my keyboard doen't react at all (even at daemon start up).
My mouse works perfectly in X11.

When starting the Fallback kernel image, everything works perfectly and the box even starts XOrg.

My box is a Compaq Evo N1050v Laptop so I can't just reconnect the keyboard ;)

I also opened a form thread:
http://bbs.archlinux.org/viewtopic.php?id=75082

Additional info:
* package version(s)
kernel-2.6.30-5
* config and/or log files etc.


Steps to reproduce:
Start the normal kernel image and keyboard doesn't work.
Start fallback kernel and keyboard does work
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 03 July 2009, 10:00 GMT
Reason for closing:  Fixed
Comment by Roman Kyrylych (Romashka) - Wednesday, 01 July 2009, 17:59 GMT
please attach mkinitcpio.conf and the output of mkinitcpio -M
Comment by Daniel (Doehni) - Wednesday, 01 July 2009, 18:32 GMT
Gladly! Here they are. :-)
Comment by Roman Kyrylych (Romashka) - Wednesday, 01 July 2009, 22:48 GMT
> When starting the Fallback kernel image, everything works perfectly and the box even starts XOrg.
so Xorg does not start with normal kernel image?

I wonder why do you have usbinput hook?
Does the laptop have USB keyboard???

Please also supply the output of mkinitcpio -p kernel26 -v (redirect it to a file because it will be long).
Comment by Daniel (Doehni) - Wednesday, 01 July 2009, 23:17 GMT
>> When starting the Fallback kernel image, everything works perfectly and the box even starts XOrg.
>so Xorg does not start with normal kernel image?
Xorg starts all the time. As far as I can tell, everything works but not the keyboard (can't login)

>I wonder why do you have usbinput hook?
>Does the laptop have USB keyboard???
The keyboard is 'inside' the laptop but it's connected via an USB-Bus I think (didn't add the usbinput hook myself)

mkinitcpio -p kernel26 -v output is attached.

Comment by Roman Kyrylych (Romashka) - Wednesday, 01 July 2009, 23:29 GMT
Okay, here's the files that are added with usbinput hook in fallback images but not present in normal image:
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/ehci-hcd.ko
+adding dir /lib/modules/2.6.30-ARCH/kernel/drivers/uwb
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/uwb/uwb.ko
+adding dir /lib/modules/2.6.30-ARCH/kernel/drivers/usb/wusbcore
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/wusbcore/wusbcore.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/wusbcore/wusb-wa.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/hwa-hc.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/isp1760.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/oxu210hp-hcd.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/r8a66597-hcd.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/sl811-hcd.ko
+adding dir /lib/modules/2.6.30-ARCH/kernel/drivers/usb/misc
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/misc/ftdi-elan.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/u132-hcd.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/uhci-hcd.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/uwb/umc.ko
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/uwb/whci.ko
+adding dir /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/whci
+adding file /lib/modules/2.6.30-ARCH/kernel/drivers/usb/host/whci/whci-hcd.ko
Not sure why autodetect hook does not add them, but I guess at least one of those modules is required for your keyboard to work properly.
Comment by Roman Kyrylych (Romashka) - Wednesday, 01 July 2009, 23:32 GMT
I suggest checking lsmod output to find which module from the list above is present after loading the fallback image and then try to add it to MODULES in mkinitcpio.conf and regenerate images again.
Comment by Thomas Bächler (brain0) - Thursday, 02 July 2009, 09:54 GMT
I am confused that ehci is removed by autodetect, you should try adding it manually.

Another "solution" might be removing the usbinput hook, so no incomplete USB initialisation is performed early. However, this will disable the possibility to use the fallback ramfs shell.
Comment by Daniel (Doehni) - Thursday, 02 July 2009, 18:52 GMT
I searched for the modules in fallback image and added ehci_hcd to the Modules in mkinitcpio.conf.

After restarting the box for about 10 times, only once the keyboard didn't work.
So I think it's all right now! :)

Thank you so much for the graet and fast help!!
Comment by Roman Kyrylych (Romashka) - Thursday, 02 July 2009, 19:29 GMT
@Thomas: so we consider this closed now (as requested by Daniel) or you want to investigate why ehci was removed by autodetect?

Loading...