[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: working with laptop battery

Daniel Fetchinson

2/14/2010 2:22:00 AM

>> 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...