omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Display panel brightness slider does not work with LG UltraGear evo 27GM950B-B

Open Murderlon opened this issue 3 months ago • 7 comments

System details

AMD Ryzen 7 8845HS with Radeon 780M Graphics (amdgpu), LG UltraGear evo 27GM950B-B connected via DisplayPort (DP-1), Omarchy 4.0.1-1, Hyprland 0.56.2, Linux 7.1.9-arch1-2, ddcutil 2.2.7.

Diagnostic log: https://logs.omarchy.org/6F0h7h

What's wrong?

The Display panel detects the external monitor and shows a brightness slider, but dragging the slider does not change the monitor's brightness. The panel also reports success because the underlying helper exits successfully, although the monitor's VCP brightness value remains unchanged.

This is reproducible with the packaged DDC helper:

$ ddcutil --bus 9 getvcp 10 --brief
VCP 10 C 100 100

$ omarchy-brightness-display --no-osd --monitor DP-1 70%
$ echo $?
0

$ ddcutil --bus 9 getvcp 10 --brief
VCP 10 C 100 100

The same monitor responds correctly when the DDC checks are not skipped:

$ ddcutil --bus 9 setvcp 10 70
$ ddcutil --bus 9 getvcp 10 --brief
VCP 10 C 70 100

The fast path used by Omarchy reproduces the failure:

$ ddcutil --bus 9 --skip-ddc-checks --noverify setvcp 10 70
$ ddcutil --bus 9 getvcp 10 --brief
VCP 10 C 100 100

The packaged helper /usr/share/omarchy/bin/omarchy-brightness-display-ddc currently invokes:

ddcutil --bus "$bus" --skip-ddc-checks --noverify setvcp 10 "$raw_target"

It appears that this monitor accepts the command without an error but ignores the write when --skip-ddc-checks is used. The normal ddcutil path successfully changes VCP 0x10. A possible fix would be to retry without --skip-ddc-checks when the requested value is not applied, or otherwise allow a per-monitor fallback.

The monitor is identified by ddcutil as LG ULTRAGEAR+, product code 23800, serial 605NTUWKV886, on I2C bus 9; VCP 0x10 is reported as writable with a range of 0–100.

Expected: dragging the Display panel brightness slider changes the physical monitor brightness.

Actual: the slider moves in the UI, but the physical brightness remains unchanged.

Murderlon avatar Aug 29 '26 12:08 Murderlon

Another data point, from a display that fails identically but for a different reason — worth knowing before the --skip-ddc-checks retry lands as the fix.

Hardware: ASUS ProArt PA32QCV (6K) on DP-4, I2C bus 12, MCCS 2.2. AMD RYZEN AI MAX+ 395 / Radeon 8060S (amdgpu), Omarchy 4.0.2-1, Hyprland 0.56.2, Linux 7.1.9-arch1-2, ddcutil 2.2.7.

The difference: on this panel the write is rejected on every path, including full ddcutil with all checks enabled.

# Omarchy's current fast path — silent success
$ ddcutil --bus 12 --skip-ddc-checks --noverify setvcp 10 200
$ echo $?
0
$ ddcutil --bus 12 --skip-ddc-checks getvcp 10 --brief
VCP 10 C 400 400        # unchanged

# Drop --noverify: the failure becomes visible
$ ddcutil --bus 12 --skip-ddc-checks setvcp 10 200
Verification failed for feature 10
    Try errors: DDCRC_VERIFY
$ echo $?
1

# Drop --skip-ddc-checks as well (the fix proposed above) — still fails
$ ddcutil --bus 12 setvcp 10 200
Verification failed for feature 10
    Try errors: DDCRC_VERIFY
$ echo $?
1
$ ddcutil --bus 12 getvcp 10 --brief
VCP 10 C 400 400        # still unchanged

So retrying without --skip-ddc-checks fixes the LG but not this display. There seem to be two distinct classes behind one symptom:

  1. Monitor would accept the write; the fast path breaks it (the LG in this issue) — resolved by dropping --skip-ddc-checks.
  2. Monitor rejects the write outright (this PA32QCV) — no ddcutil invocation helps.

Class 2 still needs handling, because the user-visible behavior is identical and currently indistinguishable from success. omarchy-brightness-display-ddc passes --noverify, and MCCS Set VCP carries no acknowledgement — detecting a failed write requires the read-back that --noverify disables. So the helper exits 0 and omarchy-brightness-display:87 feeds the requested value straight to the OSD:

