Bug 422678

Summary: battery indicator not showing up, widget shows no batteries attached
Product: [Plasma] Powerdevil Reporter: Mariusz Libera <mariusz.libera>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: abrouwers, adressepoub.rl, bartos.petr, eric.donkersloot, jack.t, kde, kde, mihhkel, nate, rathodsw, s.rapp, samdyer181
Priority: VHI Keywords: regression
Version: 5.19.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mariusz Libera 2020-06-09 15:32:40 UTC
SUMMARY
After update to plasma 5.19 battery indicator is not showing up.
Widget added manually to the panel show no batteries - they are visible in KInfoCenter.
Power management settings seem to work - at least brightness is adjusted if I unplug the power, the sound effect is plays, icon of the manually added widget changes. Process org_kde_powerdevil is running.

Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.7.1-arch1-1
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Sam Dyer 2020-06-09 18:15:00 UTC
I too have this problem in KDE Neon, however I tried Wayland to see how things have improved and the battery indicator was there.
Comment 2 Eric Donkersloot 2020-06-10 08:29:56 UTC
Same issue here:

Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.15-arch1-1
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 3 Eric Donkersloot 2020-06-10 08:42:22 UTC
Probably related: https://bbs.archlinux.org/viewtopic.php?id=256447
Comment 4 Kai Uwe Broulik 2020-06-10 08:46:05 UTC
Battery monitor has nothing do with the other system monitor plasmoids
Comment 5 Sam 2020-06-10 18:34:14 UTC
Facing same issue on kde neon after latest updates. 

using 'kquitapp5 plasmashell && kstart5 plasmashell' I get my icon back till next reboot.
Comment 6 Nate Graham 2020-06-10 19:36:14 UTC
Cannot reproduce, but we are getting multiple reports of this.
Comment 7 Petr Bartos 2020-06-10 20:05:28 UTC
Hi,
I've same problem on Fedora. I've found out that if I change visibility of any other tray icon in tray setting, battery indicator appears.
Comment 8 Eric Donkersloot 2020-06-10 20:35:41 UTC
Ignore my comment #3 that seems to be related to a different bug and I erroneously placed it here. My bad.
Comment 9 Eric Donkersloot 2020-06-10 21:08:35 UTC
The workaround Petr is suggesting in comment #7 doesn't work for me.
Comment 10 Jack Todaro 2020-06-10 21:29:43 UTC
Enabling the weather widget in the system tray (rather than as a separate widget) resulted in the battery and brightness widget showing up - but it stated 'no batteries available'. Manually querying the battery with upower showed that the battery is indeed detected, and its charge and other statistics correctly displayed.

When my laptop hit critical battery, I did get a plasma notification about it. But the battery and brightness widget remained hidden from view.

I'm on Gentoo Linux with the same OS type, KDE, Qt and Linux kernel versions as the OP.
Comment 11 Jack Todaro 2020-06-10 21:46:49 UTC
I should add that contrary to Sam Dyer's experience in comment #1, this only occurs for me in the Wayland session. The battery indicator is functional and visible in the X11 session.
Comment 12 Sam 2020-06-11 08:41:07 UTC
For me wayland session it is showing, but not in standard plasma session.
restarting plasma shell gets icon back.
Comment 13 David Edmundson 2020-06-11 10:21:58 UTC
Reproduced, attached gammaray and have a relevant data point.

SystemTrayModel  has an entry "Battery and Brightness" but hasApplet is false.
Comment 14 Nate Graham 2020-06-12 16:41:08 UTC

*** This bug has been marked as a duplicate of bug 422111 ***