Skip to content

Releases

DisplayBrightness 0.0.45

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 21 Nov 03:30

Fixed

  • Deferred DDC work during display updates and for two seconds afterward. Interrupted requests retain the latest brightness target and resume with a fresh hardware read.
  • Improved startup recovery by alternating supported reply modes within the bounded probe window and re-probing when a failed endpoint receives a different usable I2C interface.
  • Started the initial probe budget after bus admission so time spent waiting for another display does not exhaust the first probe.
  • Preserved pending display probes when disconnected endpoints temporarily occupy all slots, and resumed admission automatically after their callbacks finish and cleanup completes.
  • Improved brightness response during failure recovery: a different target brings a pending retry forward; repeated requests for the same target keep the bounded retry budget.
  • Expanded the boot report with bounded raw reply history, brightness request and target values, verification results, endpoint snapshots, and DDC deferral state.

Validation

  • 28 C++ tests and diagnostic-export checks passed.
  • Release and Debug builds and archive integrity checks passed.

DisplayBrightness V0.0.42

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 10 Nov 05:07

Fixed

  • Improved brightness recovery after sleep when macOS replaces the monitor’s I²C interface or rebuilds its brightness settings. The driver reads the monitor’s hardware brightness again before accepting adjustments.
  • Improved USB‑C external display detection during connection changes. The driver skips inactive I²C interfaces and waits for a single usable interface before sending brightness commands.
  • Fixed a retry issue where a new brightness value could inherit the previous request’s exhausted retry budget. Repeated requests for the same value no longer extend a failed retry cycle.

Improved

  • The boot log exporter now includes framebuffer and I²C interface details alongside GPU hang and reset events, making display issues easier to diagnose.

DisplayBrightness 0.0.4

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 08 Nov 00:17

DisplayBrightness 0.0.4

This prerelease adds external-monitor DDC/CI compatibility improvements, additional macOS profiles, and startup diagnostics. Compatible monitors use the native macOS brightness controls to adjust hardware brightness.

Added

  • DDC/CI reply-mode fallback for external-display interfaces that advertise framed replies. A failed framed attempt returns the remaining startup probes to ordinary I²C reads.
  • Matching IOGraphics profiles for Ventura, Sonoma, and Sequoia, enabled with -dbcompat.
  • Experimental endpoint recovery after eligible display-mode changes, with optional HDR recovery tracing, delay, and probe-window controls.
  • -dbbootlog startup checkpoints and the manual ExportBootLog.command TXT exporter, including framebuffer topology and DDC probe results.

Fixed

  • Failed DDC requests now stop at a bounded retry limit. New brightness input can start another attempt.
  • Displays waiting for the shared DDC bus yield their workers and retain the latest request. Pending probes can resume when a slot becomes available.
  • Startup probes that have expired skip hardware I/O. A brightness write also rechecks the verified reply mode so it can be read back.
  • DisplayBrightness preserves an existing native brightness provider and retires its own endpoint when the system takes over.

Downloads and boot arguments

  • RELEASE ZIP for general use. DEBUG ZIP includes additional startup logging and a matching .dSYM. Both include the TXT exporter. Use the SHA-256 file to verify your download.
  • Install one DisplayBrightness.kext after Lilu in OpenCore. Requires x86_64, Lilu 1.7.3+, a matching IOGraphics profile, and a working DDC/CI path.
  • Use -dbcompat for matching older macOS profiles, -dbbootlog for startup diagnostics, and -dboff to disable the plugin. -dbhdr opts into experimental mode-change recovery. Hardware control in HDR depends on the monitor accepting DDC/CI in that mode.

See the README for the complete boot argument reference, installation steps, and what to include in a report.

DisplayBrightness V0.0.3

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 07 Nov 11:55

Added

  • -dbbootlog records kext startup, Lilu initialization, IOGraphics hook status, and initial DDC probe results. The manual exporter saves them to DisplayBrightness-boot.txt.
  • -dbcompat enables matching IOGraphics profiles for macOS Ventura, Sonoma, and Sequoia.
  • -dbhdr enables experimental endpoint recovery after display-mode changes. Recovery can re-probe the current connection without replaying the previous brightness request.
  • Added read-only DDC diagnostics and boot arguments for probe timing and retries.

Fixed

  • Failed DDC requests now stop at the retry limit. A new brightness input can start a fresh attempt.
  • Displays waiting for the shared DDC bus now yield their workers and keep the latest brightness request. Pending probes can resume when a slot becomes available.
  • Expired startup probes no longer start DDC transactions.
  • Displays with an existing native brightness provider keep that provider. DisplayBrightness retires its own endpoint and checks ownership before DDC operations.

