tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.2k stars 229 forks source link

Battery never goes up to 100% #981

Closed droslean closed 10 months ago

droslean commented 11 months ago

While plugged in, the battery is stuck at 96% and 97% which is not true.

I am guessing that something is wrong with the module.

tobi-wan-kenobi commented 11 months ago

Hmmm, can you please show me the output of upower -i org/freedesktop/UPower/devices/battery_BAT0?

droslean commented 11 months ago

Hey @tobi-wan-kenobi, thanks for the response. I am not sure if I understand what you need with that command. I am not in Arch Linux which I guess was your initial assumption. I am on Fedora 38. Please let me know how I can help to debug this issue.

tobi-wan-kenobi commented 11 months ago

the command should work (on the CLI) in Fedora as well.

I just saw that there are 2 battery modules, which one are you using?

Also, please plwase note that the percwntage might stay below 100, if the battery is older and does not reach full capacity anymore.

droslean commented 11 months ago

the command should work (on the CLI) in Fedora as well.

I just saw that there are 2 battery modules, which one are you using?

Also, please plwase note that the percwntage might stay below 100, if the battery is older and does not reach full capacity anymore.

The laptop is brand new so I guess the battery is ok. Can you tell me what you need to see from the command to send me above? I can give you all the details.

droslean commented 11 months ago

I gues you need:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SMP
  model:                5B11B79217
  serial:               921
  power supply:         yes
  updated:              Sun 06 Aug 2023 04:42:22 PM EEST (5 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              93.58 Wh
    energy-empty:        0 Wh
    energy-full:         93.58 Wh
    energy-full-design:  90.09 Wh
    energy-rate:         0 W
    voltage:             17.639 V
    charge-cycles:       2
    percentage:          100%
    capacity:            100%
    technology:          lithium-polymer
    icon-name:          'battery-full-charged-symbolic'
tobi-wan-kenobi commented 11 months ago

Sorry for the typos, I am writing from mobile :-)

Can you please try the "battery-upower" module instead? I think that one should be more accurate.

The battery module reads data directly from the proc filesystem, I think this can be inaccurate at times.

tobi-wan-kenobi commented 10 months ago

Closing due to inactivity and because there is a suggested solution - using the battery-upower module for more accurate readings.

droslean commented 10 months ago

@tobi-wan-kenobi It seems that the issue is related to Lenovo. We can close this issue. Thank you.