Repository navigation
omarchy-mac-boot: early-load dwc3-apple so Type-C port keyboards type at the passphrase prompt - #127
Conversation
… at the passphrase prompt The asahi mkinitcpio hook lists dwc3 and dwc3-of-simple but not dwc3-apple, the glue driver linux-aurora uses for the Type-C USB controllers. Without it in the image those controllers, and the CD321 port managers that wait on them, only come up after switch-root, so a keyboard plugged straight into a Type-C port cannot type the LUKS passphrase (omacom/linux-aurora#380). Add it to the HID drop-in's module list, behind the same modinfo guard as the others. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
joshuaswarren
left a comment
There was a problem hiding this comment.
Tested on 16-inch M1 Max MacBook Pro (T6001), Omarchy.
Applied the PR to /etc/mkinitcpio.conf.d/92-omarchy-mac-hid.conf and rebuilt the initramfs.
Confirmed: dwc3-apple [explicit] appears in the initramfs module list (verified with lsinitcpio -a /tmp/initramfs-test.img).
The fix correctly adds dwc3-apple to the initramfs so Type-C keyboards work at the LUKS passphrase prompt. I didn't test an actual LUKS prompt.
Approved.
|
Tested on a second machine, a Mac Studio M2 Ultra ( Without So on a cold boot only the HDMI display showed the prompt. A DP-alt display and a Thunderbolt display on the rear ports stayed dark until after the unlock. Cold boots, with all displays attached from power-on:
The Thunderbolt display also needs omacom/linux-aurora#463. The rest works on the stock kernel. The HDMI display is unchanged either way. |
|
Confirming this same missing Before
After
Supporting |
|
Hi, is there anything I can do to help this land? It has one approval, and it has now been confirmed on:
Without It's still mergeable with no conflicts. If anything needs changing, I can rebase or adjust it. |
On an Apple Silicon desktop, a keyboard plugged straight into a rear Type-C port cannot type the LUKS passphrase. The Type-C xHCI buses only register after switch-root.
The
asahimkinitcpio hook (asahi-scripts 20261023-1) listsdwc3anddwc3-of-simplefor USB, but notdwc3-apple, the glue driver linux-aurora uses for these controllers. Without it in the image the controllers, and the CD321 port managers that wait on them, are left for udev in the real root.This adds
dwc3-appleto the module list in92-omarchy-mac-hid.conf, behind the samemodinfoguard as the other entries, and extendsmac-hid-initramfs-test.shto cover it.Cold-boot evidence: Mac Studio M1 Max (
apple,j375c, t6001),linux-aurora 7.2.11.aurora14-1,omarchy-mac-boot 20261104-1, with the equivalent line in a local drop-in (MODULES+=(dwc3-apple)in/etc/mkinitcpio.conf.d/96-rear-usb-dwc3-apple.conf) rather than this edited file:Seen on three cold boots after the change. The Type-C ports on this machine only work at all with omacom/m1n1#46, so that was installed for both rows.
Tests: the source checks in
omarchy-mac-boot/test/mac-hid-initramfs-test.shpass locally. I did not run the container part (OMARCHY_DISPOSABLE_BOOT_TESTS=1) or the integration suite.Not tested: laptops, and any machine where
dwc3-appleis built in or absent (the guard should leave it out there, as for the other modules).Refs omacom/linux-aurora#380.
🤖 Generated with Claude Code