1% increment battery driver - TG01 ROM Development

can anyone make a 1% battery driver for our tg01?

What do you mean with 1%? That the battery status about 88% or 78%?

yes meaning the battery displaying 1% increments on discharge

The problem with this I think is in the hardware... and batteries in general. To monitor battery charge, you look at voltage level, so the accuracy is based on how much the voltage fluctuates and the sensitivity of our internal volt meter. I think the best you can hope for is 5% increments accurately...
I would also like more accuracy in my battery level indicator.
Someone please correct me if I'm wrong.

even 5% increment is still better then 10%

thor2002ro said:
even 5% increment is still better then 10%
Click to expand...
Click to collapse
Exactly. I never had 1% or even 5% increment battery level display on any wm phone i owned. I come to think maybe it's an HTC advantage only

thats not right. on mda vario is 1% status and i thinking it's on all mda versions. greats alcatras

Jonous said:
Exactly. I never had 1% or even 5% increment battery level display on any wm phone i owned. I come to think maybe it's an HTC advantage only
Click to expand...
Click to collapse
it also was fixed on the SE X1(htc kovsky) by a fix in roms ... stock roms only showed 10% battery levels , patch applied , it was 1% , OP knows whats hes talking about , u should contact the guys who made patches like that for that and other phones (cuz its not the only one that got that patch) to know where to start

Related

Athena Battery Life

Hi Friends
My Advantage show battery life in percent, but it is add by 10%
it mean 10% 20% ... 90% 100%
it jump from 100 to 90
is any way to see complete percent?
SPB Gprs monitor show how much battery life work, but don't show the percent of battery
thanX
Arya said:
Hi Friends
My Advantage show battery life in percent, but it is add by 10%
it mean 10% 20% ... 90% 100%
it jump from 100 to 90
is any way to see complete percent?
SPB Gprs monitor show how much battery life work, but don't show the percent of battery
thanX
Click to expand...
Click to collapse
no, the reason this happens is due to the limitations of the internal circuitry of the battery.
In keepimg with many modern devices I expect the indicator is just that, an indicator!
It's not that accurate as the monitoring circuitry would be faily non cost effective for a consumer device.

Battery meter goes down in 10% intervals?

Am I the only one who gets this? I never get a "67%" or any other non "ten" number when I check my battery level.
Is there a reason for this?
because HTC developers decided it to be that way
i believe if you install any 3rd party battery monitoring app it will give you exact numbers.
venumx said:
i believe if you install any 3rd party battery monitoring app it will give you exact numbers.
Click to expand...
Click to collapse
The battery monitor on the Resco Today plugin still reads in 10% intervals. When it gets down to 10% it will then go to 5% then dead... lol. I haven't found a battery monitor that reads the battery level any differently.
EDIT: Hard to believe I've been a member here for almost a year and this is my first post. haha
Pitchblack98 said:
The battery monitor on the Resco Today plugin still reads in 10% intervals. When it gets down to 10% it will then go to 5% then dead... lol. I haven't found a battery monitor that reads the battery level any differently.
EDIT: Hard to believe I've been a member here for almost a year and this is my first post. haha
Click to expand...
Click to collapse
Batterystatus anybody??
fowen said:
Am I the only one who gets this? I never get a "67%" or any other non "ten" number when I check my battery level.
Is there a reason for this?
Click to expand...
Click to collapse
The battery level signal is measuring battery voltage. First, the hardware probably only gives you 3-4 bits of A/D resolution. Second, it is unlikely that more resolution would be helpful and probably would be misleading since remaining battery capacity is not a linear function of voltage. If they gave you more bits, you probably would be complaining that when it reads 25% actually only 15% of the battery is left, etc, etc.

Battery indicator - setcpu - Juice Defender

