您的位置:首页 > 运维架构 > Linux

linux 每日一练习!!查看电池状态

2015-12-24 00:00 537 查看

一、查看电池状态的方法

Howto check battery status?
Open the Terminal and type the following command:
acpi


OR
acpi -i -b


Sample outputs:





Fig.01: Showing acpi battery status on Linux

Use upower command to get battery status

On the latest version of Linux try:
最近的Linux版本可以使用如下命令。
upower -i /org/freedesktop/UPower/devices/battery_BAT0


Sample outputs:





Fig.02: Displaying battery info using upower
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息