acpi

display battery, thermal, and power information

TLDR

Show battery information
$ acpi
Show thermal information
$ acpi -t
Show cooling device information
$ acpi -c
Show thermal information in Fahrenheit
$ acpi -t -f
Show all information
$ acpi -V
Extract information from /proc instead of /sys
$ acpi -p

SYNOPSIS

acpi [-b] [-a] [-t] [-c] [-V] [-f] [-k] [-p] [-i]

DESCRIPTION

acpi shows information from the /proc or /sys filesystem, such as battery status, AC adapter status, thermal zone temperatures, and cooling device status. It is primarily used on laptops and portable devices to monitor battery charge levels, remaining time, and system temperatures from the command line.By default, it displays battery information. Additional flags enable viewing thermal zones, AC adapter state, and cooling device activity. Temperature output can be displayed in Celsius, Fahrenheit, or Kelvin. The tool reads ACPI data exposed by the kernel, making it a lightweight alternative to graphical power management applets.

PARAMETERS

-b, --battery

Display battery status information
-a, --ac-adapter
Display AC adapter status
-t, --thermal
Display thermal/temperature information
-c, --cooling
Display cooling device details
-V, --everything
Show all devices (overrides other options)
-r, --remaining-time
Display remaining (dis)charge time
-e, --end-time
Display when (dis)charge will complete
-i, --details
Provide battery capacity and temperature trip points
-f, --fahrenheit
Use Fahrenheit instead of Celsius
-k, --kelvin
Use Kelvin instead of Celsius
-p, --proc
Use legacy /proc interface (/sys is default)
-s, --show-empty
Include non-operational devices in output
-d, --directory dir
Specify custom ACPI info path

INSTALL

sudo apt install acpi
sudo dnf install acpi
sudo pacman -S acpi
sudo apk add acpi
sudo zypper install acpi
nix profile install nixpkgs#acpi

CAVEATS

Some options may not work on all systems depending on ACPI support and kernel configuration. Legacy /proc interface may not be available on newer kernels.

HISTORY

Created to provide a simple command-line interface to ACPI information on Linux laptops and desktops.

SEE ALSO

acpi_listen(8), acpid(8), acpi_available(1)

RESOURCES

Source code