Only for laptop users

post your
acpi -ib | cut -c 68-70

mine’s 96%

1 Like
acpi -ib | cut -c 68-70
bash: acpi: command not found

Okay what does it do btw?
PS. your profile pic is nice.

Edit: I installed acpi. My output is 100. New laptop. Reading the manpage, looks like it shows battery health info.

Edit2: @AnotherPenguin Just to get an idea of battery decay speed, may I please ask how old is your laptop battery? And do you use your laptop on battery or on AC? I use on AC source.

93% on a 18 month old Asus ROG Strix 3.

1 Like

acpi -ib | cut -c 68-70


mine sais 100% on a two years old Dell Inspiron.

1 Like
$ acpi -ib | cut -c 68-70


An almost 4 months old Lenovo Yoga Slim 7 14ARE05. Used intermittently on AC/DC.

My 10 years old laptop, original battery:

$ acpi -ib | grep capacity | awk '{print $NF}'

Frankensteen T60 last IBM Thinkpad produced… 2006


Work laptop, because I’m at work right now (gee, doesn’t my job seem rough?)


$ acpi -ib | cut -c 68-70

After one year of use on AC. I just recently went hardcore battery conserving by limiting charge process to 60%. Would’ve saved some capacity had I set it up like that from the start.

I get 100%, but that’s clearly wrong, because this this old laptop lasts about 10 minutes unless plugged in. It’s an HP ProBook 4540s, with original battery. It’s about 12-13 years old.


1 Like

Might want to research an unknown command first, thén decided whether or not to execute it, to be sure you know what will happen :wink:


That’s always good advice, one should never execute commands one finds on the internet and does not understand. However, in this case, on this forum, if it were a malicious or harmful command, I doubt there would be 10 replies in a thread without someone screaming about it.


acpi -ib is the key here. the rest of the command filters out only the relevant part of the output.
running acpi -ib will give you an summary of the information on the detected battery.

Very true. Consider it more general advice :wink:

Looks like withouth the the -b flag you would get the same result.

man acpi
ACPI(1)                                 General Commands Manual                                 ACPI(1)

       acpi - Shows battery status and other ACPI information

       acpi [options]

       acpi  Shows information from the /proc or the /sys filesystem, such as battery status or thermal

       -b | --battery
                 show battery information
    -a | --ac-adapter
                 show ac adapter information

       -t |  --thermal
                 show thermal information

       -c | --cooling
                 show cooling device information

       -V | --everything
                 show every device, overrides above options

       -s | --show-empty
                 show non-operational devices

       -i | --details
                 show additional details if available:

                 * battery capacity information

                 * temperature trip points

       -f | --fahrenheit
                 use fahrenheit as the temperature unit instead of default celsius

       -k | --kelvin
                 use kelvin as the temperature unit instead of default celsius

       -p | --proc
                 use the old /proc interface, default is the new /sys one

       -d | --directory <dir>
                 path to ACPI info (either /proc/acpi or /sys/class)

       -h | --help
                 display help and exit

       -v | --version
                 output version information and exit

 Manual page acpi(1) line 1/62 82% (press h for help or q to quit)

Read The Fine Manual ! :wink:


PRETTY sure the F doesn’t stand for fine, my army training never said fine… :smiley:


7yr old laptop (although new to me, plus relatively new battery)


I guess you need to install acpi first.


[ricklinux@eos-kde ~]$ acpi -ib | grep capacity | awk '{print $NF}'

In a FFF, the F could stand for Fine, Fabulous, Fantastic, Formidable …



Family-Friendly Forum