Cara Mudah Melihat Status Battery di Linux melalui Terminal
LinuxCara berikut hanya sekedar info untuk menampilkan status battery, seperti kapasitas battery, waktu sisa penggunaan, status adapter, dan lain sebagainya.
Install ACPI
$ sudo apt-get install acpiKemudian jalankan acpi yang sudah terinstall melalui terminal
$ acpi Battery 0: Charging, 24%, 01:41:32 until chargedMelihat status adapter:
$ acpi -a Adapter 0: on-lineMelihat semua status
$ acpi -V Battery 0: Charging, 29%, 01:34:24 until charged Battery 0: design capacity 2170 mAh, last full capacity 1334 mAh = 61% Adapter 0: on-line Cooling 0: Processor 0 of 10 Cooling 1: intel_powerclamp no state information available Cooling 2: Processor 0 of 10 Cooling 3: ath10k_thermal 0 of 100Untuk cara penggunaan acpi labih lanjut, gunakan perintah berikut:
$ acpi -h Usage: acpi [OPTION]... Shows information from the /proc filesystem, such as battery status or thermal information. -b, --battery battery information -i, --details show additional details if available: - battery capacity information - temperature trip points -a, --ac-adapter ac adapter information -t, --thermal thermal information -c, --cooling cooling information -V, --everything show every device, overrides above options -s, --show-empty show non-operational devices -f, --fahrenheit use fahrenheit as the temperature unit -k, --kelvin use kelvin as the temperature unit -d, --directorypath to ACPI info (/sys/class resp. /proc/acpi) -p, --proc use old proc interface instead of new sys interface -h, --help display this help and exit -v, --version output version information and exit By default, acpi displays information on installed system batteries. Non-operational devices, for example empty battery slots are hidden. The default unit of temperature is degrees celsius. Report bugs to Michael Meskes .
Berkomentarlah sesuai artikel.
No spam, no SARA