budgie-desktop icon indicating copy to clipboard operation
budgie-desktop copied to clipboard

Battery applet gives incorrect value with dual batteries[Bug]

Open makitso opened this issue 1 year ago • 5 comments

Description

Thinkpad T450s running Ubuntu Budgie 22.04 latest update. This unit has dual batteries. However, the applet gives a different reading than tlp-stat.

image

Budgie version

10.6.1

Operating System

Ubuntu Budgie 22.04.02

Steps to reproduce the issue

see desktop battery icon execute at command line tlp-stat

Actual result

battery applet shows 98% and 42%

Expected result

52% 52%

Additional information

No response

makitso avatar Mar 18 '23 15:03 makitso

Can you give the full output of upower --dump and tlp-stat in gists, run at the same time?

serebit avatar Mar 19 '23 01:03 serebit

image

https://gist.github.com/makitso/e99a7c54b1b5e41c395dd7f0b03a1b44

makitso avatar Mar 19 '23 13:03 makitso

It does seem like the applet is giving incorrect values, but you misinterpreted the output of tlp-stat. What you're looking for is these, the percentage charged for BAT0 and BAT1: image What's interesting here is that both tlp-stat and upower --dump are giving a percentage of 78% for the secondary battery, but the applet in your panel is showing 74% - so there is a discrepancy, it just wasn't what you thought it was.

serebit avatar Mar 19 '23 14:03 serebit

So, do I keep this issue open or close it?

makitso avatar Mar 19 '23 16:03 makitso

Keep it open. We need to determine if there really is an issue with how the status applet calculates battery percentages.

serebit avatar Mar 19 '23 20:03 serebit