Bug 508434

Summary: Monitor brightness is incorrect after wakeup
Product: [Plasma] plasmashell Reporter: nectarien
Component: Brightness and Color widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, kdedev, natalie_clarius, xaver.hugl
Priority: NOR    
Version First Reported In: 6.4.4   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=492481
https://bugs.kde.org/show_bug.cgi?id=508982
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the menu in question
Power management settings

Description nectarien 2025-08-18 18:10:51 UTC
Created attachment 184218 [details]
Screenshot of the menu in question

SUMMARY
Setting the monitor brightness to 90% using the Plasma menu item (lower right corner) works successfully. However, after waking up from suspend the brightness is reduced. Clicking the menu still shows the requested brightness (90%), but I have to move the slider to another value (91%, say) to get a correct brightness again.

STEPS TO REPRODUCE
1. Set a monitor brightness using the menu item
2. Suspend and wakeup
3. The monitor brightness is now lower than it was even though the value shown in the menu is correct.
4. Move the menu slider to another value - the monitor brightness is now correct for that new value.

OBSERVED RESULT
The monitor is dimmer than it should be.

EXPECTED RESULT
The monitor brightness should match that set in the menu item.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.14.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-5005U CPU @ 2.00GHz
Memory: 9 GB of RAM (8.2 GB usable)
Graphics Processor: Intel® HD Graphics 5500


ADDITIONAL INFORMATION

Output of ddcutil detect: 
Display 1
   I2C bus:  /dev/i2c-5
   DRM connector:           card1-DP-1
   EDID synopsis:
      Mfg id:               HPN - UNK
      Model:                HP Z27
      Product code:         13622  (0x3536)
      Serial number:        CN493817V8
      Binary serial number: 0 (0x00000000)
      Manufacture year:     2019,  Week: 38
   VCP version:         2.2
Comment 1 TraceyC 2025-08-19 17:28:15 UTC
Thanks for the bug report. Can I ask you for some information that will help us figure out what's happening?

1. The version of ddcutil on your system
2. Please run kscreen-doctor -o and paste the output into the report.

Thanks.
Comment 2 nectarien 2025-08-20 20:41:12 UTC
Created attachment 184300 [details]
Power management settings
Comment 3 nectarien 2025-08-20 20:42:26 UTC
Thanks for getting back to me. Please find the requested information below.

It turns out that my original description was not entirely correct, sorry:

CORRECTION TO MY REPORT:
- The incorrect brightness does not result from suspend/wakeup but rather from reactivating the system (keyboard press) after the monitor had been dimmed / deactivated due to the power management.
- In other words: actively choosing 'suspend' from the start menu and reactivating results in the correct brightness. Letting the monitor turn off, without suspend, and reactivating results in the incorrect brightness.
- Perhaps the automatic monitor dimming is not being corrected?

See attachment for my power management settings.


kscreen-doctor -o
Output: 1 DP-1 ddcafff0-ef1f-4925-ad45-4894cf5ae087
        enabled
        connected
        priority 1
        DisplayPort
        replication source:0
        Modes:  1:3840x2160@60*!  2:3840x2160@30  3:3840x2160@30  4:3840x2160@30  5:1920x1200@60  6:1920x1080@60  7:1920x1080@60  8:1920x1080@60  9:1920x1080@60  10:1920x1080@60  11:1920x1080@50  12:1920x1080@50  13:1680x1050@60  14:1600x900@60  15:1280x1024@60  16:1440x900@60  17:1280x800@60  18:1280x720@60  19:1280x720@60  20:1280x720@60  21:1280x720@50  22:1024x768@60  23:800x600@60  24:720x576@50  25:720x576@50  26:720x480@60  27:720x480@60  28:720x480@60  29:720x480@60  30:640x480@60  31:640x480@60  32:640x480@60  33:720x400@70 
        Geometry: 0,0 1920x1080
        Scale: 2
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: Automatic
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 91% and dimming to 100%
        DDC/CI: allowed
        Color resolution: automatic (10), range: [6; 12] bits per color
        Allow EDR: unsupported


ddcutil --version
ddcutil 1.4.1
Built with support for USB connected displays.
Built without function failure simulation.
Built with libdrm services.

Copyright (C) 2015-2023 Sanford Rockowitz
License GPLv2: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Comment 4 TraceyC 2025-08-22 22:12:56 UTC
Thanks. I'll let those with more knowledge about the brightness code take it from here.
Comment 5 Zamundaaa 2025-09-26 16:57:12 UTC
It sounds like the display forgets the brightness value when it's turned off... Perhaps powerdevil isn't telling the display to permanently save it, or we should be setting it again after dpms on.
Comment 6 David Edmundson 2025-10-07 08:22:31 UTC

*** This bug has been marked as a duplicate of bug 503268 ***