Q. How do I check Battery Status of Laptop in Ubuntu from Terminal
Ans:
acpi is a Utility which allows you to check Battery status from Terminal in Ubuntu, just type following command in terminal to install acpi
$ sudo apt-get install acpi
1. To check Battery status simply run following command in terminal
$ acpi
Battery 0: Full, 100%
Battery 0: Full, 100%
* Without Charger
$ acpi
Battery 0: Discharging, 100%, 02:35:40 remaining
Battery 0: Discharging, 100%, 02:35:40 remaining
2. To Check Battery Temperature(Celsius), type
$ acpi -t
Thermal 0: ok, 63.0 degrees C
Thermal 0: ok, 63.0 degrees C
3. To Check Battery Temperature(Fahrenheit), type
$ acpi -t -f
Thermal 0: ok, 143.6 degrees F
Thermal 0: ok, 143.6 degrees F
4. Check AC power status
$ acpi -a
Adapter 0: on-line
Adapter 0: on-line
* Without Charger
$ acpi -a
Adapter 0: off-line
Adapter 0: off-line
5. For more options, type following command in terminal
$ acpi --help
Hope you Enjoyed the Post :)
If You Liked This Post Please Take a Time To Share This Post
nice tips, :D
ReplyDeleteThanks :)
DeleteNice post.
ReplyDeleteIf I remember correctly one can also look in the /proc/acpi folder for some more details
ya we can look in the /proc/acpi folder for more information like
Delete$ cat /proc/acpi/battery/BAT0/info // for more info about battery
$ cat /proc/acpi/battery/BAT0/state // for battery state
and thanks for liking it :)
Your blog is really one amongst my most favorite blogs, it’s so creative. http://www.lowhosting.com/bluehost-review/
ReplyDeletethanks for the info! :D
ReplyDeleteI ennjoyed reading your post
ReplyDelete