How to get Laptop battery related information from ubuntu command

Type Following command in command Line
sanjeewa@sanjeewa-TECRA-M11:$ cat /proc/acpi/battery/BAT1/info
sanjeewa@sanjeewa-TECRA-M11:$ cat /proc/acpi/battery/BAT1/state

If BAT1 didnt work try BAT0 as well.
You will see following output. This is working in ubuntu 11 as well :)



No comments:

Post a Comment

Empowering the Future of API Management: Unveiling the Journey of WSO2 API Platform for Kubernetes (APK) Project and the Anticipated Alpha Release

  Introduction In the ever-evolving realm of API management, our journey embarked on the APK project eight months ago, and now, with great a...