You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stats report wrong current display mode: HDR10+ -> SDR (when display is HDR locked) #459
Found it, and it is not a display bug: the engine cannot tell that an Apple TV parked in HDR is in HDR.
Root cause. The answer comes from UIScreen.currentEDRHeadroom, which on tvOS is not a readout of the panel's mode. It is a transition artifact: raised around a dynamic-range switch and decayed back to 1.00 within about twenty seconds while the panel keeps presenting HDR. Every reading the engine takes today happens around the display-criteria write, which is exactly the moment a panel already parked in HDR has nothing to report. No transition, so the live reading is 1.00, and the "this display has been proven to engage HDR" latch that exists to cover a decayed reading is itself only ever armed by such a reading. Both terms are dead for that configuration, so it reads SDR forever. Match Range off with the output fixed to HDR is precisely that configuration, which is why this has been there for months and why it does not reproduce on a box set to 4K SDR with matching on.
It is worse than the label. That same boolean is the master-vs-media routing gate on tvOS, so HDR/DV sessions on that box are also being served the bare media playlist with no HDR signaling and no native subtitle renditions. The picture still looks right because the panel is in HDR either way, which is what made this look cosmetic.
Fix (AetherEngine#463, branch fix/ae459-panel-hdr-proof-during-playback): the panel gets asked again once frames are actually running. A measurement from 2026-08-09 on an Apple TV 4K 3rd gen shows why that works: with the output fixed to 4K HDR the headroom reads 1.20 at t+2.5s and 1.00 at t+20s, and with the output fixed to 4K SDR it reads a flat 1.00 for the same title. The rise comes with HDR content reaching the screen rather than with an HDMI mode switch, and it separates exactly the two setups eligibleForHDRPlayback cannot: a panel parked in HDR from a rate-only panel parked in SDR. One reading latches the proof, the label is republished, and every later playback in that app session routes correctly as well. The first HDR title after a cold launch will still start media-direct, since no proof can exist before any playback; its label corrects itself a few seconds in.
The probe logs its own outcome either way, including a window that closes with nothing seen. So if that panel turns out not to raise the headroom at all, the retest says so in one line instead of leaving it to guesswork.
On the SDR -> HDR indicator: that one is not answerable with the current tvOS API, and rather than ship a guess, here is why. SDR content composites no HDR, so the headroom cannot rise for it; isDisplayCriteriaMatchingEnabled reports Match Dynamic Range and Match Frame Rate through one combined bit; and AVDisplayManager exposes no mode read-back at all (re-checked against the tvOS 26.5 SDK headers). "Box fixed to HDR" and "box on SDR, would switch up for HDR content" are indistinguishable from inside the app while SDR content is playing. If Apple ever exposes the active mode, it becomes trivial.
A retest request will follow once this is in a build.
Shipped in AetherEngine 6.62.0, with the host-side half in Sodalite (a second clamp there asked the same wrong question and would have overridden the fix). Both consumers are on the new pin, so this will be in the next Sodalite build.
Retest when that build lands, and the useful part is that it now answers itself either way. Settings > Diagnostic Log carries one new line per HDR playback:
[DisplayCriteria] playback probe: panel reports HDR after 2340ms (headroom 1.20, 10 samples) means the panel was found, and Stats for Nerds should flip from "HDR10+ -> SDR" to plain "HDR10+" a few seconds into playback. The playback after that should already start correct, since the proof is latched for the rest of the app session.
[DisplayCriteria] playback probe: no HDR reading in 12000ms (max headroom 1.00, 48 samples) means that panel never raises the headroom at all, in which case the premise behind the fix does not hold on that hardware and the max-headroom figure is the thing to send back. That would be a genuinely new measurement rather than a failed retest, so it is worth reporting either way.
One expected residue: the very first HDR title after a cold app launch still starts on the media playlist, because no proof can exist before any playback has happened. Its label corrects itself a few seconds in and every later playback is right from the start. Closing that needs the proof persisted across launches, which is a follow-up rather than part of this round.
Thanks for filing it as minor and describing the setup precisely. "Match range off, match rate on, output fixed to HDR" is what made it findable: that combination is exactly the one the engine had no way to observe.
That suggestion is worth more than a workaround, and it holds up on tvOS. I checked the two APIs against the tvOS 26.5 SDK rather than assuming, and the result is a mixed one:
API
tvOS 26.5
Color.exposureAdjust(_:), Color.headroom(_:)
available, tvOS 26.0 (they live in SwiftUICore, not SwiftUI, which is why a first grep for them comes back empty)
CALayer.preferredDynamicRange / CADynamicRange
available, tvOS 26.0
CALayer.wantsExtendedDynamicRangeContent
API_UNAVAILABLE(tvos), and the same on CAMetalLayer
UIImageView.preferredImageDynamicRange
available, tvOS 17.0
So the classic EDR opt-in never existed on tvOS, but its tvOS 26 replacement does, which is the floor this app already targets. UIScreen.h even documents the mechanism directly: "The screen's current headroom can change depending on the display configuration and whether it is currently displaying any EDR content."
What argues the other way is the trace this issue rests on. The headroom decays 1.20 -> 1.00 within 13 to 20 seconds while HDR video keeps playing, so on tvOS the value ramps rather than reporting a state. Whether a static element gets a rise at all, and whether it is over before a probe can read it, is not derivable from the headers. So it is being measured rather than guessed: a branch draws an EDR layer (extended linear sRGB two stops above SDR white, preferredDynamicRange = .high), escalates from a single point to a visible square if the small one is ignored, and logs the headroom before, during and after, plus whether AVDisplayManager reported a mode switch while the element was up. A run whose baseline was already raised reports itself as inconclusive rather than as a success, since that is the exact false positive this issue is made of.
If it works, two things follow that are worth more than the workaround framing suggests. The panel becomes askable with nothing playing, which closes the cold-launch residue I described above. And it answers the SDR -> HDR indicator I said was impossible: that request failed only because SDR content composites no HDR, and an element the app draws itself does not care what is playing. The one outcome that would close the approach is a mode switch caused by drawing EDR during SDR playback, which is why the probe watches for that specifically.
The 6.62.0 retest is still the useful measurement in the meantime, and the two are independent: it says whether that panel raises the headroom for HDR content at all, which is the prerequisite for either approach.
Thanks for the gain-map gallery link as well, that is a good instrument to have.
Measured it, and the result is worth more than the probe I built to get it. Seven runs on an Apple TV 4K (3rd gen) with an HDR10+ panel, four configurations, one build:
Output format
Match Content
probe with nothing playing
during SDR playback
panelIsHDR in routing
fixed 4K HDR
both off
1.20
1.20
true
fixed 4K SDR
both off
1.00
1.00
false
fixed 4K HDR
range off, rate on
1.20
1.20
true
The second and third rows are the ones that matter. With nothing playing, currentEDRHeadroom is not a transition artifact at all: it reports the panel's mode, and it is stable, two readings 55 seconds apart both at 1.20. And the third row is the configuration described in this issue, rate matching on, where the engine does write criteria (SET: format=sdr rate=25.000 extensions=none). The headroom stayed at 1.20 straight through that write, so a rate-only write does not collapse the reading either. That was my main suspicion going in and it is dead.
A fourth run closed the loop: a DV P8 title played for 58 seconds, stopped, probe pressed 17 seconds later. Headroom back to 1.20. So the decay documented earlier is bound to HDR video being on the screen and it goes away with it.
The honest summary: this issue does not reproduce on my hardware in any configuration, including the one described here. Every reading was correct. What the runs did produce is a sharper model than the one the fix in 6.62.0 was built on. No video on screen, the reading is honest. HDR video on screen, it decays to 1.00 within 13 to 20 seconds while the panel keeps presenting HDR. Video gone, honest again within seconds.
On drawing an EDR element. It is buildable on tvOS 26: Color.exposureAdjust and Color.headroom exist (in SwiftUICore), and CALayer.preferredDynamicRange does too, while the old wantsExtendedDynamicRangeContent is unavailable on tvOS entirely. I built it, escalating from a single point to a 120pt square, and ran it in every configuration. Two things came out. It never triggered an HDMI renegotiation, which was the one outcome that would have ruled it out for anything running during playback, so the idea is safe. But it could not be tested: with the panel in HDR the headroom is already up, so nothing is attributable to the element, and with the panel in SDR no EDR can be composited at all. The one window where it could have been tested, panel still in HDR with the headroom decayed, had already closed 17 seconds after playback stopped. So the suggestion is neither proven nor disproven, and on this hardware it is not needed, because the plain reading already answers with nothing playing.
Which leaves one measurement that decides everything, and it is on the other end. The probe line from 6.62.0 in Settings > Diagnostic Log during an HDR playback:
panel reports HDR after Xms (headroom 1.20, N samples) means that panel behaves like mine and 6.62.0 already fixes this.
no HDR reading in 12000ms (max headroom 1.00, 48 samples) means that panel never raises the headroom at all, which my hardware cannot produce. Then neither an earlier reading nor a drawn element can help, and the fix has to be a different one entirely: something that does not ask the panel.
Everything I could build next depends on which of those two it is, so I would rather wait for that line than guess. Whenever the next build reaches you.
Close, with one correction on the first point and a reframe on the second.
Master routing. Two of the three hold. Through the EDR dips: yes, that is exactly what the proof latch is for. Once the panel has answered once, the decay stops mattering for the rest of the app session. Subsequent playbacks: yes, provided the probe finds the panel at all, which is what that log line reports. First playback: no, and for two separate reasons. No proof can exist before any playback has happened, so the first HDR load has nothing to go on. And the probe deliberately does not re-route a session that is already running, since that would cost a teardown mid-playback. So the first HDR title after a cold app launch plays media-direct from start to finish and only its label corrects a few seconds in. Every load after that in the same app session is correct from the first frame.
The measurements from the last round do change what closing that residue costs, though. The reading is honest with nothing playing (1.20, stable, two samples 55 seconds apart), so the first-title case does not need the proof persisted across launches, which is what I assumed when I described it as a follow-up. It needs the question asked before the first load instead of only during it. That is a far smaller change, and it is worth building once we know whether that panel answers at all.
SDR → HDR. Partly, and it lands somewhere other than that row. The dynamic range row reads source → presented, so "HDR10+ → SDR" says the source was HDR10+ and the session was presented as SDR. An SDR source is presented as SDR whatever the panel is doing, so an arrow there would claim a conversion that does not happen.
What did become answerable is a different fact: the panel's current mode, as its own readout. That was blocked because SDR content composites no HDR and there was no other way to raise the headroom. The runs from the last round removed that obstacle without needing a drawn element: on a panel parked in HDR the reading was 1.20 with nothing playing, and it stayed 1.20 right through SDR playback. So "the display is presenting HDR" can be reported honestly while an SDR title plays.
What stays impossible is the prediction. A box sitting in SDR with Match Dynamic Range on and a box that will simply stay SDR are still indistinguishable from inside the app. The honest version reports the mode the panel is in now and does not promise a switch.
Both of those rest on the same reading as the routing gate, so they come down to the same single line from the log. A panel that never raises the headroom would get a display readout saying SDR for exactly the reason its routing is wrong today.
The engine pin is already four releases past the one carrying the probe, so whenever a build reaches you the line will be in Settings > Diagnostic Log.
Quick test: TV locked to HDR with match range disabled, match rate enabled
seems EDR starts at 1.00 and doesn't rise on this TV
changing TV to SDR with match dynamic range on -> TV switches to HDR but still shows HDR -> SDR
Interesting finding though:
HDR10+ & DV metadata both WORK even with plain media playlist. Tested on Samsung TV (HDR10+ logo shows on HDMI info) and iPhone (native DV panel, and strobing works)
So functionally, dynamic metadata is working even with media playlist routing (as long as panel is already in HDR/DV mode). Also dynamic range change is working as expected. So I'll call this mostly cosmetic for now.
I'll have a think about this again once I'm more awake :)
SDR -> DV / HDR10 & HDR10 -> DV are not possible due to tvOS API limitations.
There is no API to tell current panel mode (HDR or DV) so it’s all best effort.
HDR/DV -> SDR (when master is rejected)
DV -> HDR (when tvOS doesn’t report DV but accepts master).
Otherwise, best it can do is just state source dynamic range. Target will only be available via TV HDMI info or assumed based on settings (eg TV locked to HDR means SDR -> HDR).
In other words, this is unfortunately the best we can get with the current APIs provided by Apple.
Thank you both, and thank you for running a full matrix rather than one title. Two boxes, two panel vendors, tvOS 26.6 and 27.0 GA, and the grid in @DrHurt's comment is exactly the behaviour 6.82.0 was built for: master accepted where the panel presents HDR, media playlist plus the -> SDR arrow where it does not, and the switch case working when Match Dynamic Range is on.
@classicjazz, your list splits into three different things, and only one of them is a bug.
What the row claims, and what it deliberately does not
It names the SOURCE format, and adds an arrow when the chain demonstrably delivers less than the source carries. Two inputs decide the right half: the capability clamp (AVPlayer.availableHDRModes for Dolby Vision, eligibleForHDRPlayback as the floor for HDR10 and HLG), and whether the panel presents HDR at all, which since 6.82.0 is read from AVFoundation accepting the master instead of from the EDR headroom.
Neither input answers "which output mode is this box in right now". Your own pair of readouts on build 29 is the proof: 4K Dolby Vision and 4K SDR, byte-identical, and the correct answers are opposite.
The one case that is genuinely mislabelled
Dolby Vision source, output parked in 4K HDR, Match Dynamic Range off. The LG reports HDR10, stats say Dolby Vision P7, and by the label's own rule that should read Dolby Vision P7 -> HDR10.
The Dolby Vision term comes from the capability table, which answers what the display CAN present and does not follow the output setting. Acceptance cannot supply the missing half either: parked in 4K HDR, the Apple TV takes the Dolby Vision master and converts it, so there is no refusal to read. On DrHurt's Samsung the table names no Dolby Vision at all, the clamp resolves HDR10, and the arrow appears, which is why the same configuration reads correctly there and not on an LG.
I opened #535 for it. The obvious narrowing, publishing the base layer whenever the HDR proof came only from acceptance, is in there as the thing not to build: it would relabel every Dolby Vision title on a box parked in 4K Dolby Vision with Match Dynamic Range off, which is the setup both of you actually run, so it trades a rare wrong arrow for a common one. One diagnostic line would confirm the mechanism, taken with the output locked to 4K HDR: [HLSVideoEngine] serving on ... dvModeAvailable=. If that reads true there, the table is answering capability and the case is what it looks like.
SDR -> HDR and SDR -> Dolby Vision
@DrHurt's API answer is right, and there is a second reason that survives even if Apple ever ships the missing readout.
The arrow is a LOSS notice. An SDR title on an output parked in Dolby Vision is still SDR content inside a Dolby Vision signal: the Apple TV wraps its whole output, menus included, in whatever mode it is parked in, so the popup on the LG is reporting the HDMI signalling rather than anything that happened to the picture. Nothing converted it and no range was created, so SDR -> Dolby Vision would announce a conversion that did not occur. The honest version of what you are asking for is a separate row for what the HDMI output is currently carrying, and that value is precisely the one nothing reports.
Where the row is right by construction is Match Dynamic Range on: the system switches the panel to the source format, so source equals presented. Both of your Match-on rows say exactly that.
Closing this
The defect this issue was filed on is fixed in 6.82.0 and confirmed on both boxes, so I am closing it here. The residual is #535, and the "no API reports the current output mode" half of it goes into the Feedback Assistant report next to the parked headroom, which is now measured on three boxes across three OS versions.
Ps. I recently found out that DV P7.6 (blurays) often come in DV + HDR10+ (2 sets of dynamic metadata in one file) so would be nice for stats to reflect that when the HDR10+ layer is being played on a Samsung.
This is also where some DV 8.1 with HDR10+ come from! Technically a specs violation but they do exist in the wild.
Media info dump from a Blu-ray disk:
HDR format: Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, no metadata compression, Blu-ray compatible / SMPTE ST 2094 App 4, Version HDR10+ Profile B, HDR10+ Profile B compatible
Thank you, both are in 7.1.0, and the second one turned out to be a real bug rather than a missing label.
P7 -> P8.1
On a display presenting Dolby Vision the engine has always served a Profile 7 as Profile 8.1 (per-packet RPU conversion, enhancement layer dropped), but it only said so in the manifest. It now publishes that as dolbyVisionConversion, and the stats row reads Dolby Vision P7 → P8.1 in Sodalite and AetherPlayer. The arrow shows for every conversion, MEL and FEL alike. For a MEL that loses practically nothing, for a FEL it drops the refinement a native Profile 7 player would fold in.
P7 -> HDR10+
The label logic for this already existed, and your setup was exactly the case it got wrong. The HDR10+ detection recorded the T.35 payload only for an HDR10 source. On a Samsung locked to HDR10, the load-time label reads SDR, the payload arrives, and half a second later the master acceptance from 6.82.0 republishes the label. That republish rebuilt it from the source format, which for your discs says Dolby Vision, so the HDR10+ evidence was gone and the row read Dolby Vision P7 → HDR10 while HDR10+ metadata was reaching the TV. The detection is now kept per session whatever the source format.
What the row should read with the next build:
Source
Samsung locked to HDR10
LG in Dolby Vision
Profile 7 with an HDR10+ layer
Dolby Vision P7 → HDR10+
Dolby Vision P7 → P8.1
Profile 8.1 with an HDR10+ layer
Dolby Vision P8 → HDR10+
Dolby Vision P8
Profile 7 without HDR10+
Dolby Vision P7 → HDR10
Dolby Vision P7 → P8.1
One thing I could not verify here: I have no Profile 7 disc with an HDR10+ layer, so the first row on the Samsung is unit-tested but has not been seen against a real file. If it still reads → HDR10 on one of those Blu-ray remuxes, the Diagnostic Log line that tells the two causes apart is [AetherEngine] republishing videoFormat sdr -> ..., about half a second into playback. -> hdr10Plus means the detection worked and something later overwrote the label; -> hdr10 means the detection never found the payload inside the dual-layer packet, which is a different problem.
Both apps are already bumped, so the next Sodalite build carries it.
Confirmed working DV 7 -> HDR10+ showing in stats. Also DV 8.1 -> HDR10 and DV 8.4 -> HLG. Don't have a DV 8.1 with HDR10+ but I'm expecting it to work just like DV 7
Thank you, that closes the one row I could not see myself. Dolby Vision P7 → HDR10+ against a real dual-metadata Blu-ray was the only case in that table that had only been unit-tested, so this is the confirmation that the detection finds the T.35 payload inside the dual-layer packet and not just in the synthetic one.
The other two readouts are right as well: on a panel without Dolby Vision, Profile 8.1 falls back to its HDR10 base layer and Profile 8.4 to its HLG base layer, and the arrow is there because the Dolby Vision metadata is what gets dropped.
On Profile 8.1 with HDR10+: the latch is per session and does not look at the Dolby Vision profile at all, so it takes the same path as your P7 discs. If one ever turns up and reads → HDR10, the republishing videoFormat line in the Diagnostic Log still tells the two causes apart.
With that, everything this thread asked for is shipped and confirmed. The remaining open piece is still #535.
I don't if this is the best issue to add these comments but wanted flag an issue where if you change the Apple TV video mode, Sodalite (and I assume Aetherengine underneath) stays in a lower quality video mode. For example, even after going back to DolbyVision mode, I was still seeing --> SDR in Stats for Nerds. This wasn't a panel issue and it could be fixed by force closing and restarting Sodalite.
I don't know how many users will change their video modes how frequently but there's a suggestion at the bottom about rechecking on foreground transition for the app (Sodalite), which would likely keep it fresh.
Full details below
AetherEngine #459 — the master-refusal latch goes stale, and it costs more than the master route
Follow-up measurements
Sodalite 1.0.0 (37), AetherEngine 7.10.0, tvOS 27.0 (24J361), two Apple TV 4K
(AppleTV14,1), two LG OLEDs, Jellyfin 12.1. Same HDR10 title throughout
(item 314a7b83…, HEVC 3840x2160 PQ, PGS subtitles).
1. The headroom is dead on both panels, including the one that works
Every session today, on both boxes, at load and at teardown:
potentialEDR is flat too, not just currentEDR — the system reports no EDR
capacity at all for these screens while the capability table on the line above
says hdr=true hdr10=true hlg=true dv=true.
The explicit probe verdict, after 12 seconds of PQ content on screen:
19:05:47.405 [DisplayCriteria] playback probe: no HDR reading in 12158ms
(max headroom 1.00, 48 samples); this panel does not raise the
EDR headroom for HDR content, so the session keeps its SDR label
So on this hardware the headroom leg never fires. Everything that works is
master acceptance.
2. Same file, same box, 100 seconds apart — one served a master, one didn't
Box B (working):
19:03:52.136 panel unproven but HDR-eligible: serving the master and letting
AVPlayer answer (refusal costs one in-place media fallback)
19:03:52.163 serving on …/master.m3u8 (panelIsHDR=true … useMaster=true)
19:03:53.565 republishing videoFormat sdr -> hdr10: AVFoundation accepted the
HDR master (#459)
Box A (stuck), identical readout at load, no attempt line:
19:05:33.842 serving on …/media.m3u8 (panelIsHDR=false … useMaster=false)
19:05:47.405 playback probe: no HDR reading in 12158ms …
Of the four terms in sessionRoutesAsHDRPanel, three are identical across the
two runs — panelPresentsHDR false on both, attemptsHDRMasterOnUnprovenPanel
defaults true and Sodalite never sets it, supportsHDR true on both per DisplayCapabilities observed. That leaves panelRefusedHDRMaster.
3. Force-quitting the app fixes it
Same file, same TV, same Apple TV, fresh process (gen 1, loadGen=1):
19:11:36.580 serving on …/master.m3u8 (panelIsHDR=true … useMaster=true)
19:11:37.911 republishing videoFormat sdr -> hdr10: AVFoundation accepted the
HDR master (#459)
So Box A's panel is not different. It was carrying a refusal latched earlier in
that app session — I had spent the afternoon switching the Apple TV's output
format and Match Dynamic Range on and off, and at some point it genuinely was in
a mode that refused the master. The latch is correct at that moment and stale
from the moment I changed the setting back.
The code says as much: "Not cleared when the user changes the output format
mid-process, because nothing reports that either. A stale refusal costs the
master route until the app restarts."
4. What a stale latch actually costs
More than the master route, and all of it user-visible:
The label. Stats for Nerds reads "Dolby Vision → SDR" / "HDR10 → SDR" for
every title, which is the original complaint on this issue.
Dolby Vision signaling. On a Profile 7 source the engine built the
supplemental and then could not advertise it — a media playlist has nowhere to
put it:
Subtitles in PiP. No master means no TYPE=SUBTITLES rendition. Cues kept
publishing to the on-frame overlay the whole time PiP was up (seven outcome=published in thirty seconds, subActive=true), and nothing was
visible in the window.
Controlled against SDR on the same display, same PGS/OCR subtitle path, same
unproven panel — SDR is routing-safe without the panel proof, so it gets a
master:
18:51:14.951 serving on …/master.m3u8 (panelIsHDR=false … useMaster=true videoRange=sdr)
18:51:14.983 #EXT-X-MEDIA:TYPE=SUBTITLES,…,URI="subs_0.m3u8"
18:51:05.513 GET …/subs_0_1294.vtt ← AVKit rendering the rendition in PiP
18:51:09.515 GET …/subs_0_1295.vtt
Subtitles visible in PiP on SDR, invisible on HDR/DV, everything else held.
Note this is a different surface from Sodalite#34's matrix, which was a wired
external display on iOS and found master-served subtitles not reaching the
screen. tvOS PiP behaves the other way here. Adding a row, not disputing one.
5. The question
The latch's cost is documented as "the master route until the app restarts," and
for a genuinely SDR panel paying 223 ms once, the trade is obviously right. What
I hit is the other case: the output format changed after the refusal, the latch
had no way to know, and an Apple TV can stay in the same app process for days.
The user has no indication anything is wrong and no way to clear it except
force-quitting.
Is there a moment worth clearing it on? A user who changes the output format has
to leave the app to do it, so a foreground transition is the one event that is
guaranteed to follow such a change — and the engine already sees mode-switch
notifications during playback (switch settled via modeSwitchEnd is in every
capture). Entirely your call whether that is a signal worth trusting; I'm
reporting the cost, not proposing the fix.
Split out as #588, because the stale latch is this issue's own mechanism rather than the mis-reported label, and its fix wants a release of its own.
The measurements answer it, and the conclusion is the one in the report: three of the four terms in sessionRoutesAsHDRPanel are identical across the working and the stuck run, and a fresh process on the same box and the same television serves the master. Nothing about the panel changed, the process was carrying a refusal from a configuration that no longer existed.
The costs listed are the part that changes the trade. The comment on the latch weighs it against "the master route until the app restarts", and that was written as though the route were the whole prize. Losing the Profile 7 supplemental and losing the subtitle rendition in PiP were not in that accounting, and on a panel whose headroom leg is dead the master route is not one of two ways to the answer, it is the only one.
Foreground return is the right signal, for the reason given: reaching the output format means leaving the app. Details and the cost of a wrong clear are in #588.
Merged in ea8b7edf (PR #589), tracked on #588. Not released yet, so there is nothing to test until the next build lands; this is so you know what shape it took and what to look for when it does.
Your diagnosis carried the whole thing. Isolating three of the four terms in sessionRoutesAsHDRPanel as identical across the working and the stuck run leaves exactly one candidate, and then running the same file on the same television through a fresh process turns that candidate into the answer. That is a controlled experiment, not a report, and it meant the fix could be written straight away instead of being chased.
Foreground return is what it clears on, for the reason you gave. One implementation detail is worth naming because it is the part that decides whether the clear is cheap: didBecomeActive also fires after a resign that never backgrounded the app, a system alert or the volume HUD, and nobody can have walked to the output format in that gap. So the observer reads the background flag before clearing it and acts only on a real return. A panel that genuinely still refuses re-earns the latch at the next HDR load for one in-place media fallback, 223 ms with no visible black frame, which is the behaviour the latch was built for and it keeps that job inside a viewing session.
I looked at the more precise alternative, keying the latch to a fingerprint of the display configuration, and decided against it rather than just not getting to it. The latch can only be set while eligibleForHDRPlayback is true, so the capability table at refusal time may be identical to the one afterwards. A fingerprint built on that assumption would hold the stale latch silently, which is worse than the current state because it looks like a fix. Your signal needs no such assumption.
The retest, when the build is there, is the sequence you already walked into by accident: get a refusal on the box (the line to watch for is panel refused an HDR master), set the output format back to Dolby Vision, leave Sodalite, come back, and start an HDR title. What should be in the log is useMaster=true followed by republishing videoFormat sdr -> hdr10, with no force-quit anywhere. Worth a second pass on a Profile 7 title and on PiP with PGS subtitles, since those were the two costs that turned this from a label complaint into something worth releasing.
Yours is the only hardware this has ever been seen on, so that retest is the verification, and there is no substitute for it here.
The PiP row against Sodalite#34 is recorded as an addition to that matrix, opposite outcome on a different surface. Thank you for drawing the line yourself instead of letting it read as a contradiction.
Activity
superuser404notfound commentedon Sep 1, 2026
Found it, and it is not a display bug: the engine cannot tell that an Apple TV parked in HDR is in HDR.
Root cause. The answer comes from
UIScreen.currentEDRHeadroom, which on tvOS is not a readout of the panel's mode. It is a transition artifact: raised around a dynamic-range switch and decayed back to 1.00 within about twenty seconds while the panel keeps presenting HDR. Every reading the engine takes today happens around the display-criteria write, which is exactly the moment a panel already parked in HDR has nothing to report. No transition, so the live reading is 1.00, and the "this display has been proven to engage HDR" latch that exists to cover a decayed reading is itself only ever armed by such a reading. Both terms are dead for that configuration, so it reads SDR forever. Match Range off with the output fixed to HDR is precisely that configuration, which is why this has been there for months and why it does not reproduce on a box set to 4K SDR with matching on.It is worse than the label. That same boolean is the master-vs-media routing gate on tvOS, so HDR/DV sessions on that box are also being served the bare media playlist with no HDR signaling and no native subtitle renditions. The picture still looks right because the panel is in HDR either way, which is what made this look cosmetic.
Fix (AetherEngine#463, branch
fix/ae459-panel-hdr-proof-during-playback): the panel gets asked again once frames are actually running. A measurement from 2026-08-09 on an Apple TV 4K 3rd gen shows why that works: with the output fixed to 4K HDR the headroom reads 1.20 at t+2.5s and 1.00 at t+20s, and with the output fixed to 4K SDR it reads a flat 1.00 for the same title. The rise comes with HDR content reaching the screen rather than with an HDMI mode switch, and it separates exactly the two setupseligibleForHDRPlaybackcannot: a panel parked in HDR from a rate-only panel parked in SDR. One reading latches the proof, the label is republished, and every later playback in that app session routes correctly as well. The first HDR title after a cold launch will still start media-direct, since no proof can exist before any playback; its label corrects itself a few seconds in.The probe logs its own outcome either way, including a window that closes with nothing seen. So if that panel turns out not to raise the headroom at all, the retest says so in one line instead of leaving it to guesswork.
On the SDR -> HDR indicator: that one is not answerable with the current tvOS API, and rather than ship a guess, here is why. SDR content composites no HDR, so the headroom cannot rise for it;
isDisplayCriteriaMatchingEnabledreports Match Dynamic Range and Match Frame Rate through one combined bit; andAVDisplayManagerexposes no mode read-back at all (re-checked against the tvOS 26.5 SDK headers). "Box fixed to HDR" and "box on SDR, would switch up for HDR content" are indistinguishable from inside the app while SDR content is playing. If Apple ever exposes the active mode, it becomes trivial.A retest request will follow once this is in a build.
Merge fix/ae459-panel-hdr-proof-during-playback: a panel parked in HD…
superuser404notfound commentedon Sep 2, 2026
Shipped in AetherEngine 6.62.0, with the host-side half in Sodalite (a second clamp there asked the same wrong question and would have overridden the fix). Both consumers are on the new pin, so this will be in the next Sodalite build.
Retest when that build lands, and the useful part is that it now answers itself either way. Settings > Diagnostic Log carries one new line per HDR playback:
[DisplayCriteria] playback probe: panel reports HDR after 2340ms (headroom 1.20, 10 samples)means the panel was found, and Stats for Nerds should flip from "HDR10+ -> SDR" to plain "HDR10+" a few seconds into playback. The playback after that should already start correct, since the proof is latched for the rest of the app session.[DisplayCriteria] playback probe: no HDR reading in 12000ms (max headroom 1.00, 48 samples)means that panel never raises the headroom at all, in which case the premise behind the fix does not hold on that hardware and the max-headroom figure is the thing to send back. That would be a genuinely new measurement rather than a failed retest, so it is worth reporting either way.One expected residue: the very first HDR title after a cold app launch still starts on the media playlist, because no proof can exist before any playback has happened. Its label corrects itself a few seconds in and every later playback is right from the start. Closing that needs the proof persisted across launches, which is a follow-up rather than part of this round.
Thanks for filing it as minor and describing the setup precisely. "Match range off, match rate on, output fixed to HDR" is what made it findable: that combination is exactly the one the engine had no way to observe.
DrHurt commentedon Sep 2, 2026
I’ll test the next build and let you know how it goes.
A potential workaround:
Display a static HDR image or UI element WHILE checking EDR headroom? This should force headroom to rise when a display is in HDR mode.
This should remain in the engine so it gets inherited by hosts that use the engine.
DrHurt commentedon Sep 2, 2026
Sample HDR photos just for testing:
https://gregbenzphotography.com/hdr-gain-map-gallery/
Edit:
This link might be useful to force EDR headroom rise by using a static HDR UI element
https://developer.apple.com/documentation/swiftui/color/exposureadjust(_:)
So draw an HDR element, read if EDR headroom went up (HDR mode engaged) or stays 1.0 (HDR not available or not currently engaged)
superuser404notfound commentedon Sep 2, 2026
That suggestion is worth more than a workaround, and it holds up on tvOS. I checked the two APIs against the tvOS 26.5 SDK rather than assuming, and the result is a mixed one:
Color.exposureAdjust(_:),Color.headroom(_:)SwiftUICore, notSwiftUI, which is why a first grep for them comes back empty)CALayer.preferredDynamicRange/CADynamicRangeCALayer.wantsExtendedDynamicRangeContentAPI_UNAVAILABLE(tvos), and the same onCAMetalLayerUIImageView.preferredImageDynamicRangeSo the classic EDR opt-in never existed on tvOS, but its tvOS 26 replacement does, which is the floor this app already targets.
UIScreen.heven documents the mechanism directly: "The screen's current headroom can change depending on the display configuration and whether it is currently displaying any EDR content."What argues the other way is the trace this issue rests on. The headroom decays 1.20 -> 1.00 within 13 to 20 seconds while HDR video keeps playing, so on tvOS the value ramps rather than reporting a state. Whether a static element gets a rise at all, and whether it is over before a probe can read it, is not derivable from the headers. So it is being measured rather than guessed: a branch draws an EDR layer (extended linear sRGB two stops above SDR white,
preferredDynamicRange = .high), escalates from a single point to a visible square if the small one is ignored, and logs the headroom before, during and after, plus whetherAVDisplayManagerreported a mode switch while the element was up. A run whose baseline was already raised reports itself as inconclusive rather than as a success, since that is the exact false positive this issue is made of.If it works, two things follow that are worth more than the workaround framing suggests. The panel becomes askable with nothing playing, which closes the cold-launch residue I described above. And it answers the SDR -> HDR indicator I said was impossible: that request failed only because SDR content composites no HDR, and an element the app draws itself does not care what is playing. The one outcome that would close the approach is a mode switch caused by drawing EDR during SDR playback, which is why the probe watches for that specifically.
The 6.62.0 retest is still the useful measurement in the meantime, and the two are independent: it says whether that panel raises the headroom for HDR content at all, which is the prerequisite for either approach.
Thanks for the gain-map gallery link as well, that is a good instrument to have.
fix(display): the probe's sampler traps on its own exclusivity (#459)
superuser404notfound commentedon Sep 2, 2026
Measured it, and the result is worth more than the probe I built to get it. Seven runs on an Apple TV 4K (3rd gen) with an HDR10+ panel, four configurations, one build:
panelIsHDRin routingThe second and third rows are the ones that matter. With nothing playing,
currentEDRHeadroomis not a transition artifact at all: it reports the panel's mode, and it is stable, two readings 55 seconds apart both at 1.20. And the third row is the configuration described in this issue, rate matching on, where the engine does write criteria (SET: format=sdr rate=25.000 extensions=none). The headroom stayed at 1.20 straight through that write, so a rate-only write does not collapse the reading either. That was my main suspicion going in and it is dead.A fourth run closed the loop: a DV P8 title played for 58 seconds, stopped, probe pressed 17 seconds later. Headroom back to 1.20. So the decay documented earlier is bound to HDR video being on the screen and it goes away with it.
The honest summary: this issue does not reproduce on my hardware in any configuration, including the one described here. Every reading was correct. What the runs did produce is a sharper model than the one the fix in 6.62.0 was built on. No video on screen, the reading is honest. HDR video on screen, it decays to 1.00 within 13 to 20 seconds while the panel keeps presenting HDR. Video gone, honest again within seconds.
On drawing an EDR element. It is buildable on tvOS 26:
Color.exposureAdjustandColor.headroomexist (inSwiftUICore), andCALayer.preferredDynamicRangedoes too, while the oldwantsExtendedDynamicRangeContentis unavailable on tvOS entirely. I built it, escalating from a single point to a 120pt square, and ran it in every configuration. Two things came out. It never triggered an HDMI renegotiation, which was the one outcome that would have ruled it out for anything running during playback, so the idea is safe. But it could not be tested: with the panel in HDR the headroom is already up, so nothing is attributable to the element, and with the panel in SDR no EDR can be composited at all. The one window where it could have been tested, panel still in HDR with the headroom decayed, had already closed 17 seconds after playback stopped. So the suggestion is neither proven nor disproven, and on this hardware it is not needed, because the plain reading already answers with nothing playing.Which leaves one measurement that decides everything, and it is on the other end. The probe line from 6.62.0 in Settings > Diagnostic Log during an HDR playback:
panel reports HDR after Xms (headroom 1.20, N samples)means that panel behaves like mine and 6.62.0 already fixes this.no HDR reading in 12000ms (max headroom 1.00, 48 samples)means that panel never raises the headroom at all, which my hardware cannot produce. Then neither an earlier reading nor a drawn element can help, and the fix has to be a different one entirely: something that does not ask the panel.Everything I could build next depends on which of those two it is, so I would rather wait for that line than guess. Whenever the next build reaches you.
Merge docs/ae459-headroom-model-correction: the headroom is not a tra…
fix(display): a panel parked in HDR is asked again once frames are ru…
DrHurt commentedon Sep 2, 2026
Excellent set of results, lots of learning. Looking forward to the next build of Sodalite.
If I understood everything correctly:
docs(display): the headroom is not a transition artifact, it is video…
superuser404notfound commentedon Sep 3, 2026
Close, with one correction on the first point and a reframe on the second.
Master routing. Two of the three hold. Through the EDR dips: yes, that is exactly what the proof latch is for. Once the panel has answered once, the decay stops mattering for the rest of the app session. Subsequent playbacks: yes, provided the probe finds the panel at all, which is what that log line reports. First playback: no, and for two separate reasons. No proof can exist before any playback has happened, so the first HDR load has nothing to go on. And the probe deliberately does not re-route a session that is already running, since that would cost a teardown mid-playback. So the first HDR title after a cold app launch plays media-direct from start to finish and only its label corrects a few seconds in. Every load after that in the same app session is correct from the first frame.
The measurements from the last round do change what closing that residue costs, though. The reading is honest with nothing playing (1.20, stable, two samples 55 seconds apart), so the first-title case does not need the proof persisted across launches, which is what I assumed when I described it as a follow-up. It needs the question asked before the first load instead of only during it. That is a far smaller change, and it is worth building once we know whether that panel answers at all.
SDR → HDR. Partly, and it lands somewhere other than that row. The dynamic range row reads source → presented, so "HDR10+ → SDR" says the source was HDR10+ and the session was presented as SDR. An SDR source is presented as SDR whatever the panel is doing, so an arrow there would claim a conversion that does not happen.
What did become answerable is a different fact: the panel's current mode, as its own readout. That was blocked because SDR content composites no HDR and there was no other way to raise the headroom. The runs from the last round removed that obstacle without needing a drawn element: on a panel parked in HDR the reading was 1.20 with nothing playing, and it stayed 1.20 right through SDR playback. So "the display is presenting HDR" can be reported honestly while an SDR title plays.
What stays impossible is the prediction. A box sitting in SDR with Match Dynamic Range on and a box that will simply stay SDR are still indistinguishable from inside the app. The honest version reports the mode the panel is in now and does not promise a switch.
Both of those rest on the same reading as the routing gate, so they come down to the same single line from the log. A panel that never raises the headroom would get a display readout saying SDR for exactly the reason its routing is wrong today.
The engine pin is already four releases past the one carrying the probe, so whenever a build reaches you the line will be in Settings > Diagnostic Log.
DrHurt commentedon Sep 6, 2026
Quick test: TV locked to HDR with match range disabled, match rate enabled
Interesting finding though:
HDR10+ & DV metadata both WORK even with plain media playlist. Tested on Samsung TV (HDR10+ logo shows on HDMI info) and iPhone (native DV panel, and strobing works)
So functionally, dynamic metadata is working even with media playlist routing (as long as panel is already in HDR/DV mode). Also dynamic range change is working as expected. So I'll call this mostly cosmetic for now.
I'll have a think about this again once I'm more awake :)
30 remaining items
DrHurt commentedon Sep 14, 2026
SDR -> DV / HDR10 & HDR10 -> DV are not possible due to tvOS API limitations.
There is no API to tell current panel mode (HDR or DV) so it’s all best effort.
HDR/DV -> SDR (when master is rejected)
DV -> HDR (when tvOS doesn’t report DV but accepts master).
Otherwise, best it can do is just state source dynamic range. Target will only be available via TV HDMI info or assumed based on settings (eg TV locked to HDR means SDR -> HDR).
In other words, this is unfortunately the best we can get with the current APIs provided by Apple.
superuser404notfound commentedon Sep 15, 2026
Thank you both, and thank you for running a full matrix rather than one title. Two boxes, two panel vendors, tvOS 26.6 and 27.0 GA, and the grid in @DrHurt's comment is exactly the behaviour 6.82.0 was built for: master accepted where the panel presents HDR, media playlist plus the
-> SDRarrow where it does not, and the switch case working when Match Dynamic Range is on.@classicjazz, your list splits into three different things, and only one of them is a bug.
What the row claims, and what it deliberately does not
It names the SOURCE format, and adds an arrow when the chain demonstrably delivers less than the source carries. Two inputs decide the right half: the capability clamp (
AVPlayer.availableHDRModesfor Dolby Vision,eligibleForHDRPlaybackas the floor for HDR10 and HLG), and whether the panel presents HDR at all, which since 6.82.0 is read from AVFoundation accepting the master instead of from the EDR headroom.Neither input answers "which output mode is this box in right now". Your own pair of readouts on build 29 is the proof: 4K Dolby Vision and 4K SDR, byte-identical, and the correct answers are opposite.
The one case that is genuinely mislabelled
Dolby Vision source, output parked in 4K HDR, Match Dynamic Range off. The LG reports HDR10, stats say
Dolby Vision P7, and by the label's own rule that should readDolby Vision P7 -> HDR10.The Dolby Vision term comes from the capability table, which answers what the display CAN present and does not follow the output setting. Acceptance cannot supply the missing half either: parked in 4K HDR, the Apple TV takes the Dolby Vision master and converts it, so there is no refusal to read. On DrHurt's Samsung the table names no Dolby Vision at all, the clamp resolves HDR10, and the arrow appears, which is why the same configuration reads correctly there and not on an LG.
I opened #535 for it. The obvious narrowing, publishing the base layer whenever the HDR proof came only from acceptance, is in there as the thing not to build: it would relabel every Dolby Vision title on a box parked in 4K Dolby Vision with Match Dynamic Range off, which is the setup both of you actually run, so it trades a rare wrong arrow for a common one. One diagnostic line would confirm the mechanism, taken with the output locked to 4K HDR:
[HLSVideoEngine] serving on ... dvModeAvailable=. If that reads true there, the table is answering capability and the case is what it looks like.SDR -> HDR and SDR -> Dolby Vision
@DrHurt's API answer is right, and there is a second reason that survives even if Apple ever ships the missing readout.
The arrow is a LOSS notice. An SDR title on an output parked in Dolby Vision is still SDR content inside a Dolby Vision signal: the Apple TV wraps its whole output, menus included, in whatever mode it is parked in, so the popup on the LG is reporting the HDMI signalling rather than anything that happened to the picture. Nothing converted it and no range was created, so
SDR -> Dolby Visionwould announce a conversion that did not occur. The honest version of what you are asking for is a separate row for what the HDMI output is currently carrying, and that value is precisely the one nothing reports.Where the row is right by construction is Match Dynamic Range on: the system switches the panel to the source format, so source equals presented. Both of your Match-on rows say exactly that.
Closing this
The defect this issue was filed on is fixed in 6.82.0 and confirmed on both boxes, so I am closing it here. The residual is #535, and the "no API reports the current output mode" half of it goes into the Feedback Assistant report next to the parked headroom, which is now measured on three boxes across three OS versions.
DrHurt commentedon Sep 16, 2026
@superuser404notfound
One last thing here:
Probably worth adding P7 -> P8 & P7 -> HDR10(+) labels.
Ps. I recently found out that DV P7.6 (blurays) often come in DV + HDR10+ (2 sets of dynamic metadata in one file) so would be nice for stats to reflect that when the HDR10+ layer is being played on a Samsung.
This is also where some DV 8.1 with HDR10+ come from! Technically a specs violation but they do exist in the wild.
Media info dump from a Blu-ray disk:
HDR format: Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, no metadata compression, Blu-ray compatible / SMPTE ST 2094 App 4, Version HDR10+ Profile B, HDR10+ Profile B compatible
Merge feat/459-dv-conversion-labels: dolbyVisionConversion publishes …
superuser404notfound commentedon Sep 16, 2026
Thank you, both are in 7.1.0, and the second one turned out to be a real bug rather than a missing label.
P7 -> P8.1
On a display presenting Dolby Vision the engine has always served a Profile 7 as Profile 8.1 (per-packet RPU conversion, enhancement layer dropped), but it only said so in the manifest. It now publishes that as
dolbyVisionConversion, and the stats row readsDolby Vision P7 → P8.1in Sodalite and AetherPlayer. The arrow shows for every conversion, MEL and FEL alike. For a MEL that loses practically nothing, for a FEL it drops the refinement a native Profile 7 player would fold in.P7 -> HDR10+
The label logic for this already existed, and your setup was exactly the case it got wrong. The HDR10+ detection recorded the T.35 payload only for an HDR10 source. On a Samsung locked to HDR10, the load-time label reads SDR, the payload arrives, and half a second later the master acceptance from 6.82.0 republishes the label. That republish rebuilt it from the source format, which for your discs says Dolby Vision, so the HDR10+ evidence was gone and the row read
Dolby Vision P7 → HDR10while HDR10+ metadata was reaching the TV. The detection is now kept per session whatever the source format.What the row should read with the next build:
Dolby Vision P7 → HDR10+Dolby Vision P7 → P8.1Dolby Vision P8 → HDR10+Dolby Vision P8Dolby Vision P7 → HDR10Dolby Vision P7 → P8.1One thing I could not verify here: I have no Profile 7 disc with an HDR10+ layer, so the first row on the Samsung is unit-tested but has not been seen against a real file. If it still reads
→ HDR10on one of those Blu-ray remuxes, the Diagnostic Log line that tells the two causes apart is[AetherEngine] republishing videoFormat sdr -> ..., about half a second into playback.-> hdr10Plusmeans the detection worked and something later overwrote the label;-> hdr10means the detection never found the payload inside the dual-layer packet, which is a different problem.Both apps are already bumped, so the next Sodalite build carries it.
feat(hdr): publish the Dolby Vision profile conversion, keep a DV sou…
DrHurt commentedon Sep 16, 2026
Confirmed working DV 7 -> HDR10+ showing in stats. Also DV 8.1 -> HDR10 and DV 8.4 -> HLG. Don't have a DV 8.1 with HDR10+ but I'm expecting it to work just like DV 7
superuser404notfound commentedon Sep 17, 2026
Thank you, that closes the one row I could not see myself.
Dolby Vision P7 → HDR10+against a real dual-metadata Blu-ray was the only case in that table that had only been unit-tested, so this is the confirmation that the detection finds the T.35 payload inside the dual-layer packet and not just in the synthetic one.The other two readouts are right as well: on a panel without Dolby Vision, Profile 8.1 falls back to its HDR10 base layer and Profile 8.4 to its HLG base layer, and the arrow is there because the Dolby Vision metadata is what gets dropped.
On Profile 8.1 with HDR10+: the latch is per session and does not look at the Dolby Vision profile at all, so it takes the same path as your P7 discs. If one ever turns up and reads
→ HDR10, therepublishing videoFormatline in the Diagnostic Log still tells the two causes apart.With that, everything this thread asked for is shipped and confirmed. The remaining open piece is still #535.
classicjazz commentedon Sep 21, 2026
I don't if this is the best issue to add these comments but wanted flag an issue where if you change the Apple TV video mode, Sodalite (and I assume Aetherengine underneath) stays in a lower quality video mode. For example, even after going back to DolbyVision mode, I was still seeing --> SDR in Stats for Nerds. This wasn't a panel issue and it could be fixed by force closing and restarting Sodalite.
I don't know how many users will change their video modes how frequently but there's a suggestion at the bottom about rechecking on foreground transition for the app (Sodalite), which would likely keep it fresh.
Full details below
AetherEngine #459 — the master-refusal latch goes stale, and it costs more than the master route
Follow-up measurements
Sodalite 1.0.0 (37), AetherEngine 7.10.0, tvOS 27.0 (24J361), two Apple TV 4K
(AppleTV14,1), two LG OLEDs, Jellyfin 12.1. Same HDR10 title throughout
(item
314a7b83…, HEVC 3840x2160 PQ, PGS subtitles).1. The headroom is dead on both panels, including the one that works
Every session today, on both boxes, at load and at teardown:
potentialEDRis flat too, not justcurrentEDR— the system reports no EDRcapacity at all for these screens while the capability table on the line above
says
hdr=true hdr10=true hlg=true dv=true.The explicit probe verdict, after 12 seconds of PQ content on screen:
So on this hardware the headroom leg never fires. Everything that works is
master acceptance.
2. Same file, same box, 100 seconds apart — one served a master, one didn't
Box B (working):
Box A (stuck), identical readout at load, no attempt line:
Of the four terms in
sessionRoutesAsHDRPanel, three are identical across thetwo runs —
panelPresentsHDRfalse on both,attemptsHDRMasterOnUnprovenPaneldefaults true and Sodalite never sets it,
supportsHDRtrue on both perDisplayCapabilities observed. That leavespanelRefusedHDRMaster.3. Force-quitting the app fixes it
Same file, same TV, same Apple TV, fresh process (
gen 1,loadGen=1):So Box A's panel is not different. It was carrying a refusal latched earlier in
that app session — I had spent the afternoon switching the Apple TV's output
format and Match Dynamic Range on and off, and at some point it genuinely was in
a mode that refused the master. The latch is correct at that moment and stale
from the moment I changed the setting back.
The code says as much: "Not cleared when the user changes the output format
mid-process, because nothing reports that either. A stale refusal costs the
master route until the app restarts."
4. What a stale latch actually costs
More than the master route, and all of it user-visible:
every title, which is the original complaint on this issue.
supplemental and then could not advertise it — a media playlist has nowhere to
put it:
TYPE=SUBTITLESrendition. Cues keptpublishing to the on-frame overlay the whole time PiP was up (seven
outcome=publishedin thirty seconds,subActive=true), and nothing wasvisible in the window.
Controlled against SDR on the same display, same PGS/OCR subtitle path, same
unproven panel — SDR is routing-safe without the panel proof, so it gets a
master:
Subtitles visible in PiP on SDR, invisible on HDR/DV, everything else held.
Note this is a different surface from Sodalite#34's matrix, which was a wired
external display on iOS and found master-served subtitles not reaching the
screen. tvOS PiP behaves the other way here. Adding a row, not disputing one.
5. The question
The latch's cost is documented as "the master route until the app restarts," and
for a genuinely SDR panel paying 223 ms once, the trade is obviously right. What
I hit is the other case: the output format changed after the refusal, the latch
had no way to know, and an Apple TV can stay in the same app process for days.
The user has no indication anything is wrong and no way to clear it except
force-quitting.
Is there a moment worth clearing it on? A user who changes the output format has
to leave the app to do it, so a foreground transition is the one event that is
guaranteed to follow such a change — and the engine already sees mode-switch
notifications during playback (
switch settled via modeSwitchEndis in everycapture). Entirely your call whether that is a signal worth trusting; I'm
reporting the cost, not proposing the fix.
superuser404notfound commentedon Sep 22, 2026
Split out as #588, because the stale latch is this issue's own mechanism rather than the mis-reported label, and its fix wants a release of its own.
The measurements answer it, and the conclusion is the one in the report: three of the four terms in
sessionRoutesAsHDRPanelare identical across the working and the stuck run, and a fresh process on the same box and the same television serves the master. Nothing about the panel changed, the process was carrying a refusal from a configuration that no longer existed.The costs listed are the part that changes the trade. The comment on the latch weighs it against "the master route until the app restarts", and that was written as though the route were the whole prize. Losing the Profile 7 supplemental and losing the subtitle rendition in PiP were not in that accounting, and on a panel whose headroom leg is dead the master route is not one of two ways to the answer, it is the only one.
Foreground return is the right signal, for the reason given: reaching the output format means leaving the app. Details and the cost of a wrong clear are in #588.
superuser404notfound commentedon Sep 22, 2026
Merged in
ea8b7edf(PR #589), tracked on #588. Not released yet, so there is nothing to test until the next build lands; this is so you know what shape it took and what to look for when it does.Your diagnosis carried the whole thing. Isolating three of the four terms in
sessionRoutesAsHDRPanelas identical across the working and the stuck run leaves exactly one candidate, and then running the same file on the same television through a fresh process turns that candidate into the answer. That is a controlled experiment, not a report, and it meant the fix could be written straight away instead of being chased.Foreground return is what it clears on, for the reason you gave. One implementation detail is worth naming because it is the part that decides whether the clear is cheap:
didBecomeActivealso fires after a resign that never backgrounded the app, a system alert or the volume HUD, and nobody can have walked to the output format in that gap. So the observer reads the background flag before clearing it and acts only on a real return. A panel that genuinely still refuses re-earns the latch at the next HDR load for one in-place media fallback, 223 ms with no visible black frame, which is the behaviour the latch was built for and it keeps that job inside a viewing session.I looked at the more precise alternative, keying the latch to a fingerprint of the display configuration, and decided against it rather than just not getting to it. The latch can only be set while
eligibleForHDRPlaybackis true, so the capability table at refusal time may be identical to the one afterwards. A fingerprint built on that assumption would hold the stale latch silently, which is worse than the current state because it looks like a fix. Your signal needs no such assumption.The retest, when the build is there, is the sequence you already walked into by accident: get a refusal on the box (the line to watch for is
panel refused an HDR master), set the output format back to Dolby Vision, leave Sodalite, come back, and start an HDR title. What should be in the log isuseMaster=truefollowed byrepublishing videoFormat sdr -> hdr10, with no force-quit anywhere. Worth a second pass on a Profile 7 title and on PiP with PGS subtitles, since those were the two costs that turned this from a label complaint into something worth releasing.Yours is the only hardware this has ever been seen on, so that retest is the verification, and there is no substitute for it here.
The PiP row against Sodalite#34 is recorded as an addition to that matrix, opposite outcome on a different surface. Thank you for drawing the line yourself instead of letting it read as a contradiction.
fix(display): the master-refusal latch does not outlive the output fo…
fix(display): serve an unproven HDR master after the mode switch, not…
Sprocket fork: the accepted-master HDR proof waits for the session to…