linux 每日一練習!!查看電池狀態

1、查看電池狀態的方法

Howto check battery status?java

Open the Terminal and type the following command:linux

acpi


ORbash

acpi -i -b


Sample outputs:
spa

Fig.01: Showing acpi battery status on Linux

Fig.01: Showing acpi battery status on Linuxcode

Use upower command to get battery status

On the latest version of Linux try:orm

最近的Linux版本可使用以下命令。ci

 
upower -i /org/freedesktop/UPower/devices/battery_BAT0

Sample outputs:
get

Fig.02: Displaying battery info using upower

Fig.02: Displaying battery info using upowerit

相關文章
相關標籤/搜索