Any way to get info about the battery in a laptop? Like how many % is left, and for how long that will last?

Recommended Answers

All 4 Replies

Member Avatar for leegeorg07

even though you've posted this in the wrong section the easiest ways are to extend the taskbar

I meant, how to do it in python :P

if you are working in linux and have acpi support you can open for reading file /proc/acpi/battery/{YOUR_BAT}/info. There is some info about laptop battery.

Thanks :D But, i need it for windows as well :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.