Bug 470632 - Insufficient charger/power supply results in reporting time until full charge instead of shutdown
Summary: Insufficient charger/power supply results in reporting time until full charge...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-04 16:03 UTC by swampert.mk
Modified: 2023-06-05 22:56 UTC (History)
4 users (show)

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


Attachments
Screenshot of typo, with the typo highlighted with arrows (42.27 KB, image/png)
2023-06-04 16:03 UTC, swampert.mk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swampert.mk 2023-06-04 16:03:30 UTC
Created attachment 159464 [details]
Screenshot of typo, with the typo highlighted with arrows

SUMMARY
***
When using a laptop with a charged battery and a weak charger, mousing over the battery icon gives me a time until full charge, when in actuality the time is until shutdown. Time reported is still correct for time until shutdown, and clicking on battery icon to reveal the full "battery and brightness" panel reports remaining time correctly
***


STEPS TO REPRODUCE
1. Have a laptop with a charged battery and and a weak charger
2. Use more power than the charger can supply
3. Mouse over battery icon (on my computer it's in the lower right corner, on the bottom)
4. Time until shutdown is instead identified as time until fully charged

OBSERVED RESULT
Time until shutdown is identified as "(XX:XX) until fully charged" while battery is discharging

EXPECTED RESULT
Time until shutdown should be reported as "Remaining time: (XX:XX)" while battery is discharging

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.5-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Pentium® CPU N4200 @ 1.10GHz
Memory: 3.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 505
Manufacturer: Google
Product Name: Sand
System Version: rev3


ADDITIONAL INFORMATION
Laptop used:
Acer chromebook CB515-1H

Charger specs:
Input: AC 100 V-240 V, 50/60 Hz
Output (QC 3-0): DC 5,0 V/3,0 A, 15,0 W, 9,0 V/2,0 A, 18.0 W, 12.0 V/1,5 A 18.0W
Total output: max 18 W
Comment 1 Justin Zobel 2023-06-05 01:59:37 UTC
Can confirm on 5.27.5 Plasma Wayland.
Comment 2 Bug Janitor Service 2023-06-05 17:26:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2971
Comment 3 Nate Graham 2023-06-05 22:55:25 UTC
Git commit dfe7545b04bec092ee28299f988508c38321961b by Nate Graham.
Committed on 05/06/2023 at 17:22.
Pushed by ngraham into branch 'master'.

applets/batterymonitor: Fix wrong tooltip when plugged in but discharging

In this case, the tooltip subtext line would still say "X time until
fully charged" because it was not checking to make sure that the battery
was in fact actually charging. This commit makes it do so, so now it
will fall through to the next condition that displays text suitable for
a battery that's discharging.
FIXED-IN: 5.27.6

M  +1    -1    applets/batterymonitor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/dfe7545b04bec092ee28299f988508c38321961b
Comment 4 Nate Graham 2023-06-05 22:56:17 UTC
Git commit 98f39bbce64e526679f7c9195f1282fa972dedaa by Nate Graham.
Committed on 05/06/2023 at 22:56.
Pushed by ngraham into branch 'Plasma/5.27'.

applets/batterymonitor: Fix wrong tooltip when plugged in but discharging

In this case, the tooltip subtext line would still say "X time until
fully charged" because it was not checking to make sure that the battery
was in fact actually charging. This commit makes it do so, so now it
will fall through to the next condition that displays text suitable for
a battery that's discharging.
FIXED-IN: 5.27.6


(cherry picked from commit dfe7545b04bec092ee28299f988508c38321961b)

M  +1    -1    applets/batterymonitor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/98f39bbce64e526679f7c9195f1282fa972dedaa