https://bugs.kde.org/show_bug.cgi?id=529020

QuetschKuh <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected]
             Status|REPORTED                    |CONFIRMED

--- Comment #1 from QuetschKuh <[email protected]> ---
(Claude Code generated report after I had the same issue)
I'm seeing what looks like the same issue, and I think I found the cause: the
idle "Dim screen" multiplier is left applied after the monitor drops off and
comes back during display sleep.

Environment:
- Arch Linux, kernel 7.3.4-arch1-1, Plasma Wayland
- KWin 6.8.2, PowerDevil 6.8.2, plasma-workspace 6.8.2, ddcutil 3.0.2
- NVIDIA RTX 4070 SUPER, nvidia-open 620.70.06 (AMD iGPU also present, no
displays on it)
- Samsung C49RG9x on DisplayPort (DDC/CI capable), HDR off
- Second Samsung 1080p on HDMI (no DDC/CI)
- Power settings: Dim screen after 8 min, then the screen turns off; no system
suspend

Steps:
1. Leave the PC idle so PowerDevil dims the screen and then turns it off. The
C49RG9x drops off DisplayPort completely in standby.
2. Wake it.

Result:
The C49RG9x comes back visibly dimmer (about half). The brightness slider, the
DDC/CI value (ddcutil getvcp 10 → 70) and the monitor's own OSD all still show
70%.

What I found:
- After wake, PowerDevil tried to restore DDC/CI brightness while the monitor
was still disconnected, and gave up:
    org_kde_powerdevil: [DDCutilDisplay]: ddca_open_display2 -3020
    org_kde_powerdevil: [DDCutilDisplay]: "C49RG9x" retrying to set DDC/CI
brightness in 1000 milliseconds - attempt no. 1
    ... (attempts 2, 3)
    org_kde_powerdevil: [DDCutilDisplay]: "C49RG9x" failed to set DDC/CI
brightness
- From then on, `kscreen-doctor -o` reported "Brightness control: unsupported"
for DP-4.
- Changing the mode (5120x1440@120 → @100 → @120) did not help.
- After `systemctl --user restart plasma-powerdevil`, brightness control was
detected again and kscreen-doctor showed the hidden state:
    Brightness control: supported, set to 50% and dimming to 30%
  So a 30% idle-dim multiplier was still applied to the output. The restart
also pushed a stale stored value (0.5 from kwinoutputconfig.json) to the
monitor over DDC/CI, replacing its actual 70.
- This fixed it with no logout:
    kscreen-doctor output.DP-4.brightness.70 output.DP-4.dimming.100

So it looks like the undim is lost when the output's brightness device
disappears and comes back during the dim/DPMS cycle, and the dimming factor
stays applied. That would also explain why logging out fixes it in the original
report. Disabling "Dim screen" afterwards doesn't clear a dim that's already
stuck, but should prevent it from happening again.

To the original reporter: next time it happens, could you check whether
`kscreen-doctor -o` shows "dimming to" below 100% (if it says "unsupported",
restart plasma-powerdevil first)? That would confirm whether this is the same
bug.

Attached: journal excerpt around the failed DDC/CI restore.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to