Repository navigation
v0.1.13
Display improvements
- Display size shown in label (e.g.
Display 14" XDR) viaCGDisplayScreenSize - SDR/XDR mode detection via
NSScreen.maximumPotentialExtendedDynamicRangeColorComponentValue, polled every 5s via subprocess to get fresh AppKit state - Linear brightness from
DisplayServicesGetLinearBrightnessfor proportional-to-light-output values - Display label:
Display 14" XDR (100% brightness)orDisplay 14" SDR (75% brightness)
Why nits were removed from the display label
After extensive testing, no macOS API provides accurate real-time nits:
BrightnessMilliNits(IORegistry) does not update dynamicallyDisplayServicesGetLinearBrightness * max_nitsoverestimates (assumes HDR peak as reference, ignoring thermal throttling)PDBR(SMC backlight power) is the only reactive source, but PDBR-to-nits is non-linear and temperature-dependent (measured: 22 nits at 2.8W, 400 nits at 5W, 1600 nits at 16W)- Third-party tools like BetterDisplay bypass all public and private brightness APIs when boosting beyond 100%
Technical notes
- EDR headroom read via
python3subprocess becauseNSScreenproperties are cached per-process and don't update without an AppKit main run loop; each subprocess gets fresh state CoreDisplay.frameworkhas been removed in macOS 26 Tahoe;CoreDisplay_Display_GetUserBrightnessis no longer availableCGDisplayRegisterReconfigurationCallbackdoes not fire for Reference Mode changes (SDR/XDR) on macOS 26
Full Changelog: v0.1.12...v0.1.13