brightness="$(omarchy-brightness-display-ddc "$monitor" "$step")" || exit 1
(( no_osd )) || omarchy-osd -i brightness -p "$brightness"

I confirmed the omarchy-osd layer surface renders while VCP 0x10 stays pinned at 400 — the OSD moves, the panel does not.

Contrast behaves the same way here (VCP 12 reads 80/100; a write of 70 is ignored), which points at a firmware lock rather than anything brightness-specific. This panel runs HDR from EDID metadata (cm = "hdredid", 10-bit, XRGB2101010). I have not tested with HDR disabled, so I can't confirm that as the trigger.

Suggestion: the helper already keeps a negative cache for unavailable displays (cache_unavailable, 60s TTL). A verified-failed write could mark the display there, suppressing the false OSD while paying the verification cost about once a minute instead of once per keypress. Measured on this machine:

path time
--noverify (current) ~62 ms
verified ~78–106 ms

Always-verify would add roughly 30 ms to every repeat of a held brightness key; verify-once-then-cache would not.

Possibly related: #6855 exercises the same cache logic for a different failure (bus detected, brightness unreadable).

phren0logy avatar Sep 01 '26 18:09 phren0logy

I checked the ddcutil FAQ, issue and PR history, changelog, releases, and the current 2.2.8-dev branch. I found no existing or incoming upstream fix for this behavior. I also built the current development branch at commit 20eee398 and reproduced the same failure.

The hidden internal retry option makes the skipped checks path work consistently on this display:

ddcutil --bus 9 --skip-ddc-checks --verify --i5 2 setvcp 10 61

Three consecutive writes succeeded in about 624 ms each. Two separate verified commands still failed, so the retry must happen inside one ddcutil process. Since --i5 is an undocumented internal option, Omarchy should not rely on it.

I opened upstream issue https://github.com/rockowitz/ddcutil/issues/626 with the full test matrix, development branch result, timings, and interrogate output. Unless upstream provides a supported retry mechanism, Omarchy will need a fallback using documented options.

Murderlon avatar Sep 02 '26 19:09 Murderlon

Reviewed by Claude Opus 5.5, with a second opinion from Codex at medium effort. This was read against the source; nothing was run, because the failure needs your monitor and a worker has no DDC display.

The cause is still on quattro. bin/omarchy-brightness-display-ddc:163 writes with ddcutil --bus "$bus" --skip-ddc-checks --noverify setvcp 10 …. It checks only the exit status, and :168 then prints the requested percentage, so a write the monitor ignores is reported as success. bin/omarchy-brightness-display:86-87 passes that percentage to the OSD. That matches what you measured.

The fix is #9876, your own pull request, and it already closes this issue. Its last review, at f1617fa3, found one blocking problem. --max-setvcp-and-verify-tries does not exist in ddcutil 2.2.7, the version the stable and RC mirrors ship, so on those systems every DDC brightness write would fail. That pull request is waiting on a fallback for 2.2.7, or on the maintainer deciding to hold it until the mirrors carry ddcutil 3.x.

Related: #14648 reports the same failure on an HP Z27, with the same cause: --skip-ddc-checks on the write, hidden by --noverify. #14691 fixes it a different way. It drops --skip-ddc-checks from the write but keeps --noverify, so a monitor that rejects every write, like the ProArt in the comment above, would still show a false OSD. Nobody has tested that exact command on your LG. Both fixes change the same line, so they compete, and the maintainer will choose between them.

Codex agreed that the cause is still on quattro and that #9876 is blocked on 2.2.7. Its independence is not guaranteed. It also pointed out that #14691 leaves the reject-everything case unsolved.

This now waits on #9876 and on the maintainer.

omarchybot avatar Oct 09 '26 07:10 omarchybot

