Introduction

If you have a laptop with Linux, and would like to check the battery level, and temperature of the CPU, you may use acpi

If you find that acpi is not installed, on your system, use your package manager to install it

Using acpi to check battery level and CPU temperature

Once you have acpi installed on your system, you can use it to check different physical parameters on your Linux Laptop.

acpi -V

Will show you all available information, in my case I get this:

Battery 0: Discharging, 67%, 01:50:36 remaining
Battery 0: design capacity 4866 mAh, last full capacity 3659 mAh = 75%
Adapter 0: off-line
Thermal 0: ok, 40.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 99.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 94.5 degrees C
Thermal 1: ok, 42.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 127.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: LCD 2 of 7

The temperature is Celsius, if you want Fahrenheit, use:

acpi -Vf
Battery 0: Discharging, 66%, 01:45:35 remaining
Battery 0: design capacity 4881 mAh, last full capacity 3670 mAh = 75%
Adapter 0: off-line
Thermal 0: ok, 104.0 degrees F
Thermal 0: trip point 0 switches to mode critical at temperature 210.2 degrees F
Thermal 0: trip point 1 switches to mode passive at temperature 202.1 degrees F
Thermal 1: ok, 107.6 degrees F
Thermal 1: trip point 0 switches to mode critical at temperature 260.6 degrees F
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: LCD 2 of 7

You may want to get only temperature info:

acpi -t

By default acpi with no extra parameters, shows only the battery info.

acpi
Battery 0: Discharging, 65%, 01:50:12 remaining