Summary: | System stuck in ac-plugged in mode ignoring Power management rules | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Sudhir Khanger <sudhir> |
Component: | general | Assignee: | Plasma Development Mailing List <plasma-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | alx5000, battaglia01, g.guerin, nate, rdieter |
Priority: | NOR | ||
Version: | 5.5.5 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
screenshot of the problem
Battery inconsistency All charging Showing ac plugged even if unplugged |
Description
Sudhir Khanger
2016-04-13 08:39:09 UTC
Created attachment 98390 [details]
screenshot of the problem
Same exact issue - on Neon Xenial running Plasma 5.13. `acpi` and `upower` will show the battery charge/discharge status correctly responding to AC plug on/off events, but the plasmashell battery icon will remain on "plugged in" mode even if I unplug. Strangely, sometimes the battery icon will still say "plugged in," even though when I click on the battery, it still says "discharging". Screenshot attached below. Created attachment 113771 [details]
Battery inconsistency
Note the tray icon still has the battery in AC mode, even though it is listed as "Discharging" in the panel.
More importantly, the power management settings still respond as if the AC were plugged in. I want it to auto-suspend only if battery is discharging and not suspend if AC is plugged in. The result here is that it thinks the AC is plugged in, discharges, and drains the battery.
Created attachment 113772 [details]
All charging
One more - now things are plugged in. Note that the tray icon is "charging", and now the battery icon in the panel dropdown is also "charging." In the previous screenshot, the battery icon in the panel dropdown was the normal "discharging" battery.
However, crucially, in both cases, the battery tray icon was charging -- even though it is only really charging in this one and not the last one. The tray icon seems to dictate which power management behaviors are followed, so that it always does AC mode even if discharging.
Finally, I note the problem may result from a discrepancy between upower and acpi. Note the following terminal results. Both of these are in the state where the AC is not plugged in, but the tray icon still says discharging (even though battery panel icon says discharging): $ acpi -V Battery 0: Discharging, 50%, 01:55:40 remaining Battery 0: design capacity 5006 mAh, last full capacity 4092 mAh = 81% Adapter 0: off-line <----------------------------------------- NOTE HERE Thermal 0: ok, 40.0 degrees C Thermal 0: trip point 0 switches to mode hot at temperature 240.0 degrees C Thermal 1: ok, 35.3 degrees C Thermal 1: trip point 0 switches to mode hot at temperature 60.0 degrees C Thermal 2: ok, 0.0 degrees C Thermal 2: trip point 0 switches to mode hot at temperature 97.0 degrees C Thermal 3: ok, 38.0 degrees C Thermal 3: trip point 0 switches to mode hot at temperature 54.0 degrees C Cooling 0: x86_pkg_temp no state information available Cooling 1: Processor 0 of 10 Cooling 2: Processor 0 of 10 Cooling 3: intel_powerclamp no state information available Cooling 4: pch_skylake no state information available Cooling 5: Processor 0 of 10 Cooling 6: Processor 0 of 10 Note that Adapter 0 is offline. On the other hand, here's upower -u. Note Adapter 0 (line_power_ADP1) is ONLINE! ~ $ upower -d Device: /org/freedesktop/UPower/devices/line_power_ADP1 native-path: ADP1 power supply: yes updated: Thu 05 Jul 2018 12:54:02 AM EDT (2262 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes <----------------------------- SEE HERE icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/battery_BAT1 native-path: BAT1 vendor: SMP model: X910527 serial: 39135 power supply: yes updated: Thu 05 Jul 2018 01:31:23 AM EDT (21 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging warning-level: none energy: 15.547 Wh energy-empty: 0 Wh energy-full: 31.192 Wh energy-full-design: 38.152 Wh energy-rate: 7.507 W voltage: 7.567 V time to empty: 2.1 hours percentage: 49% capacity: 81.7572% technology: lithium-ion icon-name: 'battery-good-symbolic' History (charge): 1530768666 49.000 discharging History (rate): 1530768683 7.507 discharging 1530768682 18.735 charging 1530768675 7.695 discharging 1530768666 8.580 discharging Device: /org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: Thu 05 Jul 2018 01:31:23 AM EDT (21 seconds ago) has history: no has statistics: no battery present: yes state: discharging warning-level: none energy: 15.547 Wh energy-full: 31.192 Wh energy-rate: 7.507 W time to empty: 2.1 hours percentage: 49% icon-name: 'battery-good-symbolic' Daemon: daemon-version: 0.99.4 on-battery: no lid-is-closed: no lid-is-present: yes critical-action: HybridSleep Sorry if there is a better place to report this but cold not find any more recent bug report on this issue. Sometimes my battery indicator in sys tray still says "plugged in" (and the icon has the power plug in it) even though I have unplugged the power adaptor . When hovering the mouse over it, it says "Plugged in but still discharging". When clicking on it, the indicator says, "discharging", and the battery icon inside the popup window is the correct one (i.e. without the power plug in it). See screenshot attached. The issue is that he system does not go to sleep any more. For info, I have rule to stop charging at 85% and start at 45%. I "think" the issue happens after a wake up from sleep but I'm not sure and it is a bit random. Plugging back the power adaptor and unplugging it does not solve the issue. The only thing that seem to solve it is rebooting (then it works fine). I saw the issue being reported here too: - https://www.linuxquestions.org/questions/slackware-14/plasma-5-systray-battery-monitor-incorrectly-says-plugged-in-4175671626/ - https://forum.manjaro.org/t/battery-icon-is-constantly-in-charging-mode/27605 - https://bbs.archlinux.org/viewtopic.php?id=236409 (in here it says it is a bug in upower, but I cannot test that as I cannot downgrade to the version proposed in the article - I run upower version 0.99.11) - https://www.reddit.com/r/kde/comments/mxampb/having_a_few_problems_with_kde/ Created attachment 142583 [details]
Showing ac plugged even if unplugged
Using a Lenovo ThinkPad X1 Carbon 6th Operating System: KDE neon 5.23 KDE Plasma Version: 5.23.0 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.3 Kernel Version: 5.11.0-37-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz Memory: 15.4 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620 Upower 0.99.11 *** This bug has been marked as a duplicate of bug 423556 *** |