LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

acpi

display battery, thermal, and power information

TLDR

Show the battery charge and time remaining
$ acpi
copy
Include the design capacity and wear of each battery
$ acpi --battery --details
copy
Include slots that hold no battery
$ acpi --battery --show-empty
copy
Report whether the AC adapter is connected
$ acpi --ac-adapter
copy
Show thermal zone temperatures
$ acpi --thermal
copy
Show temperatures in Fahrenheit
$ acpi --thermal --fahrenheit
copy
Show temperatures in Kelvin
$ acpi --thermal --kelvin
copy
Show the cooling devices and their current state
$ acpi --cooling
copy
Show everything at once
$ acpi --everything
copy
Read from /proc rather than /sys
$ acpi --proc
copy

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
copy
sudo dnf install acpi
copy
sudo pacman -S acpi
copy
sudo apk add acpi
copy
sudo zypper install acpi
copy
nix profile install nixpkgs#acpi
copy

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid