t2linux / wiki

Repository for the t2linux.org wiki
https://wiki.t2linux.org
Creative Commons Attribution Share Alike 4.0 International
169 stars 60 forks source link

Issue: inactive keyboard in initramfs on encrypted partitions #488

Open hamidrezaniazi opened 7 months ago

hamidrezaniazi commented 7 months ago

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.

AdityaGarg8 commented 7 months ago

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 commented 7 months ago

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

Redecorating commented 7 months ago

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

hamidrezaniazi commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 2 months ago

Request for review from @Redecorating