Linux command
acpi 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
acpi
Example
acpi -t
Example
acpi -c
Example
acpi -t -f
Example
acpi -V
Example
acpi -p
说明
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.
参数
- -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
FAQ
What is the acpi command used for?
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.
How do I run a basic acpi example?
Run `acpi` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b, --battery do in acpi?
Display battery status information