Skip to content

v0.1.13

Choose a tag to compare

@github-actions github-actions released this 02 Apr 09:21
· 129 commits to main since this release

Display improvements

  • Display size shown in label (e.g. Display 14" XDR) via CGDisplayScreenSize
  • SDR/XDR mode detection via NSScreen.maximumPotentialExtendedDynamicRangeColorComponentValue, polled every 5s via subprocess to get fresh AppKit state
  • Linear brightness from DisplayServicesGetLinearBrightness for proportional-to-light-output values
  • Display label: Display 14" XDR (100% brightness) or Display 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 dynamically
  • DisplayServicesGetLinearBrightness * max_nits overestimates (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 python3 subprocess because NSScreen properties are cached per-process and don't update without an AppKit main run loop; each subprocess gets fresh state
  • CoreDisplay.framework has been removed in macOS 26 Tahoe; CoreDisplay_Display_GetUserBrightness is no longer available
  • CGDisplayRegisterReconfigurationCallback does not fire for Reference Mode changes (SDR/XDR) on macOS 26

Full Changelog: v0.1.12...v0.1.13