Wrapping these all up in the same post because they are related.
I have found that the battery indicator is pretty inaccurate and will jump from say 15% straight to 10%. This goes for the stock battery usage meter in settings, display in the top right on the staus bar, battery widgets, and even setcpu. Anyway to make this actually accurate and provide real time indication?
Also I have been playing around with setcpu and Juice Defender and have found that they essentially do the same thing. They both under clock the CPU at certain times except setcpu doesnt disable wifi and other things. I figured it would be bad to run both so I disabled Juice Defender. If I have to pick one, which should I use?
circle battery widget can indicate the exact percentage.
vista1984 said:
circle battery widget can indicate the exact percentage.
Click to expand...
Click to collapse
Thank you sir
Battery Monitor by SIMMO Publications is better than circle battery imo
Supish said:
Battery Monitor by SIMMO Publications is better than circle battery imo
Click to expand...
Click to collapse
Just as accurate as circle battery?
Just out of curiousity, does anyone use Juice Defender?
Sent from my Atrix using XDA App
vista1984 said:
circle battery widget can indicate the exact percentage.
Click to expand...
Click to collapse
circle battery widget and other apps only estimates the exact percent, the atrix hardware only allows for 10% increments.
This is not what I have found with circle battery and battery monitor by simmo. They show exact percentages on my phone.
Sent from my Atrix using XDA App
Yeah, I use JuiceDefender.
Inspiredwire said:
Yeah, I use JuiceDefender.
Click to expand...
Click to collapse
Do you also use setcpu? Did you seem to definitely notice a difference using Juice Defender? Or more importantly any features of the phone change? For example every time you shut the screen on and turn it back on, does it have to find wifi again? Or what about when the screen is off, does it shut down data connections completely so that you don't even receive email notifications?
Sent from my Atrix using XDA App
I used Juice Defender on the atrix until recently. It worked well. I had to set to pull data for one minute every 15 minutes (and it wouldn't stop downloading at the end of the minute unless it was finished pulling what it wanted to. Sure I no longer got my email responded to the second I received it, but it made my battery last ~50% longer.
I also used setcpu to underclock when the battery was <20% and when the screen was off. Juice Defender has this feature for other phones, however, didn't seem to support underclocking on the Atrix.
Thanks for the info
Sent from my Atrix using XDA App
seh6183 said:
This is not what I have found with circle battery and battery monitor by simmo. They show exact percentages on my phone.
Sent from my Atrix using XDA App
Click to expand...
Click to collapse
they will show 1% increments but these are just estimates as the atrix hardware cannot show 1%. programs like circle battery widget are not accurate even when they are showing 1%. check out the thread below.
http://forum.xda-developers.com/showthread.php?t=965682
neotekz said:
they will show 1% increments but these are just estimates as the atrix hardware cannot show 1%. programs like circle battery widget are not accurate even when they are showing 1%. check out the thread below.
http://forum.xda-developers.com/showthread.php?t=965682
Click to expand...
Click to collapse
they are pretty DAMN accurate, Ive been using the circle batt widget for almost a month now.
I switched to the simmo one since it has a notification bar batt %
neotekz said:
they will show 1% increments but these are just estimates as the atrix hardware cannot show 1%. programs like circle battery widget are not accurate even when they are showing 1%. check out the thread below.
http://forum.xda-developers.com/showthread.php?t=965682
Click to expand...
Click to collapse
I don't think people here realize how circle battery widget (and other like it work). Nearly all battery widgets just read what the system is saying which is obviously going to be in 10%'s on this phone. What circle battery and a few others do is read the actual voltage left in the battery and make an accurate % report which is why it's 100% accurate down the %. It doesn't matter what battery capacity the battery has either because every Li battery has the same full and empty voltage. So yes circle battery widget is 100% accurate.
Sent from my MB860 using Tapatalk
^Exactly. Even without knowing that, you can just watch the circle battery widget and the reported system percentage. The circle battery widget always changes consistently with the normal system value, so at the very least it's as accurate as any of the meters displaying the 10% increments.
neotekz said:
they will show 1% increments but these are just estimates as the atrix hardware cannot show 1%. programs like circle battery widget are not accurate even when they are showing 1%. check out the thread below.
http://forum.xda-developers.com/showthread.php?t=965682
Click to expand...
Click to collapse
Not sure where you got the idea that circle battery widget was inaccurate. Like I mentioned above, anyone can observe that it is consistent with the system report, so it at least averages out to be fairly accurate for every 10% block.
Another thing to remember, though a small detail, is the fact that the system displays increments of 5% starting at 15%. That doesn't change much, but that means it's not only 10% increments.
Clienterror said:
I don't think people here realize how circle battery widget (and other like it work). Nearly all battery widgets just read what the system is saying which is obviously going to be in 10%'s on this phone. What circle battery and a few others do is read the actual voltage left in the battery and make an accurate % report which is why it's 100% accurate down the %. It doesn't matter what battery capacity the battery has either because every Li battery has the same full and empty voltage. So yes circle battery widget is 100% accurate.
Sent from my MB860 using Tapatalk
Click to expand...
Click to collapse
im not saying you are wrong here but where did you get the info that it measures voltage? even if it does im not convinced its that easy to
accurately measure capacity. why are all these phone manufactures have problem with having to recalibrate batteries and wiping stats? why not just always measure voltage and always have accurate numbers?
im no expert im just going with what designgears posted in his thread. he is a developer that made lots of roms with very accurate battery monitor that i used for my captivate. he was trying to make one for the atrix but was told that the hardware only supports 10%. if its was as easy as measuring the voltage then why didnt he just do that?
ive used circle battery and battery monitor that both showed 1% increments for a few weeks and noticed that it was not very accurate. its hard to explain but when i was using the phone it would decrease at a steady rate then when i have the screen off for a few mins it would quickly drop 2-3% (within the few mins that i had the screen off) then it would slow down again, this is why i think its an estimate. dont get me wrong its not too bad for an estimate but if you ever used cognition rom or any other roms on other phones with good battery mods you will see what a really accurate battery monitor is, you can set a timer to it...
neotekz said:
im not saying you are wrong here but where did you get the info that it measures voltage? even if it does im not convinced its that easy to
accurately measure capacity. why are all these phone manufactures have problem with having to recalibrate batteries and wiping stats? why not just always measure voltage and always have accurate numbers?
im no expert im just going with what designgears posted in his thread. he is a developer that made lots of roms with very accurate battery monitor that i used for my captivate. he was trying to make one for the atrix but was told that the hardware only supports 10%. if its was as easy as measuring the voltage then why didnt he just do that?
ive used circle battery and battery monitor that both showed 1% increments for a few weeks and noticed that it was not very accurate. its hard to explain but when i was using the phone it would decrease at a steady rate then when i have the screen off for a few mins it would quickly drop 2-3% (within the few mins that i had the screen off) then it would slow down again, this is why i think its an estimate. dont get me wrong its not too bad for an estimate but if you ever used cognition rom or any other roms on other phones with good battery mods you will see what a really accurate battery monitor is, you can set a timer to it...
Click to expand...
Click to collapse
I've had a Captivate since release back on July 17th (or 18th I forget) so I fully understand who DG is (And I'm not to happy he jumped ship completely on this phone like he did but it's his choice and it is what it is). Ok so even though the hardware on the Atrix isn't capable of reading the battery in single percents only in 10's it still reports the actual mV of the battery. If you open "Spare Parts" app for example and go to "Battery Information" it displays your current mV of your battery. Now almost all modern Lithium Poly batteries are considered "Full" at 4.2 mV (Obviously this can vary slightly even within the same battery for the same phone model due to manufacturing tolerances) and "Empty" at 3 mV (I think it's REALLY dead at around 2.5 mV but the phone has a built in safety feature to prevent this because if it drops to low the battery wont even take a charge). Here's a link Lithium Poly Battery to this data. All the Circle Battery Widget is doing is assuming your battery is at 100% at 4.2 mV and 0% at 3 mV, then if just divides your current mV by 4.2 and turns the decimal into a percent and now you have your display %.
Now the reason it may drop faster like you said is because the phone OS itself reports the battery mV and I doubt it checks it every second. So say the phone OS checks the mV every 5 minutes (Just guessing I have no idea) and it reports RIGHT before you play a game or a few youtube videos then you stop playing (phone still shows the same percent) and put your phone to sleep then wake it 2 minutes later and now you've lost 2% battery "Doing nothing" but really the OS just didn't refresh your battery mV before you turned the screen off.
As far as how I know Circle battery widget does this is basically common sense, obviously it isn't it getting info directly from the system battery percent because it won't read any more accurate than 10's. The only way it could get even a relatively accurate percent is by the method I stated above because obviously most other battery meters are just repeating whatever the system is stating in 10's.
That's basically all I've gathered about how it works, I could be completely wrong and if I am I'd love to hear from someone who actually knows because I love to know how stuff works
thunderpack said:
I used Juice Defender on the atrix until recently. It worked well. I had to set to pull data for one minute every 15 minutes (and it wouldn't stop downloading at the end of the minute unless it was finished pulling what it wanted to. Sure I no longer got my email responded to the second I received it, but it made my battery last ~50% longer.
I also used setcpu to underclock when the battery was <20% and when the screen was off. Juice Defender has this feature for other phones, however, didn't seem to support underclocking on the Atrix.
Click to expand...
Click to collapse
can you share your settings for jd and setCPU when you used it? sounds like you had a tweaked out well.
Hello
I am the author of Battery Monitor (SIMMO Publications), if you're getting 1% values then your phone is either returning accurate values through the Android API, or there exists a system charge_counter file that is updated by the operating system. It does not estimate the value.
Motorola devices (Atrix, Droid2, DroidX), for some reason, choose to ignore the 1% values stored in this system file. The file is hidden, and not many people know about it (apparently). But it IS updated, so these 10% only Motorola devices are actually capable of 1% level changes.
I hope that helps.

Need ZIP for Battery Reporting Faulty Reading %

PROBLEM :-
On Defy Facebook Group --
Many of us are discussing about New/Replaced batteries Reporting Faulty Reading
Mostly all of us Have-- Motorola HF5X -- we don't if they are original OEM or not ---
Battery Charges OK somewhat around 4200 mV , but the problem starts after that , it starts to reduce % by % every Hour on standby .....
Like Just now my Battery is at 3% with 3773 mV , i know it lasts long , yesterday i played Youtube videos over wifi for 2.5 hours on 1% battery:laugh::laugh:,
its all because of faulty reporting , as battery has more Juice as it can been seen by mV.
A workaround has been mentioned by-Condrat Tiberiu
install battery monitor by sim2k from play store and set it to display % based on voltage. for a new battery range is 3150 to 4290mv. but you have to test and see the real range based on when it is fully charged and when it shuts down.
Click to expand...
Click to collapse
But if a Zip could be provided for such problem , We all will be thankful to who so ever help us ....
Thank You
well this is not really a workaround but mostly an add-on. the idea to search for such an app came to me while reading the "defy battery drops explained thread" and it's quite sad that this is the only one of its kind. so all credit goes to sim2k for making such a simple yet effective battery monitor based on voltage that can be used for accurate readings on li-ion batteries. sim2k made that monitor with 3rd party extended batteries in mind but as you can see it can be used for batteries that report fake values (aka cheap chinese clones with emulated controller).
for this to be a real workaround a developer has to figure how to hijack the android battery indicator and make it report % based on a voltage scale that can be manually calibrated for each individual battery and make it report values at a user set interval based on an average of the recorded values in that interval. that way the fluctuations should be reduced. and to make more real there should be some kind of conditions for the % to not go upper than the previous reported values but that will be hard to implement as voltage drops and goes back up based on usage and battery wear.
meanwhile this is the only solution that i can recommend for those who have problems with battery indicator. just install sim2k's battery monitor and learn to ignore the existing one.
if you want accurate reading based on voltage you must set the voltage range for your battery. to set the upper limit you need to charge to 100% (until green led turns on) and see what voltage is reported by the app. that is the voltage corresponding to a full charge and the upper end of the interval. the lower end should be around 3100mv more or less. again if you want to know for sure you have to watch the voltage when the phone turns off due to low battery. but i don't recommend anything lower than 3100 even if phone shuts down at 3000. the point is to have a preventive true 1% warning before the battery drops dead and to give you a little extra time to charge it back in order to prevent damaging the battery due to low voltage. full charge/discharge cycles should be avoided or done once a month at most. so you should charge the battery before it hits 3100mv (true 1%) preferably at true 15% or more. that should prolong the battery longevity and prevent extra wear.
Hey Many thanks that further clearing the things , atm i am using a widget which shows mV plus battery , and i am taking voltage reference for knowing the battery , like u said 3100 + mv time to charge up ,
apart from this issue using slimkat rom and its giving awesome battery backup

[Q] Battery remains on 1% for almost one full day

I am creating this thread after exploring the options documented in other similar threads, where I have posted the same issue.
My original battery was weak and I got a new one for my Defy green lens.
I saw that the phone stays at 1% for a long time and then tried several of the tools which remove the battery stats and claim to re-calibrate the battery.
After several such cycles of full 100% charge and discharge till power-off, the phone's standby time has exceeded 2.5 days - out of which it remains at 1% for almost one full day.
Note: I am running Quarx's 4.4.4 nightly.
What are the other things I can try? The phone is used only as standby so I don't mind wiping it off completely and putting stock ROM and observe again.
s_u_n said:
I am creating this thread after exploring the options documented in other similar threads, where I have posted the same issue.
My original battery was weak and I got a new one for my Defy green lens.
I saw that the phone stays at 1% for a long time and then tried several of the tools which remove the battery stats and claim to re-calibrate the battery.
After several such cycles of full 100% charge and discharge till power-off, the phone's standby time has exceeded 2.5 days - out of which it remains at 1% for almost one full day.
Note: I am running Quarx's 4.4.4 nightly.
What are the other things I can try? The phone is used only as standby so I don't mind wiping it off completely and putting stock ROM and observe again.
Click to expand...
Click to collapse
Dont worry . this happens to me also.. im too bought a battery of 600rs from ebay and battery stays 1 % for a day...
For an investigation i checked the battery voltage (at 100% charge voltage will be 4.2) when it drops to 1%, its nearly 3.9 and phone will keep working till voltage reduces to 3.5... im getting 2 days minimum backup of moderate use...
now to explain why 1% , this is an answer i gt from FB group .. "dnt expect Original battery at 600rs wen its actually cost 1200rs, they are actually replica of real and the so battery circuit send false info to phone, and phone calculates percentage remaining on this "
i tried to switch some cm7 version but in all battery drop at 1% happens.... so i ignored it and my defy still rocks in daily usage after 3 years ...
v2dare said:
Dont worry . this happens to me also.. im too bought a battery of 600rs from ebay and battery stays 1 % for a day...
For an investigation i checked the battery voltage (at 100% charge voltage will be 4.2) when it drops to 1%, its nearly 3.9 and phone will keep working till voltage reduces to 3.5... im getting 2 days minimum backup of moderate use...
now to explain why 1% , this is an answer i gt from FB group .. "dnt expect Original battery at 600rs wen its actually cost 1200rs, they are actually replica of real and the so battery circuit send false info to phone, and phone calculates percentage remaining on this "
Click to expand...
Click to collapse
I find it odd that this is not an original battery.
The battery charge is pretty good - more than 50 hours - no usage of the phone - but poor 2G connection/ weak signal.
I can contact the ebay vendor if that is the case, but I need to be sure first.
I have now put my original battery and I will see if it drains off in the same way or not.
s_u_n said:
I find it odd that this is not an original battery.
The battery charge is pretty good - more than 50 hours - no usage of the phone - but poor 2G connection/ weak signal.
I can contact the ebay vendor if that is the case, but I need to be sure first.
I have now put my original battery and I will see if it drains off in the same way or not.
Click to expand...
Click to collapse
i just said they arent original motorola one but a replica of original... how much u paid ?
u can find 600rs and 1200rs both on ebay ....
v2dare said:
i just said they arent original motorola one but a replica of original... how much u paid ?
u can find 600rs and 1200rs both on ebay ....
Click to expand...
Click to collapse
I paid Rs. 600.
I put my original battery (3 year old) and that does not show the 1% issue, though the battery life is less than 2 days on it in standby mode.
s_u_n said:
I paid Rs. 600.
I put my original battery (3 year old) and that does not show the 1% issue, though the battery life is less than 2 days on it in standby mode.
Click to expand...
Click to collapse
so are u gonna report the same to ebay seller and ask a refund?

Categories

Resources