[SOLVED] Non-working USB keyboard at LUKS prompt, 14.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm finally able to type this message from my desktop computer at work. I struggled for a while to get my USB keyboard working at the LUKS prompt for password. What follows below will hopefully help someone:
In the older kernels it was enough to include the usbhid and ehci-hcd (or ohci-hcd or uhci-hcd) modules in the initrd. Apparently there have been some changes (and the Linux documentation in the source tree is terribly out-of-date):
First of all, there is a new "hid-generic" module that has to be included now. The mkinitrd_command_generator.sh script already suggests this module. Unfortunately, it wasn't enough in my case.
It turned out that I also had to include the new "ehci-pci" module as well. With a Google search I encountered people with a 3.11 kernel requiring an "ohci-pci" module but 3.10 doesn't have it, so I went for ehci-pci and it worked.
I guess you just need hid_generic and usbhid for usb keyboard. You may not need anymore those you mention for using usb keyboard at boot: ehci-hcd, ehci-pci, ohci-hcd or uhci-hcd.
You have upgraded to 14.1? run again /usr/share/mkinitrd/mkinitrd_command_generator.sh in 14.1 should clarify the modules you need.
Check the changelog in days before version Slackware 14.1 was been released:
Quote:
Tue Oct 29 05:03:04 UTC 2013
a/mkinitrd-1.4.8-x86_64-2.txz: Rebuilt.
In mkinitrd_command_generator.sh, if a USB keyboard is detected add the
hid_generic module (in addition to usbhid). Recent kernels need this.
Thanks to mario.
@sardinha: As I mentioned in my original post, I am already aware that mkinitrd_command_generator.sh suggests hid-generic and of course I tried it (and many other combinations). One *does* need ehci-pci (and/or ohci-pci with 3.11 kernels) in my case. This is due to the restructuring of the Linux kernel code. You can find relevant discussions about this with a Google search.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.