Linux command
upower 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
upower -d
List
upower -e
Monitor
upower -m
Example
upower --monitor-detail
Example
upower -v
说明
upower is a system utility that provides power and battery information and statistics. It interfaces with the UPower daemon to report battery levels, power source status, and other power-related information. The tool is commonly used to monitor laptop battery status and power management events.
参数
- -d, --dump
- Display all power and battery information
- -e, --enumerate
- List all power devices
- -m, --monitor
- Watch for power status changes
- --monitor-detail
- Watch with detailed output
- -i _DEVICE_
- Show information about specific device
- -v, --version
- Display version information
FAQ
What is the upower command used for?
upower is a system utility that provides power and battery information and statistics. It interfaces with the UPower daemon to report battery levels, power source status, and other power-related information. The tool is commonly used to monitor laptop battery status and power management events.
How do I run a basic upower example?
Run `upower -d` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --dump do in upower?
Display all power and battery information