Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-17-2007, 02:25 AM   #1
LQ Newbie
Registered: Oct 2007
Location: Chennai
Posts: 2

Rep: Reputation: 0
Battery Remaining Capacity


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.

Old 10-17-2007, 02:45 AM   #2
Registered: Nov 2006
Distribution: Fedora 8
Posts: 64

Rep: Reputation: 15
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
Old 10-17-2007, 03:01 AM   #3
LQ Newbie
Registered: Oct 2007
Location: Chennai
Posts: 2

Original Poster
Rep: Reputation: 0
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)

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remaining Battery Energy/Lifetime Detection Siva4Linux Linux - Laptop and Netbook 4 12-19-2006 04:47 AM
Battery - continuously display time and % remaining jantman Linux - Laptop and Netbook 2 11-17-2006 04:00 PM
How to check the remaining battery power in linux icoming Linux - Laptop and Netbook 2 10-14-2004 03:51 AM
RedHat 9 on Dell inspiron 2650 : Battery Remaining spawgi Linux - Newbie 1 03-14-2004 05:37 PM

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration