Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No keyboard input on Linux >=6.7.6 kernel #258

Open
rieje opened this issue Mar 10, 2024 · 3 comments
Open

No keyboard input on Linux >=6.7.6 kernel #258

rieje opened this issue Mar 10, 2024 · 3 comments

Comments

@rieje
Copy link

rieje commented Mar 10, 2024

On Linux >=6.7.6 kernel, there's no keyboard input for LUKS encrypted system drive on boot. Downgrading to a lower kernel version on Arch Linux restores keyboard input. Several people have experienced the same issue with no apparent fixes (OP claimed to have fixed this by adding):

vconsole: true
modules_force_load: usbhid

Though in another comment said switching back to mknitcpio fixes this.

I implemented this /etc/booster.yaml:

modules_force_load: i915,usbhid
extra_files: busybox
vconsole: true

but was not successful.

Switched to dracut and it also works fine. Standard USB keyboard. Dracut's lsinitrd lists the following modules for its generated image:

    systemd
systemd-initrd
i18n
btrfs
crypt
dm
kernel-modules
kernel-modules-extra
rootfs-block
terminfo
udev-rules
dracut-systemd
usrmount
base
fs-lib
shutdown
@anatol
Copy link
Owner

anatol commented Mar 10, 2024

It is most likely due to the fact that the kernel has changed set of the default modules here https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/commit/4fdcfcca3e1ad2aec13f014a7a0bc3ece49725ba and here https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/commit/8ab2fef5d608714925748726901a2da4915cdf21 and did not verify that booster works.

One suspicious change is this one

-CONFIG_HID_GENERIC=y
+CONFIG_HID_GENERIC=m

Booster assumes that hid_generic is always loaded, but it is not true and fails to setup a usb keyboard properly.

To check this hypothesis please add modules_force_load: hid_generic, rebuild, reboot and see if it makes any difference for you.

@rieje
Copy link
Author

rieje commented Mar 10, 2024

That did it, I was able to successfully boot with modules_force_load: hid_generic, thank you.

@ferrreo
Copy link
Contributor

ferrreo commented Mar 23, 2024

Given this is the default kernel config going forwards now should it maybe be the default to always load this module in booster?

krathalan added a commit to krathalan/etc-config that referenced this issue Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants