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

--- Comment #41 from [email protected] ---
Created attachment 198710
  --> https://bugs.kde.org/attachment.cgi?id=198710&action=edit
ddcutil / journal / D-Bus log around a failing wake (X11, DDC monitor)

I'm seeing this too on Plasma 6.7.5 (X11, Nobara 44, NVIDIA GTX 1080), with a
single external monitor, an ASUS VG279 on DisplayPort, that does DDC/CI. In my
case the monitor's hardware brightness itself stays at the dimmed level. The
software dimming isn't the problem here, since there's none on X11.

I logged `ddcutil getvcp 10` and PowerDevil's Brightness property every few
seconds, with dim set to 1 minute and screen off to 2 minutes. The dim takes
the monitor from 80 to 24 as expected. On most wakes it comes back to 80. On
the bad ones it stays at 24 while PowerDevil still reports 80, so the slider
shows 80.

What I see on the bad wakes is always the same:

  ddca_set_non_table_vcp_value -3007
  "VG279" retrying to set DDC/CI brightness in 1000 milliseconds - attempt no.
1
  DDCA_EVENT_DISPLAY_DISCONNECTED, card1-DP-3
  DDCA_EVENT_DISPLAY_CONNECTED, card1-DP-3, ddc working: true

and on D-Bus, DisplayRemoved "display1" then DisplayAdded "display2".

So PowerDevil tries to undo the dim while the monitor is still waking up, the
write fails, and a retry is scheduled. Before the retry runs, the monitor drops
off DDC and comes back as a new display, and the retry is lost with the old
one. The new display just inherits the remembered 80 and nothing ever sends it
to the monitor. The good wakes are the ones where the monitor doesn't do that
disconnect/reconnect.

Calling SetBrightness(80) on the new display, with the same value it already
reports, fixes it straight away. For now I'm working around it with a small
script that does exactly that on DisplayAdded. The log from one bad wake is
attached.

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

Reply via email to