Support LQ: Use code LQ3 and save \$3 on Domain Registration
 Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org Battery Remaining Capacity
 Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

 10-17-2007, 02:25 AM #1 jay_manikandan LQ Newbie   Registered: Oct 2007 Location: Chennai Posts: 2 Rep: Battery Remaining Capacity Hi, I am writing an application to find the current battery capacity in the driver level. My board has Li_Ion battery. I can get the following parameters from the battery driver: 1) Voltage 2) Current 3) Temperature. I have to find out the remaining battery capacity with the above params. I read some article which says we have to consider 1)temperature derate factor and 2)depth of discharge to calculate the capacity with accuracy. Please help me in this regard. I have gone through the posts made in this forum. All the posts are discussing about /proc/acpi filesystems. But my case is different. Regards, Jay
 10-17-2007, 02:45 AM #2 Findus Member   Registered: Nov 2006 Distribution: Fedora 8 Posts: 64 Rep: Maybe you could specify in what regards your case is different? I can't help you, as I am not much of a programmer, but that information might help some one who can to give you more specific help. - Findus
 10-17-2007, 03:01 AM #3 jay_manikandan LQ Newbie   Registered: Oct 2007 Location: Chennai Posts: 2 Original Poster Rep: I have to find out the remaining battery capacity without /proc/acpi file system. I have to use the following parameters to calculate the battery capacity. 1) Voltage 2) Current 3) Temperature. I read in an article to find the current battery energy in Watt-Hours. E = C * Vavg * (tempdefactor/100) * (depthdischarge/100) where, tempdefactor -> Temperate derating factor depth discharge -> depth of discharge. Can i use this formula to calculate the current available energy of a battery? If so, what value i can use for tempdefacor and depthdischarge? Is there any spec or tables to find out these values based on temperature and ageing? Hope am not confusing you.