Bug 507203

Summary: When laptop goes into or out of battery mode while sleeping, power management actions are not triggered or re-evaluated upon wake-up
Product: [Plasma] plasmashell Reporter: Mathis Paquet <mathispaquet362>
Component: Power management & brightnessAssignee: Nate Graham <nate>
Status: ASSIGNED ---    
Severity: normal CC: fernandommuniz, kdedev, mathispaquet362, nate, nicolas, raphael.kde, skylyn.bilen.sb, yizel7
Priority: HI    
Version First Reported In: 6.4.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mathis Paquet 2025-07-18 16:56:01 UTC
SUMMARY
If you wish to reduce the display brightness on your laptop while running on the battery, it currently does not work if the laptop is sleeping while the charger is unplugged. For example, using the laptop while it is charging, closing the lid and later opening the laptop on battery power will not have reduced the brightness even if it is configured to do so. However, unplugging the laptop while it is awake will correctly trigger the brightness change. This is also true for scripts/commands that should be executed when the power management changes.

STEPS TO REPRODUCE
1. In power management, configure the screen brightness to go down when on battery. Make sure the current brightness is 100% and that the laptop is charging.
2. Close the lid, putting the laptop in sleep mode.
3. Unplug the laptop.
4. Open the laptop and log in.

OBSERVED RESULT
The brightness has not changed to the desired amount.

EXPECTED RESULT
The brightness should change.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.15.6-arch1-1 (64-bit)
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Laptop is a Legion Pro 7 16IRX8H with Nvidia + Intel GPU
Comment 1 Nate Graham 2025-08-06 23:25:57 UTC
Can confirm. We have a bunch of different bug reports about specific manifestations of this issue, but this one is well-worded so I'm going to use it as the master bug report for all the others.
Comment 2 Nate Graham 2025-08-06 23:26:08 UTC
*** Bug 505027 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2025-08-06 23:26:16 UTC
*** Bug 464310 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2025-08-06 23:26:26 UTC
*** Bug 471636 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2025-09-25 22:27:24 UTC
*** Bug 509288 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2025-09-25 22:27:58 UTC
Basically, we're not handling state changes that happen while asleep. We'll need to add some logic to Core::onResumingFromIdle()
Comment 7 Nate Graham 2025-09-25 22:46:13 UTC
Or rather, a new onResumeFromSuspend() function.
Comment 8 Fernando M. Muniz 2025-09-25 22:54:40 UTC
*** Bug 496042 has been marked as a duplicate of this bug. ***
Comment 9 Bug Janitor Service 2025-09-25 23:19:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/583