You are not logged in.

#1 2020-09-28 03:58:30

eichan
Member
Registered: 2018-01-08
Posts: 31

KDE's battery tray icon doesn't update when laptop is unplugged

Hello everyone,

I've had this new issue for a while now. My laptop (XPS 9360, running Arch + latest KDE Plasma) can be charged through an AC plug, or through a USB power cable. If I only use the AC plug, I don't get any problem. But if I use the USB power cable, the battery icon acts a bit weird. It reacts all fine until I suspend and wake the laptop. Then the battery tray icon will always show it's charging. When hovering the tray icon, I get the correct battery percentage, but it says it's charging and gives me an ETA for full charge, even when unplugged. If I click the tray icon to open the battery widget, I strangely get the correct information. In short the widget seems to know I'm not charging, but the tray icon ignores it.

Note that this is a new issue (maybe started about a month ago). I initially assumed it was due to the low quality of the battery (it was below 40% of health) and would be resolved after a battery change. Well no. I changed my battery and the issue is still here. I ended up changing my battery because eventually the laptop would completely stop charging on the USB power cable, only taking the main AC cable.

Below is what 'journalctl -f' shows me when plugging/unplugging various stuff. Some stuff here show as error when using the USB power cable. Maybe that's the reason?

Plugging the AC cable:

sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: Can't contact ck
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: Currently using activity  "b15eb527-8958-4d7d-9595-3897a41ed937"
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: ("b15eb527-8958-4d7d-9595-3897a41ed937") ()
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: () ("mode")
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: Loading profile for plugged AC
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: Activity is not forcing a profile
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:35:58 bobby org_kde_powerdevil[956]: powerdevil: Loading timeouts with  300000

Unplugging the AC cable:

sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: Can't contact ck
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: Currently using activity  "b15eb527-8958-4d7d-9595-3897a41ed937"
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: ("b15eb527-8958-4d7d-9595-3897a41ed937") ()
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: () ("mode")
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: Loading profile for unplugged AC
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: Activity is not forcing a profile
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:08 bobby org_kde_powerdevil[956]: powerdevil: Loading timeouts with  120000

Plugging the USB power cable:

sept. 28 16:36:14 bobby kernel: pcieport 0000:00:1c.0: AER: Corrected error received: 0000:00:1c.0
sept. 28 16:36:14 bobby kernel: pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
sept. 28 16:36:14 bobby kernel: pcieport 0000:00:1c.0: AER:   device [8086:9d10] error status/mask=00000001/00002000
sept. 28 16:36:14 bobby kernel: pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: Can't contact ck
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: Currently using activity  "b15eb527-8958-4d7d-9595-3897a41ed937"
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: ("b15eb527-8958-4d7d-9595-3897a41ed937") ()
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: () ("mode")
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: Loading profile for plugged AC
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: Activity is not forcing a profile
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:15 bobby org_kde_powerdevil[956]: powerdevil: Loading timeouts with  300000

Unplugging the USB power cable:

sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: Can't contact ck
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: Currently using activity  "b15eb527-8958-4d7d-9595-3897a41ed937"
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: ("b15eb527-8958-4d7d-9595-3897a41ed937") ()
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: () ("mode")
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: Loading profile for unplugged AC
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: Activity is not forcing a profile
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil:
sept. 28 16:36:20 bobby org_kde_powerdevil[956]: powerdevil: Loading timeouts with  120000

Plugging the USB power cable after suspsend:

sept. 28 16:40:45 bobby kernel: pcieport 0000:00:1c.0: AER: Corrected error received: 0000:00:1c.0
sept. 28 16:40:45 bobby kernel: pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
sept. 28 16:40:45 bobby kernel: pcieport 0000:00:1c.0: AER:   device [8086:9d10] error status/mask=00000001/00002000
sept. 28 16:40:45 bobby kernel: pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)

After suspend, plugging or unplugging any cable doesn't give any reaction in 'journaltcl -f' apart from the error when plugging the USB power cable (that was already showing before suspend).

Thank you for your help!

Offline

#2 2022-03-17 23:27:14

zorantula
Member
Registered: 2012-08-05
Posts: 2

Re: KDE's battery tray icon doesn't update when laptop is unplugged

I have been running into this problem. It seems to be a problem that upower has with USB-C charger entities.

As such, I was able to resolve my problem simply by installing upower-git from AUR.

Some interesting links might include:
https://bugs.kde.org/show_bug.cgi?id=423556
https://gitlab.freedesktop.org/upower/u … issues/126

Offline

#3 2023-02-17 00:16:09

damax
Member
Registered: 2023-02-14
Posts: 11

Re: KDE's battery tray icon doesn't update when laptop is unplugged

zorantula wrote:

I have been running into this problem. It seems to be a problem that upower has with USB-C charger entities.

As such, I was able to resolve my problem simply by installing upower-git from AUR.

Some interesting links might include:
https://bugs.kde.org/show_bug.cgi?id=423556
https://gitlab.freedesktop.org/upower/u … issues/126

Did upstream upower fix in the past few months?
For upower-git, did you have to restart? Similar problem is happening to me too now, on a ThinkPad.

Offline

Board footer

Powered by FluxBB