https://bugs.kde.org/show_bug.cgi?id=428457
Bug ID: 428457 Summary: Plasma doesn't recognize unplugged battery Product: Powerdevil Version: 5.20.2 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: s.r...@outlook.com Target Milestone: --- SUMMARY The unplug events don't seem to be taking place when my laptop is unplugged from AC power. The behavior appears to have started in 5.19 on Tumbleweed and persists to now. However, I believe I have narrowed it down to something to do with linux kernels < 5.7 For reference, I have a Lenovo X1 Carbon 6 and am using rolling distros. STEPS TO REPRODUCE 1. Start laptop with power plugged in 2. Log in, use the computer as normal 3. Unplug the laptop OBSERVED RESULT A few things (don't) happen: - The unplug sound doesn't play - The battery icon moves from hidden to visible on the system tray - However, despite moving, the indicator still shows a "Plugged in" icon - The calculated time-remaining until full charge may be the time to discharge (uncertain here) EXPECTED RESULT The laptop correctly identifies that it is no longer plugged in and changes modes accordingly. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch latest linux (5.9.1), OpenSUSE Tumbleweed (5.8.16) KDE Plasma Version: 5.19.* to 5.20.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 ADDITIONAL INFORMATION As I mentioned above, I have determined that the kernel version seems to play an indicator in this bug. Arch latest (5.9.1) has this bug; however, if I boot the system to linux-lts, the bug goes away. I cannot test this theory under OpenSUSE as they do not maintain LTS releases. Furthermore, I am able to forcefully make KDE recognize it has been unplugged while closing the laptop lid after unplugging the battery. If I wait for the computer to suspend, then open the lid, the battery unplugged noise is played and the system tray indicator works correctly (and keeps working for subsequent unpluggings). Conversely, if the laptop is suspended with the power plugged in, the incorrect behavior will resume on the next Resume. Finally, I have not been able to confirm the presence of this bug under Solus KDE and they are currently using Linux 5.6.16. Between it functioning in 5.4 and 5.6 but broken by 5.8, I then hypothesize that this bug is a result of changes in 5.7 or newer kernels. I would run some debugging or grab logs, but I'm afraid I don't know what to do that would be useful. -- You are receiving this mail because: You are watching all bug changes.