https://bugs.kde.org/show_bug.cgi?id=502459
Bug ID: 502459 Summary: KDE switches to On Battery profile under heavy load while power supply is still online Classification: Plasma Product: plasmashell Version: 6.3.4 Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Power management & brightness Assignee: plasma-b...@kde.org Reporter: snake.sc...@gmail.com Target Milestone: 1.0 SUMMARY On a gaming laptop (Lenovo Legion 9 16IRX9) under heavy load (in my case playing Monster Hunter Wilds) KDE sporadically switches between On Battery and On Power Supply power management modes even though the power supply is connected all the time as indicated by the hardware power LED on the laptop. STEPS TO REPRODUCE 1. Make sure the laptop is in the gaming mode by pressing Fn+Q repeatedly until the ring around the power button is red 2. Start a demanding game OBSERVED RESULT The system is switching to the On Battery profile every few seconds: screen dimming, performance dropping, fans spinning down, the electric plug pictogram disappearing from the battery icon in the tray. Then after a few seconds it is switching back to On Power Supply and keeps cycling. EXPECTED RESULT The system remains on the On Power Supply profile as long as the power supply is connected. SOFTWARE/OS VERSIONS (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.3 ADDITIONAL INFORMATION When KDE switches to On Battery, `upower -d` reports that the power supply ADP0 is still online. However the battery BAT0 is either "not charging" or "discharging", probably because the power supply is at the limits of what RTX 4090 demands from it. I suspect that KDE wrongly interprets this as being on battery power. Probably as a workaround for buggy power supply reporting on other systems. The cycling probably happens because normally the On Battery profile enables Power Saving, which reduces power consumption, the battery gets a chance to charge, which KDE interprets as being plugged in. And the cycle repeats. My workaround for now is to set up the On Battery profile exactly the same as the On Power Supply. So even though KDE still thinks I'm unplugged, nothing changes (because the settings are the same), and everything keeps working because in reality I'm plugged in and there is enough power for the system to function at full performance. -- You are receiving this mail because: You are watching all bug changes.