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

Issue: inactive keyboard in initramfs on encrypted partitions #488

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hamidrezaniazi
Copy link

Description:

This pull request addresses an issue related to keyboard availability during the initramfs step. If the partition is encrypted, hid_apple must be added to the MODULES list in /etc/mkinitcpio.conf to ensure proper functionality. This step is necessary to prevent the keyboard from becoming unavailable while entering the encryption password.

otherwise, the keyboard will not be available at the initramfs step
@AdityaGarg8
Copy link
Member

information about encryption is mentioned here: https://wiki.t2linux.org/guides/postinstall/#make-modules-load-on-early-boot

Also, is hid_apple really needed on T2 Macs cause apple-bce is the driver that manages keyboard?

@sharpenedblade
Copy link
Contributor

apple-bce is enough for the keyboard on fedora, I dont think the arch kernel is too diferent

@Redecorating
Copy link
Member

for arch, do you have the keyboard hook enabled? i think that one will automatically include hid-apple (but unfortunately not apple-bce)

@hamidrezaniazi
Copy link
Author

Also, is hid_apple really needed on T2 Macs cause apple-bce is the driver that manages keyboard? @AdityaGarg8

apple-bce is enough for the keyboard on fedora, I dont think the arch kernel is too different @sharpenedblade

apple-bce alone doesn't enable the keyboard between the bootloader and user authentication, specifically when entering the password to unlock the encrypted volgroup. However, post-encryption, apple-bce indeed takes over for keyboard support. Including both hid_apple and apple-bce in the modules (MODULES=(hid_apple apple-bce)) works well, and I've tested it.

I haven't found an alternative in the wiki for this case. If there's anything I missed or if you have other suggestions, I'd appreciate your insights!

for arch, do you have the keyboard hook enabled? i think that one will automatically include hid-apple @Redecorating

Yes, the keyboard hook was enabled, but it did not automatically include hid_apple.

@Redecorating
Copy link
Member

can you check if you have the keyboard mkinitcpio hook before the encrypt hook? I think it might have to be in that order.

HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems fsck)
is the example order in the arch wiki fwiw

@hamidrezaniazi
Copy link
Author

can you check if you have the keyboard mkinitcpio hook before the encrypt hook? I think it might have to be in that order. @Redecorating

Yes, confirming that the order aligns with the mentioned one, keyboard is before encrypt, so it cannot be the case.

@AdityaGarg8
Copy link
Member

Request for review from @Redecorating

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

Successfully merging this pull request may close these issues.

4 participants