Boot arguments

Argument Effect
-dboff Disable DisplayBrightness.
-dbcompat Enable matching profiles on older macOS versions.
-dbbootlog Record startup diagnostics for manual TXT export.
-dbnoddc Keep the hooks active while disabling the plugin's DDC operations and brightness capability publication.
-dbgetonly Run read-only GetVCP probes without publishing brightness controls.
-dbtrace Log display updates, brightness requests, and probes.
-dbnoedm Skip the plugin's EDM capability marker.
-dbnonotify Suppress brightness-change notifications.
-dbhdr Enable experimental display-mode recovery.
-dbhdrtrace Log recovery activity. Requires -dbhdr.
dbhdrdelay=N Extra delay before the first recovery probe. Requires -dbhdr. Default 0 ms.
dbhdrwindow=N Recovery probe window cap. Requires -dbhdr. Default 60 s.
dbslots=N Endpoint slot limit. Default 8.
dbcoalesce=N Delay for combining rapid brightness requests. Default 50 ms.
dbsettle=N Delay between a brightness write and readback. Default 50 ms.
dbreply=N Minimum I²C reply delay. Default 40 ms.
dbretries=N Automatic retries after a failed request. Default 2.
dbbootwindow=N Initial DDC probe window. Default 60 s.
dbbootinterval=N Delay before retrying a failed initial probe. Default 1,000 ms.

DisplayBrightness v0.0.2

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 06 Nov 10:51
  • HardwareWorker.inc::queueHardwarereturns immediately if an update is initiated while the state isinitializedorbusy`. Once an endpoint has been initialized—or if its underlying physical connection, EDID, I2C interface, or the parameter range object we’ve published is replaced—subsequent native parameter updates cannot trigger a re-initialization. An existing endpoint cannot be safely carried over to a new object.
  • Within a successful native doUpdate callback, compare resource identities: endpoints that remain unchanged are preserved; those that have become invalid are marked as retired. For the latter, initiate an asynchronous cancellation, wait for the legacy worker to finish, release references, and then re-admit the resource for read-only GetVCP access. Maintain distinct range references to prevent the reuse of object identities. Upon restoration, do not replay legacy targets or issue SetVCP commands; subsequent requests from actual users will still require a valid, current-session GetVCP authorization, and any write operations must be followed by a precise read-back verification. If another native brightness provider is already active, this endpoint will cease operation. Requests involving ambiguous interfaces or invalid responses will continue to be rejected for write operations. Failures during the initialization of a given resource will not grant a fresh 60-second probing window during subsequent doUpdate cycles. All three entry-point interfaces explicitly exclude those marked as "inactive"—a behavior validated through a test suite covering 100 consecutive update cycles. The cancel_wait process does not hold locks on the framebuffer, queue, or bus; tasks awaiting admission are only awakened once the retirement process is complete, avoiding any polling-based wait for cancellation.

DisplayBrightness v0.0.1

Choose a tag to compare

@Xiaoheixu Xiaoheixu released this 05 Nov 16:21
  • Detects live DDC/CI VCP 0x10 capabilities and integrates with native brightness controls, without a monitor-model allowlist.
  • Scales brightness using the hardware-reported maximum, retaining device ownership checks, request coalescing, read-after-write verification, and state synchronization.
  • Enabled automatically; use -dboff to disable.

Validation: With the kext installed, cold-boot operation, Control Center, System Settings, keyboard brightness keys, physical monitor brightness changes, and slider synchronization have been verified on the tested setup.

Limitations: x86_64 only; requires Lilu 1.7.3 or later. Currently restricted to Darwin 25.6 and a specific IOGraphics UUID for ABI compatibility. Only the IOFramebuffer I2C backend is implemented. Other devices, GPUs, adapters, sleep/wake, hot-plug, and multi-monitor configurations remain unverified.

  • 实时DDC/CI VCP 0x10 能力检测,连接原生亮度入口,无型号白名单。
  • 按硬件最大换算亮度,保留设备归属保护、队列合并、写后读回及状态同步。
    -正常自动启用,-dboff可禁用。

验证:只需添加Kext即可实现冷启动和控制中心、系统设置、亮度键、真实硬件变化和滑块同步。

限制:仅x86_64,依赖Lilu 1.7.3+,仍然接受Darwin 25.6 / 指定IOGraphics UUID ABI门槛限制;目前只有IOFramebuffer I2C后端。其他设备、GPU、转接链路、睡眠唤醒、热插拔及多屏仍待实测。