Repository navigation
Initramfs: early-load the PMP and keyboard-PWM drivers, light the keyboard at the passphrase prompt - #714
Open
techmore wants to merge 2 commits into
Open
Initramfs: early-load the PMP and keyboard-PWM drivers, light the keyboard at the passphrase prompt#714techmore wants to merge 2 commits into
techmore wants to merge 2 commits into
Conversation
added 2 commits
October 31, 2026 14:38
…board at the passphrase prompt Ports omarchy-mac-pkgs 7ae91471 and a0fa1a8b (MIT) into the transform's mkinitcpio block. On kernels that build apple_pmp and pwm_apple as modules (linux-aurora 7.2.11), an encrypted root otherwise waits out a 20 s PMP bind timeout before the passphrase prompt, and the keyboard backlight stays off while the passphrase is typed. initramfs-hardware.snippet adds both modules where modinfo names them and bundles a udev rule (installed by elementary-mac-setup) that turns kbd_backlight on at 128 when leds_pwm registers it at 0. Not verified on hardware.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports two Omarchy Mac boot fixes (
omacom/omarchy-mac-pkgs7ae91471 and a0fa1a8b, MIT) into our transform's mkinitcpio block. These are the same kind of "fixes Omarchy's installer gave us that this port never runs" as the HID and display-crossbar early-loads.Problem: on kernels that build
apple_pmpandpwm_appleas modules (upstream reports linux-aurora 7.2.11), both sit on the encrypted root. Boot waits out "PMP driver did not bind within 20000 ms" before the passphrase prompt, and the keyboard backlight stays off while you type the passphrase.Change:
mseries/boot/initramfs-hardware.snippet: addsapple_pmpandpwm_appleto the existing modinfo-guarded list, so a kernel without them never fails mkinitcpio. It also bundles the udev rule below withFILESwhen the rule is installed.mseries/boot/90-elementary-mac-kbd-backlight.rules: turnskbd_backlighton at 128 whenleds_pwmregisters it at 0. systemd-backlight restores the saved level after unlock, and a backlight that's already on is left alone.bin/elementary-mac-setup:install_initramfs_fixesinstalls the rule to/etc/udev/rules.d/.test-elementary-mac-setup.sh: checks the module list with every driver present, and with some missing.PORT-MAP.mdrow and handoff entry.Scope:
=y), so it's unaffected. I don't know whether your current Aurora kernel builds them as modules.elementary-mac-setupre-applies the initramfs block.Not verified: an initramfs rebuild or a boot on the j314s.