Skip to content

omarchy-mac: run the 14-inch M5 Max panel in Display P3 - #152

Closed
joshuaswarren wants to merge 5 commits into
omacom:mainfrom
joshuaswarren:wAW/k114c-panel-p3
Closed

joshuaswarren wants to merge 5 commits into
omacom:mainfrom
joshuaswarren:wAW/k114c-panel-p3

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #134 (the panel directive 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

  • Mode: eDP-2, 3024x1986 @ 120 Hz — the only mode the panel offers;
    a 60 Hz modeset crashes the DCP firmware. Seen on A2 default, comb5k,
    and day1 boots (private bring-up receipts; docs/m5-features.md
    display rows, ~/scratch/w7C/).
  • Gamut: factory profile is Display P3, D65 white (M5 bring-up
    notes). The cm A/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).
  • Match scope: panel eDP 3024x1986 is not K114c-specific — omarchy-mac: describe the 14-inch panel's 3024x1986 boot-notch mode #128
    shows 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: deliberately NOT set. A bitdepth = 10 request was not
    verified 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-working cm = "edid"/P3 path.
    10-bit can be added once a measurement shows it engages.
  • HDR context (not this line's job): comb5k dmesg reports panel peak
    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=dp3 with comment.
  • display-cutouts.json: the 3024x1986 entry the panel validation
    requires (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-floor
    assertion for the new mode, and a panel-defaults Lua case asserting
    3024x1986 gets cm = "dp3" with no bitdepth while other monitors and
    unlisted panels keep defaults.
  • README.md, version 0.2.7→0.2.8.

Test plan

Generated with Devin

IronsideXXVI and others added 5 commits November 12, 2026 00:26
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 maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. 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, with cm = "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 how panel-defaults.lua's cm is ordered against wide-gamut.lua's. The test here loads panel-defaults.lua on its own, so it doesn't cover that.
  2. omarchy-mac/README.md:27 says 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 monitors showing dp3 on eDP-2 3024x1986, plus the grey check) or qualify the sentence.
  3. 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:10 should name the mode.
  • omarchy-mac/README.md:26 still lists only the 64- and 56-row notches. Please add the 96-row mode.
  • Could the EDID hex, hyprctl monitors output 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-2 case to the Lua test, since that's the connector the K114c reports.
  • The comment and fail text at apple-platform-hooks-test.sh:90-95 still 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 panel directive.
  • 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

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

GREEN on 40b40f5
Model: cursor/claude-sonnet-5-5

Review of the 14-inch M5 Max cm=dp3 entry (the four earlier commits are #134 and were not re-reviewed).

Match scope. The runtime rule in default/hypr/panel-defaults.lua at the pinned commit matches a monitor whose name starts with eDP, with a current mode of exactly 3024x1986. It does not touch DP or HDMI outputs. The key is resolution only, so it is not unique to the M5 Max. #128 says another 14-inch MacBook Pro reports 3024x1986@60 when the notch is shown, and it adds the same cutout entry. Those panels are also Display P3, so the effect is cm=dp3 without 10-bit. The PR does not show that for the other models, so treat it as unverified. Please reword the comment and body from "the M5 Max's panel" to "the 3024x1986 14-inch panels". This is a note, not a blocker.

Values against the cited sources. All match.

  • EDID primaries area 0.1521 against 0.1520 for Display P3.
  • The bitdepth=10 arm still reported XRGB8888, so leaving bitdepth out is correct.
  • Only mode is 3024x1986@120, peak 2000 nits, factory profile Display P3 with D65.
  • Kernel commit c7dd0ca4673a exists and maps the P3A colour space to the Display P3 target.
  • Citation gap, non-blocking: the cm=dp3 run on the M5 panel is in the P3 A/B log, where its camera means match cm=edid and differ from srgb. The PR cites the colour-step log, which has only the srgb and edid arms.

Tests. bash omarchy-mac/test/all on this head: exit 0. The Lua case in test/integration/apple-platform-hooks-test.sh needs the pinned runtime checkout and was not run. Nothing was run on hardware, and the on-hardware test-plan box is still unchecked.

Not merged.

@maralcbr

Copy link
Copy Markdown
Member

Closing this one, thanks for the measurements. Reasons:

A fresh PR with just the panel eDP 3024x1986 line is welcome once #134 and #201 have merged. Please include the EDID primaries and the hyprctl monitors -j colour fields in the body.

@maralcbr maralcbr closed this Nov 27, 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.

3 participants