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?

  • wildbus8979@sh.itjust.works
    link
    fedilink
    arrow-up
    24
    ·
    edit-2
    4 months 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).

  • sfera@beehaw.org
    link
    fedilink
    arrow-up
    12
    ·
    4 months ago

    I had a similar issue and had to reboot without a battery first, so the previous one was “forgotten”. It seems like the battery control is a completely separate circuit which in some cases needs to be be reset (if you have such options) or depleted so new batteries are recognized. Maybe search for such instructions for your specific laptop brand and model. HTH

    • LalSalaamComrade@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      4 months 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.

  • bloodfart@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    4 months ago

    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?