Repository navigation
Color table adjustments can cause issues on the M5 Pro/Max #5730
nicholaspsmith
started this conversation in
General
Replies: 2 comments
|
I don't think it's a display list related thing - the app probing disconnected displays is normal and part of connection management related features. However the gamma table adjustment APIs are (afaik still) broken on the M5 Pro and M5 Max, so it's best to generally disable color table adjustments. https://developer.apple.com/forums/thread/819331?answerId=894330022 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Environment
Summary
After a long lid-closed sleep, reopening the lid leaves all colours on the
built-in panel wrong. Quitting BetterDisplay fixes it instantly.
The instant fix on quit is the diagnostic clue: macOS reverts a gamma table when
the process that wrote it exits, so the corrupted state is a hardware gamma LUT
owned by BetterDisplay — not an ICC profile assignment, which would survive the
quit.
Evidence
Software brightness is applied as a literal gamma scale. With
value@softwareBrightness-ColorController@Display:6 = 0.15, reading thebuilt-in panel's transfer table with
CGGetDisplayTransferByTable:Identical on 4.3.6 and on 5.0.3, so the compositor-filter work in v5 does not
cover this control. In 5.0.3 the persisted key is still
value@softwareBrightness-ColorController@Display:6— aColorController,i.e. colour-table based.
After every
kCGSDisplayDidWakein two weeks of unified logs,BetterDisplay probes display IDs that no longer exist:
Counting emitters of this message across a 40-minute window: BetterDisplay 4,
every other process 0. This looks like a display list cached before sleep
being walked after the displays were re-enumerated. Unchanged in 5.0.3 —
verified with a fresh sleep/wake cycle on that build.
Consistent with that, stored per-display state shows profiles bound to the
wrong display:
65S455-….iccColor LCD-….icc(the built-in panel)Beyond TV-….iccGeneric RGB Profile.iccWhy a long sleep is needed
A short sleep preserves display IDs, so the stale mapping is still accidentally
correct. A long lid-closed sleep re-enumerates the displays, and the cached
mapping then points at the wrong display.
Not the same as #5234
#5234 is the Apple-side fault in how the built-in XDR panel applies colour table
adjustments in EDR mode, correctly closed as a macOS bug. Its mechanism requires
auto-brightness to have been enabled — and on this machine it never has been:
True Tone, Night Shift and BetterDisplay's own auto-brightness are all off too.
So this is a distinct fault, and it is about the targeting of the colour-state
re-application after wake — which is on BetterDisplay's side, and would equally
mis-target a compositor filter or a colour profile.
What I have not captured
I have not managed to read the gamma table during a live occurrence — the
fault was not active while I was instrumenting, so the exact corrupted shape is
inferred rather than measured. Everything above is measured. I have a small tool
logging the full 1024-entry table on the next occurrence and will follow up with
it if it recurs.
Possible fix
Re-resolve display identity (by UUID or EDID rather than a cached
CGDirectDisplayIDlist) afterkCGSDisplayDidWakeand before re-applyingstored per-display state. The
Invalid displayerrors suggest the cached listis used directly. This would matter equally for compositor filters and colour
profile assignment, not just colour tables.
Workaround
Setting the built-in display's software brightness to 1.0 removes the gamma
table entirely, so there is nothing left to re-apply incorrectly.
Happy to run any diagnostic you want on this machine — thanks for BetterDisplay,
and for how thoroughly you document the known-issue cases like #5234.
All reactions