Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Retrieving Battery level parameter

    hey I was looking to find out how to find out the battery power parameter in linux using C code. I am using ubuntu and I can see the battery power left, but I need to be able to find a way to find the battery parameter.
    Can anyone help

  2. #2
    Check out /proc/acpi/battery.. I don't have a laptop, so it's empty on my machine, but I suspect you might find something interesting there. Also check the kernel headers and/or source.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts