How to calibrate the laptop battery on 12.04

33,016

Solution 1

Have you tried power-calibrate ?

sudo apt install power-calibrate

then run

power-calibrate -r

You can read the manual or run man power-calibrate for more information.

Solution 2

Update
As per the latest version of power-calibrate, use this command

power-calibrate  -R -r 20 -d 5 -s 21 -n 0 -p

Where

-d secs  specify a delay before starting
-h show  help
-n CPUs  specify the number of CPUs to exercise
-o file  output results into YAML formatted file
-p       show progress
-r secs  specify run duration in seconds of each test cycle
-R       use Intel RAPL per CPU package data to measure Watts
-s num   number of samples (tests) per CPU for CPU calibration
Share:
33,016

Related videos on Youtube

Nkciy84
Author by

Nkciy84

Computer and gadget loving cook.

Updated on September 18, 2022

Comments

  • Nkciy84
    Nkciy84 over 1 year

    Since a couple of days or so my laptop (asus n76vm) does a hard shut-down when the battery indicates 20% life left. It just cuts off the power, no shut-down screen or anything, making the hard drive do that nasty 'scratchy' sound.

    What should I do now? It seems the battery is less powerfull than it was before (which makes sense) but the OS didn't keep track. How should I go about re-calibrating the battery?

  • Sufian
    Sufian over 4 years
    I had to run the command with sudo, like sudo power-calibrate -p. "-r" argument needs seconds value as well. Maybe the command has changed. I'm on Debian Buster.
  • Rajesh Chaudhary
    Rajesh Chaudhary almost 4 years
    Should I run the command while charging or with the battery only?
  • Alshoja
    Alshoja almost 4 years
    Not sure but I think it won't be a deal, you can run that either in charging or unplugged in my case I was plugged
  • Jocelyn delalande
    Jocelyn delalande over 3 years
    power-calibrate seems to display information only, not to configure the OS with it. Am I wrong on my reading of the man ?
  • thedumbkid
    thedumbkid over 3 years
    does this command only display information or does it actually calibrate?
  • Mr. Wrong
    Mr. Wrong about 3 years
    My System76 Galago Pro has no RAPL domains, so it had to discharge so that the power usage could be measured.