Repository navigation
linux-aurora: ship the Mesa calibration extractor with the kernel - #1293
Merged
maralcbr merged 1 commit intoOct 20, 2026
Merged
Conversation
Install tools/aurora-sep/extract-mesa-calibration.py from the pinned kernel tree as /usr/lib/linux-aurora/extract-mesa-calibration, so the platform package can produce Touch ID's per-device Mesa calibration without carrying its own copy. The path stays clear of aurora-touchid's, so both can be installed together. check() runs the extractor's own unit tests. python is an optional dependency, needed only for the extractor. pkgrel moves to 2: the pin, config and kernel code are unchanged, but this is a kernel rebuild. Co-authored-by: DjDeveloperr <hey@djdev.me> Co-authored-by: Chris Kearney <303316+iconidentify@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
scottjones
force-pushed
the
linux-aurora/mesa-calibration-tool
branch
from
October 20, 2026 02:06
e0701c2 to
6826c03
Compare
maralcbr
approved these changes
Oct 20, 2026
maralcbr
left a comment
Member
There was a problem hiding this comment.
Reviewed at 6826c032 (pin 1b4997bb). Looks right.
- At the pin,
tools/aurora-sep/extract-mesa-calibration.pyandtools/aurora-sep/aurora-touchid/extract-mesa-calibrationare the same blob (f7feef24), so the installed copy is byte-identical toaurora-touchid's, as the description says. check()works underpython -I: the test loads the script throughimportlibfromPath(__file__).resolve().parents[1], so it doesn't depend onsys.path.pythonis already inmakedepends._package_kernelruns from$srcdir/linux(_packagedoescd $_srcname), so the relativeinstallpath resolves./usr/lib/linux-aurora/doesn't collide withaurora-touchid.- The script only needs the standard library, so an optional
pythondependency is the right call. pkgrel=2on top of the published7.2.10.aurora1-1from #1301 is correct.
Touch ID on Omarchy still needs two more pieces after this
This PR ships the extractor, but nothing runs it yet. Touch ID on edge Macs needs all of the following, and only the first is here:
- The calibration firmware: this extractor, plus the omarchy-mac oneshot that writes
apple/mesacal-<board>.bin. - fprintd's device sandbox: Arch's
fprintd.serviceonly allows usb/spi/hidraw/cros_fp, and/dev/sep-biois a misc device, so fprintd can't open it. The kernel's owntools/aurora-sep/aurora-touchid/fprintd-aurora.confalready handles this. It usesDeviceAllow=char-misc rwrather than the node path, because a path rule is resolved when the cgroup is set up and is dropped if/dev/sep-biodoesn't exist yet. It also uses anExecStartPrethat waits up to 15 s for the node to appear. Neither is shipped on Omarchy edge today. The drop-in from #1332 only addschar-input r, and my earlier suggestion there ofDeviceAllow=/dev/sep-bio rwwould hit exactly that problem.char-miscplus the wait is the better fix. - The SEP driver: since #1301,
apple-sepis a module. It autoloads from the device tree, but the node appears a few seconds after the enclave comes up, which is why the wait in (2) matters.
So edge users get no Touch ID benefit until (1) and (2) land, and this PR alone costs a kernel update and reboot. That's fine for edge, and merging it now means the oneshot can rely on the path.
Merge path: it changes an existing file under tests/, so the auto-merge bot won't arm it. I'll merge it once the full build is green.
Contributor
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.
Touch ID needs each Mac's Mesa calibration in
/usr/lib/firmware/apple/before the SEP driver can bring the sensor up. The extractor that carves it out of the iBoot System Container lives in the kernel tree (tools/aurora-sep/extract-mesa-calibration.py). Today only the release'saurora-touchidpackage ships it, so edge Macs have no supported way to get the file.This installs it from the pinned kernel source as
/usr/lib/linux-aurora/extract-mesa-calibration, so omarchy-mac can run it from a oneshot without carrying its own copy. That path doesn't collide withaurora-touchid's copy, so both packages can be installed together. Nothing runs it yet: the oneshot, and choosing the firmware name (e.g.apple/mesacal-<board>.binon M1 Pro/Max), stay in omarchy-mac.pythonis an optional dependency, because the kernel itself doesn't need it.check()now runs the extractor's own unit tests (35, offline, synthetic fixtures).pkgrelgoes to 2 (7.2.10.aurora1-1 was published from #1301) so edge picks up the new file. The pin, config and kernel code are unchanged, but this is still a full kernel rebuild:uname -rmoves from7.2.10-1-1-ARCHto7.2.10-1-2-ARCH, so edge Macs get a kernel update and a reboot for one added file. If that's not worth it on its own, it can ride along with the next pin bump instead.The release recipe also builds
linux-auroraand doesn't ship this file, so callers should check for the extractor at this path, not for the package. They can fall back toaurora-touchid's copy.Tested:
tests/aurora-edge/metadata.pypasses, with a new check on the install line and path. The recipe's install line andcheck(), run against the files at the pinned commit1b4997bb, pass 35/35. The installed copy is byte-identical toaurora-touchid's, runs--help, extracts a synthetic calibration with mode 600, and exits 1 on missing input. I didn't do a full kernel build.cc @iconidentify @DjDeveloperr: DJ wrote the extractor and Chris maintains it, so I'd like one of you to look this over.
🤖 Generated with Claude Code