Bug 448020 - Internal battery charge limit inappropriately shown for batteries of other devices
Summary: Internal battery charge limit inappropriately shown for batteries of other de...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 448986 497345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-06 12:26 UTC by Kai Uwe Broulik
Modified: 2026-10-30 18:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.3
Sentry Crash Report:


Attachments
Screesnhot (25.55 KB, image/png)
2022-01-06 12:26 UTC, Kai Uwe Broulik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2022-01-06 12:26:39 UTC
Created attachment 145159 [details]
Screesnhot

The "your battery is configured to only charge to n%" is shown on all batteries, even mice.

STEPS TO REPRODUCE
1. Have a wireless mouse on your laptop
2. Configure your battery to only charge to certain percent
3. Look at battery monitor

OBSERVED RESULT
"Your battery is configured only to charge to n%" is shown on the mouse, too

EXPECTED RESULT
It is only shown on the internal battery

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: git master as of 2022-01-06

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-01-07 14:42:03 UTC
Confirmed.
Comment 2 Nate Graham 2022-01-23 05:49:56 UTC
*** Bug 448986 has been marked as a duplicate of this bug. ***
Comment 3 Ismael Asensio 2025-02-07 19:46:17 UTC
*** Bug 497345 has been marked as a duplicate of this bug. ***
Comment 4 Faidon Liambotis 2025-02-07 20:30:08 UTC
Note that in my case, the battery threshold does NOT show up on devices such as my mouse or my headphones. But it does show up for the battery of my UPS, per the bug report that was just marked as duplicate of this one.
Comment 5 Bug Janitor Service 2026-10-29 17:59:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/733
Comment 6 Niccolò Venerandi 2026-10-29 21:54:59 UTC
Git commit af802110c25fc9a5485436dd0c17dbbfdc9fb19c by Niccolò Venerandi.
Committed on 29/10/2026 at 17:58.
Pushed by niccolove into branch 'master'.

applets/batterymonitor: Show the charge limit hint only on the system battery

When a charge limit is configured, the "Battery is configured to charge
up to approximately N%" hint is also shown for other power supply
batteries, such as the battery of a UPS. Additionally require the battery
type to be "Battery", which the model only reports for
Solid::Battery::PrimaryBattery.
Related: bug 497345

M  +2    -1    applets/batterymonitor/BatteryItem.qml

https://invent.kde.org/plasma/powerdevil/-/commit/af802110c25fc9a5485436dd0c17dbbfdc9fb19c
Comment 7 Niccolò Venerandi 2026-10-29 21:55:09 UTC
Git commit 83e9bbe910b749e9dbada4d7aac8758cc7afc4a4 by Niccolò Venerandi.
Committed on 29/10/2026 at 21:55.
Pushed by niccolove into branch 'Plasma/6.8'.

applets/batterymonitor: Show the charge limit hint only on the system battery

When a charge limit is configured, the "Battery is configured to charge
up to approximately N%" hint is also shown for other power supply
batteries, such as the battery of a UPS. Additionally require the battery
type to be "Battery", which the model only reports for
Solid::Battery::PrimaryBattery.
Related: bug 497345


(cherry picked from commit af802110c25fc9a5485436dd0c17dbbfdc9fb19c)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +2    -1    applets/batterymonitor/BatteryItem.qml

https://invent.kde.org/plasma/powerdevil/-/commit/83e9bbe910b749e9dbada4d7aac8758cc7afc4a4