[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of john-griffin

Same failure on an AOC AGP277KXM over DisplayPort. An I2C trace points at the cause: the monitor sends a null reply to the first DDC request after ddcutil opens the bus, and with --skip-ddc-checks the write is that request. Details, timings and a fast-path fix that sends the setvcp pair twice are in https://github.com/omacom/omarchy/pull/9876#issuecomment-7180865282.

john-griffin avatar Nov 26 '26 02:11 john-griffin

I rechecked quattro at f989b43e91ab16ce3675bd1ec5535e093e907ce0, #9876, the new AOC report and upstream rockowitz/ddcutil#626. The helper still writes with --skip-ddc-checks --noverify and prints the requested percentage when ddcutil exits zero. No tests ran in this issue review; our workers have no physical DDC monitor.

Two points in my previous update have changed. #9876 at a98eb815c228ab85fa48cc74b15a13baec8e3bcb now writes with full checks and --verify, without the option that broke ddcutil 2.2.7. That specific blocker is gone from the diff. #14691 closed without merging on October 23. #9876 remains open and already links this issue for closure when merged.

The AOC report says #9876 changes brightness there and proposes a faster double write. That proposal remains untested on the LG and keeps --noverify, so an ignored write could still be reported as success. Upstream's probe changes were tested on an Alienware; the saved thread has no LG confirmation of those changes.

Reviewed by Codex High, Opus 5.5 High and muse-wonder via pi at high thinking effort. The two additional reviewers agreed with the source diagnosis; independence is not guaranteed. Opus also identified that #9876 targets older panel code, and I confirmed GitHub currently reports a conflict with quattro. This issue waits on #9876 being updated and fully reviewed, and on the maintainer's decision.

omarchybot avatar Nov 26 '26 02:11 omarchybot

Adding another affected monitor and confirming PR #9876's fix command works here.

Hardware & Software

  • Monitor: Dell Alienware AW3926QW (DEL-AW3926QW-41725, DisplayPort, Mstar controller, firmware 65.2, MCCS/VCP 2.1, VCP 0x10 range 0–100)
  • System: ASUS ProArt P16 H7607BA (aarch64, Cortex-X925 / Cortex-A725), NVIDIA GB20B (RTX Spark N1X), NVIDIA driver 615.78.08
  • OS / Tools: Omarchy 4.5.0-3, Linux 7.3.0-3.1-omarchy, ddcutil 3.0.2

Observed behavior

omarchy-brightness-display-ddc reads brightness fine with --skip-ddc-checks, so the Display panel shows the brightness slider, but writing brightness silently leaves the panel unchanged:

Command (ddcutil --bus 4 …) Exit Resulting VCP 0x10
--skip-ddc-checks --noverify setvcp 10 95 0 unchanged (100)
--skip-ddc-checks --verify setvcp 10 93 1 (DDCRC_VERIFY) unchanged
--skip-ddc-checks --sleep-multiplier 2.0 --verify setvcp 10 99 1 (DDCRC_VERIFY) unchanged
--noverify setvcp 10 94 (no --skip-ddc-checks) 0 updated (94)
--verify setvcp 10 100 (PR #9876 command) 0 updated (100)

Root cause confirmed via --trace I2C --trace DDCIO

  • On every invocation (even with --bus and --skip-ddc-checks), ddcutil runs i2c_detect_x37(), writing a raw 1-byte 0x00 probe to I2C slave 0x37.
  • On this monitor's Mstar controller, that stray 0x00 causes the very next DDC/CI packet to be dropped:
    • getvcp 10 with --skip-ddc-checks logs Succeeded after 1 error(s): DDCRC_NULL_RESPONSE (recovers on try 2).
    • Sending two writes in a single process (--skip-ddc-checks --noverify setvcp 10 99 10 98) sets brightness to 98 (first write absorbs the desync, second succeeds), whereas two separate processes both fail because each re-runs i2c_detect_x37().
  • Dropping --skip-ddc-checks (as in #9876) runs ddc_initial_checks_by_dh() first, which clears the desync before setvcp 10 is sent, and --verify ensures any ignored write is no longer reported as success.

acantril avatar Nov 29 '26 06:11 acantril

On the Alienware AW3926QW with ddcutil 3.0.2, the write used by quattro returned success while brightness stayed at 100. The full-checks, verified write used by #9876 changed brightness from 94 to 100. The new measurements cover the ddcutil command. The Display panel behavior still needs verification at the PR head. No hardware tests ran in this review.

Codex High compared the measurements with the helper on quattro and in #9876. Opus 5.5 High and muse-wonder via pi at high thinking effort agreed on what the measurements establish. Their independence is not guaranteed. I also checked that 53ea914e9e80e2bdafbe962da85828372cfd76c6 now merges cleanly into quattro. This issue remains open and waits on the linked PR and the maintainer's decision.

omarchybot avatar Nov 29 '26 06:11 omarchybot