Bug 427513 - Make "Plugged in" indicator visible in battery icon for the SDDM login screen (currently work on the lock screen)
Summary: Make "Plugged in" indicator visible in battery icon for the SDDM login screen...
Status: RESOLVED LATER
Alias: None
Product: plasmashell
Classification: Plasma
Component: Theme - Breeze (show other bugs)
Version: 5.19.90
Platform: Other Other
: NOR wishlist
Target Milestone: 1.0
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-10 13:59 UTC by Andres Betts
Modified: 2023-08-09 15:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Betts 2020-10-10 13:59:36 UTC
SUMMARY
In the latest build of Plasma, the login screen is able to show the battery percentage value. It would be great if it could also display the charging state. Where it is charging or discharging, like it does on the Plasma desktop.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-10-10 20:36:26 UTC
This has nothing to do with lightDM; moving back.
Comment 2 Nate Graham 2020-10-10 20:37:51 UTC
Andy: what does the battery look like: does it always show the "battery is charging" icon (the one with a little plug in it)? Or does it always show the "battery is discharging" icon (which doesn't have a plug in it)?

Also, what's your kernel version? Is it 5.8.something, by any chance?
Comment 3 Andres Betts 2020-10-10 20:46:23 UTC
For me it shows just the battery icon and the charge percentage numbers. No plug in or out icon. I am on the latest stable kernel, not sure the version.
Comment 4 Nate Graham 2020-10-10 20:49:45 UTC
Thanks. Can confirm. I see the charge status indicator in the battery on the lock screen, but not the login screen.
Comment 5 Nate Graham 2020-10-10 20:54:15 UTC
The PlasmaCore.DataSource that provides this data is clearly working because it provides the percentage data just fine (`pmSource.data["Battery"]["Percent"]`). However either `pmSource.data["AC Adapter"]` or `pmSource.data["AC Adapter"]["Plugged in"]` are evaluating to false inappropriately.

I wonder if this is related to https://gitlab.freedesktop.org/upower/upower/-/issues/126 in some way...
Comment 6 Nate Graham 2023-08-09 15:04:53 UTC
I guess it's because the data engine isn't available yet in SDDM.

Ultimately this needs for SDDM to be made a KDE project and gain significantly better integration with Plasma. That will be unblocked by https://invent.kde.org/plasma/plasma-desktop/-/issues/91, but until that happens, unfortunately there's no real way to fix this. :(