working with laptop battery

Daniel Fetchinson fetchinson at googlemail.com
Sat Feb 13 21:22:11 EST 2010


>> It's probably gonna depend on which OS you're running. Which would be...?
>
> Sorry, forgot to mention this. I'm running debian linux.

I don't know about python modules but have a look at

/proc/acpi/battery/BAT0/info
/proc/acpi/battery/BAT0/state

You can parse the numbers you want from there.

HTH,
Daniel


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list