Skip to content

Fix M3 Pro panel brightness and unavailable-control readings - #138

Closed
bitemyapp wants to merge 1 commit into
mainfrom
codex/m3-brightness
Closed

bitemyapp wants to merge 1 commit into
mainfrom
codex/m3-brightness

Conversation

@bitemyapp

@bitemyapp bitemyapp commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

On the M3 Pro J514S developer image, 7.1.12-aurora20 exposes no display backlight. Brightness keys cannot change the panel, but Aizome substitutes 50% and displays 45% or 55% on every press.

Backport linux-aurora #183 to the exact pinned kernel through the optional nixosModules.apple-silicon-backlight module. Adapt the older driver's separate 14.7/H17P initialization, setters and lifecycle dispatch; initialize the policy and work before probe teardown can run. Preserve the existing kernel, graphics stack and other boards' paths. Keep requests within 500 nits and report an actual level only after its successful matching present.

Aizome now suppresses refused requests and displays the backend's rounded target instead of fabricating a percentage. Document the backport's installation and removal when the kernel is upgraded.

Validation:

  • Native aarch64 appledrm.ko build passed against the pinned kernel.
  • The backport check applies with zero fuzz and passes wire encoding for all 501 levels, bounds, presentation readback and work gates.
  • Aizome settings tests: 12 passed; system power tests: 6 passed, including logind brightness writes.
  • The upstream KUnit controls, including the adapted initializer, compile against the pinned kernel; they were not executed.
  • Full native NixOS system build passed: patched kernel, modules, initrd and boot entry. The installed-system closure diff contains only linux-aurora; the final installer dry run also passed.
  • Physical J514S brightness, blank/unblank and suspend/resume validation awaits booting the new generation. Keep this draft until that validation is recorded.

The installed-machine update stages only the kernel backport for the next boot. The shell change will ship through the normal reviewed update. Release publication remains inhibited.

@bitemyapp

Copy link
Copy Markdown
Owner Author

Closing as a duplicate of #164, not as finished. This branch's commit (4882dc3) is on #164's branch, and its content files are identical there: osd.rs, tests/settings.rs, the three files under nix/apple-silicon/, and tests/test_apple_backlight.py. main has none of this work.

The description above, with the hardware validation still owed on the J514S, is copied to #164 so that it stays on an open draft.

@bitemyapp bitemyapp closed this Nov 15, 2026
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.

1 participant