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
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.
*** Bug 505027 has been marked as a duplicate of this bug. ***
*** Bug 464310 has been marked as a duplicate of this bug. ***
*** Bug 471636 has been marked as a duplicate of this bug. ***
*** Bug 509288 has been marked as a duplicate of this bug. ***
Basically, we're not handling state changes that happen while asleep. We'll need to add some logic to Core::onResumingFromIdle()
Or rather, a new onResumeFromSuspend() function.
*** Bug 496042 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/583