this post was submitted on 11 Jul 2024
53 points (98.2% liked)

Linux

46775 readers
2116 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I've installed a new battery on my laptop, but to my surprise, the percentage of charge in the battery is at 0. Here's the upower diagnostics:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  serial:               0
  power supply:         yes
  updated:              Thursday 11 July 2024 09:54:55 PM (16 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               pending-charge
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    charge-cycles:       100
    percentage:          0%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'

The "energy-full-design" capacity of the battery should be 70Wh, but here it is, at 0Wh. None of the statistics above (except date and time) have updated, and it's been two days already. How do I calibrate this battery?

all 12 comments
sorted by: hot top controversial new old
[–] wildbus8979 25 points 1 month ago* (last edited 1 month ago)

This doesn't sound like a calibration issue, but a driver issue sadly. It's possible your new battery uses a different gas gauge IC that isn't supported (yet).

[–] [email protected] 11 points 1 month ago (1 children)

Have you tried turning it off and on again?

[–] [email protected] 11 points 1 month ago* (last edited 1 month ago)

The laptop? Yes, I've done this already. I've also removed the battery and the CMOS, held the power button to discharge the laptop, booted it without the battery, and then installed it again.

[–] [email protected] 8 points 1 month ago (1 children)

You can’t.

The laptop talks to the battery and the software you’re using tries to talk to the laptop to see what the battery says. What’s your laptop make and model, battery make and model and did you check the bios for battery configuration?

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)

It's a Lenovo S540-15IWL, with the MX250 dGPU. I've tried checking the BIOS, and there seems to be no setting for the battery in the BIOS.

[–] [email protected] 7 points 1 month ago (1 children)

Okay, clear the old upower data stored in your computers /var/lib/upower/ directory with rm /var/lib/upower/* then restart the upower service or just restart your computer.

[–] [email protected] 3 points 1 month ago

Useful info ty

[–] [email protected] 8 points 1 month ago (2 children)

It reads that data direct from the batteries BMS hardware, I don't think battery calibration has been a thing since NiCD/NiMH days in the 90s and stuff.

[–] [email protected] 1 points 1 month ago (1 children)

I'm not even sure what kind of behavior is this from a battery - it blinks even when I put in the charger, however it has stopped blinking since the time I've put in the charger for almost more than a day. But the value is still at zero - and ironically, it does not shut down immediately - maybe after two-five hours? Is the PCB a goner?

[–] [email protected] 2 points 1 month ago

Hmm possibly a connector from the battery to motherboard that didn't fully seat?

Or if it's an aftermarket battery maybe it doesn't have the right hardware in it to talk to the computer or something.

[–] [email protected] 3 points 1 month ago

Have you tried running the laptop down until it shuts off then charging it?