Repository navigation
omarchy-mac: run the 14-inch M5 Max panel in Display P3 - #152
joshuaswarren wants to merge 5 commits into
Conversation
Hyprland drives the built-in panel at 8 bits per channel and as an sRGB display, its defaults for every output. Apple's display controller takes a 10-bit frame from it and shows SDR frames in the panel's own gamut, Display P3 here, so sRGB sent unconverted shows oversaturated; that is why Omarchy gives Apple Silicon displays the EDID preset. On this panel dp3 fits better: it maps into exact Display P3 rather than the EDID's rounded primaries, and where the panel's EDID lists BT.2020 colorimetry, as the J604 kernel's does once it offers HDR, Hyprland switches the connector to BT.2020 for the EDID preset. Name the panel in displays.conf with the runtime's new panel directive: connector eDP, mode 3024x1964, bitdepth=10 cm=dp3. Omarchy then gives that panel's monitor rules both settings and leaves external monitors alone; a bitdepth or cm set in hypr/monitors.lua wins. Only the 14-inch MacBook Pro panel is listed: it is the one panel this has been checked on, a MacBook Pro 14-inch (M4, J604). There Hyprland then hands the display controller XRGB2101010 frames, and with cm = "dp3" the connector stays on its default colorspace and the J604 driver tells the display controller the frames are Display P3. Whether the panel link itself carries 10 bits can't be read from Linux; macOS reports 8 bits with dithering for this panel. Another panel joins once a report shows the same on it. The package's displays.conf grammar test learns the directive and checks that it names a panel display-cutouts.json describes; an integration test runs the runtime's panel-defaults.lua against the staged file, so test/integration/runtime moves to the omacom/omarchy commit that adds it. A runtime without the directive ignores the line.
The omacom/omarchy pull request that adds default/hypr/panel-defaults.lua gained two commits: description rules for a named panel now get its settings, and its tests moved into hyprland-monitor-settings-test.sh. Point the runtime at its new head, 37fc7a9ffda6; it moves to the merge commit once that pull request merges.
The omacom/omarchy pull request that adds default/hypr/panel-defaults.lua gained a commit that keeps a description rule shared with an external display off that display. Point the runtime at its new head, cc96ed111309; it moves to the merge commit once that pull request merges.
The omacom/omarchy pull request that adds default/hypr/panel-defaults.lua gained a commit that follows the latest monitor rule naming the panel, by port or by description, as Hyprland does. Point the runtime at its new head, 52d735da59e7; it moves to the merge commit once that pull request merges.
Stacked on omacom#134's panel directive. The K114c's eDP panel (3024x1986, the only mode it offers at 120 Hz) has a factory Display P3 profile at D65; its EDID primaries measure the P3 gamut (area 0.1521 vs P3's 0.1520, colour-step12 capture) and the kernel maps the P3A ideal space to the Display P3 target. A bitdepth = 10 request was not verified on it (hyprctl still reported XRGB8888), so the line sets only cm = "dp3". Adds the 3024x1986 cutout entry the panel validation requires (same values as omacom#128's pending entry; whichever lands first, the other rebases trivially) and extends the panel-defaults test to cover it. Measured sources: eDP-2 3024x1986@120 across A2/comb5k/day1 boots (private receipts, m5-features.md); 2000-nit peak and EDR headroom 16.000 in comb5k dmesg; P3 factory profile per the M5 bring-up notes.
maralcbr
left a comment
There was a problem hiding this comment.
Thanks @joshuaswarren. Keeping this line to cm = "dp3" and holding back bitdepth until it measurably engages is the right call, and the cutout, grammar check and Lua case line up (displays.conf:11, display-cutouts.json:3, apple-platform-hooks-test.sh:116-119). A few things before merge:
- The EDID evidence needs reconciling with omacom/omarchy#18843. This PR reports P3 primaries (area 0.1521) from a comb5k-era capture. #18843 reports this panel's chromaticity block as
02 00 01 00 00 00 00 00, area 0.0, withcm = "edid"turning the session black. Could the commit message say which firmware or kernel gives which EDID, and whether this line is also the fix for that black screen? If it is, please also say howpanel-defaults.lua'scmis ordered againstwide-gamut.lua's. The test here loadspanel-defaults.luaon its own, so it doesn't cover that. omarchy-mac/README.md:27says the K114c has been checked at the default bitdepth. The PR has no result for that, and the test-plan item is unticked. Please post it (hyprctl monitorsshowingdp3on eDP-2 3024x1986, plus the grey check) or qualify the sentence.- No checks are reported at
40b40f5, and the branch conflicts. Please rebase once #134 lands so the package and integration suites run.
Smaller things:
- Is 3024x1986 K114c-only? The directive matches a mode, not a machine. #128 describes 3024x1986 at 96 rows as what the 14-inch MacBook Pro reports with the boot notch shown. Worth saying which machines report it. If others do, the comment at
displays.conf:10should name the mode. omarchy-mac/README.md:26still lists only the 64- and 56-row notches. Please add the 96-row mode.- Could the EDID hex,
hyprctl monitorsoutput and dmesg lines go in the PR? The cited sources are private (~/scratch/w7C/,docs/m5-features.md).
Nits, fine as follow-ups:
- Note the aquamarine build behind the XRGB8888 reading (omacom/omarchy-pkgs#2739 would explain a reported format that differs from the scanout one).
- Add an
eDP-2case to the Lua test, since that's the connector the K114c reports. - The comment and
failtext atapple-platform-hooks-test.sh:90-95still describe only the 10-bit panel.
Behaviour changes to note in the PR body: matching panels get Display P3 by default, and the 3024x1986 mode gets a 96-row notch floor (48 px at scale 2).
Still open, and not code issues:
- Defaults: both need an explicit maintainer decision, together with #134's
paneldirective. - Supported models: the manual's support list (
12-hardware.md:20) doesn't cover M5 Macs, so whether omarchy-mac carries tuning for them is a maintainer call. - Long-term home: whether per-panel lines here or a runtime rule like omacom/omarchy#18843 is the right home is also a maintainer call.
Release stays gated on a live K114c check at the final stack, including that the session stays visible after login.
Reviewed at 40b40f5f0ab0.
— Marcelo's agent
|
GREEN on 40b40f5 Review of the 14-inch M5 Max Match scope. The runtime rule in Values against the cited sources. All match.
Tests. Not merged. |
|
Closing this one, thanks for the measurements. Reasons:
A fresh PR with just the |
Summary
Stacked on #134 (the
paneldirective and its M4 line are its commits;once #134 merges this diff is only the last commit). Adds the second
panel profile: the 14-inch M5 Max (K114c, T6050) eDP panel at
3024x1986 gets
cm = "dp3".Measured values and sources
a 60 Hz modeset crashes the DCP firmware. Seen on A2 default, comb5k,
and day1 boots (private bring-up receipts;
docs/m5-features.mddisplay rows,
~/scratch/w7C/).notes). The
cmA/B on the panel (~/scratch/w7C/p3ab/w86-p3b/run.log,comb5e boot 5ad9c9d0) measured the EDID primaries at triangle area
0.1521 vs Display P3's 0.1520 and captured camera means for
cm=srgb/edid/dp3 across two rounds — dp3 lands with edid and apart
from srgb on the saturated patches. The kernel maps the P3A ideal
space to the Display P3 target (aurora-silicon/linux commit
c7dd0ca4673a8).panel eDP 3024x1986is not K114c-specific — omarchy-mac: describe the 14-inch panel's 3024x1986 boot-notch mode #128shows another 14-inch MacBook Pro on the same mode. The P3 effect on
those panels is unverified; they share the mode string, not a
measured gamut.
bitdepth = 10request was notverified on this panel — hyprctl still reported XRGB8888 under the
10-bit arm of the colour-step12 A/B — so the line sets only
cm = "dp3", matching the verified-workingcm = "edid"/P3 path.10-bit can be added once a measurement shows it engages.
luminance 2000 nits and EDR headroom 16.000; during HDR playback the
connector switches to EOTF SMPTE ST 2084 (PQ) / BT.2020_RGB.
Changes
displays.conf:panel eDP 3024x1986 cm=dp3with comment.display-cutouts.json: the 3024x1986 entry thepanelvalidationrequires (top 96 — same values as omarchy-mac: describe the 14-inch panel's 3024x1986 boot-notch mode #128's pending entry; whichever
lands first, the other rebases trivially).
desktop-setup-test.sh: expected directive list gains the new line.apple-platform-hooks-test.sh: cutout count 4→5, notch-floorassertion for the new mode, and a panel-defaults Lua case asserting
3024x1986 gets
cm = "dp3"with no bitdepth while other monitors andunlisted panels keep defaults.
README.md,version0.2.7→0.2.8.Test plan
desktop-setup-testandapple-platform-hooks-test(needs theruntime pin from Name the 14-inch MacBook Pro M4 panel: 10-bit, Display P3 #134, which supplies
panel-defaults.lua)cm = "dp3"applied to eDP-2 3024x1986, greys stayneutral (camera corner-mean check per bring-up receipts)
Generated with Devin