ACPI stands for Advanced Configuration and Power Interface. It is a power management specification developed by Intel, Microsoft, and Toshiba that defines a common interface for operating systems to use in order to control the power management and configuration of a computer.
In Linux, the acpi command is a command-line utility that allows you to view and control various aspects of the ACPI subsystem on your system. You can use it to view information about your system’s battery status, temperature, fan speed, and other hardware-related information. You can also use it to control the power management settings of your system, such as setting the screen brightness or putting the system into hibernation.
If you encounter the below error while running the acpi command:
acpi: command not found
you may try installing the below package as per your choice of distribution:
OS Distribution | Command |
---|---|
Debian | apt-get install acpi |
Ubuntu | apt-get install acpi |
Alpine | apk add acpi |
Arch Linux | pacman -S acpi |
Kali Linux | apt-get install acpi |
Fedora | dnf install acpi |
acpi Command Examples
1. Show battery information:
# acpi
2. Show thermal information:
# acpi -t
3. Show cooling device information:
# acpi -c
4. Show thermal information in Fahrenheit:
# acpi -tf
5. Show all information:
# acpi -V
6. Extract information from /proc instead of /sys:
# acpi -p
7. To view the current battery status of your system:
# acpi -b
8. To view the current fan speed of your system:
# acpi -f
9. To put your system into hibernation:
# acpi -H
This will cause your system to enter a low-power state, where all of the current state of the system is saved to disk and the system is powered off. When you power the system back on, it will restore the saved state and resume from where it left off.
There are many other options and subcommands available with the acpi command, so you can use the acpi –help command to view a full list of options and learn more about how to use the acpi command in Linux.