yashsingh1/xdaforums huggingface dataset:
[Nexus S General] RogerPodacter:
so i'll expand on why i think this is bull crap. my "1000 dollar bet" was an obvious set up, i've seen all the talk about bump charging and all. i was able to "hack" the nexus one battery by editing its driver, and got it included into cyanogen. since then, we wrote an app to go along with this.

in the n1's battery are about 80 memory address registers to control all of the batt parameters. one of them, register 0x65, is the minimum charge current register. it was set to <80mA to terminate the charging indicating battery full condition. we experimented setting this to different values such as <40mA and <20mA. this squeezes out extra charge into the battery. it simulates "bump charging".

the reason bump charging works, is because when the device is powered up, the battery driver obeys these registers, including reg 0x65, so that the charging stops at exactly 80mA. your logs confirm this as we've found out over in the link in my thread. when you lower it, you get more juice into the battery. when you turn the device off and "bump charge" it, the registers are ignored because the device is powered down. so it literally lets current draw go to zero, which is why more juice goes into the battery.

with our app, we can now accomplish this same thing with the device on, as many of us have done already. but in no way is this "for safety reasons or design". its simply an industry standard that a li-ion battery is considered "full" at C/20 where C is the mAh capacity of the cell in question. you can find this info out in all the technical data sheets linked in my thread. this helps to make the charging time a nice 2.5 to 3 hours, nothing more.

its impossible to over charge a li-ion battery. the current draw simply gets lower and lower till it is full and accepts no more charge. there is no safety reason to ever stop charging the battery, it doesnt work like that. anyway if you guys want all the details just read the thread;).
[Nexus S General] amjad_2020:
Battery never full charge!!

Hi i have Nexus S from T-mobile when i charge it i tern it off and i leave it all night and in the morning i tern it on and it say 96 % or 95 % only it don't give me 99% or 100 % is that normal ?
[Nexus S General] shrivelfig:
Yes.

yessssss
[Nexus S General] RogerPodacter:
Many say this is normal behavior, but looking at the battery driver code, this seems to be because of voltage issues which is used to determine battery percentage. A bug I'd say.
[Nexus S General] robstunner:
Agreed.

Try turning your phone off and letting it charge for a little bit. I guarantee it will hit 100%
[Nexus S General] amjad_2020:
on my Motorola Milestone XT720 after i charge full it give me 100% then start to go to 99% ........
[Nexus S General] AllGamer:
that's why this issue is clasified as a BUG

i can get 100% on SNS as well

i just need to charge it to full with the screen off

then keep it on the plug

as soon as you turn it on, it drops from 100% to 9X%

and if you unplug it, drops even more

same if you use a stand alone battery charger, when you plug the battery in, it shows up as 100%

then a few seconds later it drops to like 98% 97% or less
[Nexus S General] jlevy73:
Will the battery utility app you worked on for the N1 work with this. That app allowed me a solid extra 10% of battery life. Would be nice to get that to work on this device.
[Nexus S General] RogerPodacter:
maybe one of you could check your voltage before removing the charger in the morning. full charge for the nexus s is supposed to be 4.176 volts according to source.

perhaps you could wake up, check the volt and percentage before unplugging, then unplug and immediately check the voltage and percent, and see if there is any correlation or whatever weirdness there.
[Nexus S General] RogerPodacter:
i've been looking into it but i dont think so. the battery is a totally different fuel gauge chip model and all. if we could crack the S in the same way then maybe support could be added, but looking thru the code i'm not sure yet.

for example the nexus s battery does not have an "age" register, at least that i can see. maybe an equivalent is there and just needs to be found.
[Nexus S General] kenvan19:
I'll charge my phone to full right now. Just at 80%. Will update with the "full" charge. I will note that on my epic, it registered as full around 4000mV but would continue to charge past that to 4198mV

Edit: While charging the voltage seems to jump around a lot. Its very strange.
[Nexus S General] NVMENOR:
Some readings:

100% 4150 mV connected

95% 4128 mV just after unplug

92% 4125 mV

92% 4095 mV

90% 4100 mV awake after some time / lower percentage, higher voltage than before

While sleeping, percentage goes down but voltage seems to rise. This is even more evident if you stress the phone heavily and then let it sleep for some time.
[Nexus S General] kenvan19:
Oddly enough, I'm currently sitting at 4190mV at 98% while plugged in.
[Nexus S General] kenvan19:
While on charger: 4191mV (100%)

After a few minutes: 4173mV (100%)

After an hour: 4072mV (93%)

2 hours: 4100mV (90%)

Will continue updating.

Edit: I should probably be doing this on a stock rom, or one at least not clocked at 1.5GHz with messed up voltages lol. That did not occur to me. I'll flash back to stock and start my counter over in the morning.
[Nexus S General] RogerPodacter:
Ok so I just did a whole bunch of digging thru the source code and reading the data sheets, same as how the nexus one project started. The nexus s fuel gauge is explained, though it uses a different method to determine percent. I'll post details when I get home shortly.

Oh and the bad news is my app won't work as it seems the nexus s only has 6 memory registers, voltage, rcomp, and a few others. So we can't do any of the cool stuff we did with the nexus one age learn cycles.

Details shortly!
[Nexus S General] jlevy73:
Thanks Roger, look forward to it. Appreciate you digging through the code.
[Nexus S General] kenvan19:
Awesome man, I've never heard of your battery app but I'm excited to see what you can do!
[Nexus S General] shrivelfig:
Well, it is, you know, a different phone. My Ford Mondeo charges to 105% :p

Seriously, why is this a problem? If the OCD is so strong, let's just recalibrate the gauge so that the current 96% (and up) will be shown as 100%. Problem solved. :cool:

If this had been done from the very beginning, nobody would have known, and nobody would have complained :rolleyes:
[Nexus S General] RogerPodacter:
OK well here's what i found to the best of my ability. there's not really any magic answer i have though. but compared to what we did with the n1 its at least interesting. so, i can only see 2 drivers in the nexus s source, max17040_battery.c and s5pc110_battery.c.

http://android.git.kernel.org/?p=ke...10e88aaeaf651520e5f3870000c435c9033c7;hb=HEAD

reading thru what data sheets i could find, it does seem to rely on some kind of "relaxed voltage state" to determine state of charge (SOC, or percent). but they dont give the algorithm used, like we have with the n1. but the n1 uses a different method variation of coulomb counting.

with the nexus one we were able to hack into the battery's memory chip, and read and write to the register address; there are something like 80 of them i believe. but it seems the nexus s uses a lower cost pack with 6 registers, quoted below. that's kinda not the point though.

i think the main point is that reading thru the data sheet, this drop in SOC from 100% to 97% definitely seems to be inherent to the type of method used relating to using voltage rather than coulomb counting and tracking the current thru sense resistor.

data sheet

http://datasheets.maxim-ic.com/en/ds/MAX17040-MAX17041.pdf

so it's a trade off, not using current counting (like the n1).

to me this shows that this "algorithm" definitely takes voltage to convert to SOC, rather than current counting like many other phones (n1), and therefore voltage drop could be an issue.

so if that is the battery model (the galaxy tab uses this one, max17042 i think) then there's not much we can do like we did with the nexus one battery calibrator app. oh well:(

however there's also the other driver i mentioned which i think is likely the actual one used, for s5pc110 systems like hummingbird, and again brings us back to voltage table to determine SOC. below from the source code shows samsung using voltage table as SOC reference. i'd wager this is the root of the 100 to 97 drop.

i'm still a bit lost on exactly what is being used though. i wish i had an S to test myself. my goal i wish we could get the calibrator app to work on the nexus s. the thing we could get working is the real time graphing voltage vs current, if we edited the driver.

i guess the end result is that the nexus s doesnt have a cool battery chip we can hack into, its a low cost chip with rather basic functions. prob why we see these SOC dropping issues here and there.
[Nexus S General] RogerPodacter:
think i found what is happening. check this out:

http://android.git.kernel.org/?p=ke...it;h=f7ba01b3b0c31750ab0cf5516d6914be52060144

seems that the SOC will be reported as "full" (100%) once the charge full flag is set.

exactly at line 194 of the driver

http://android.git.kernel.org/?p=ke...b7538ce298e3b4a0f3e73b58784e503720139;hb=HEAD

if (chg->bat_info.batt_is_full)
194 val->intval = 100;

from the voltage table earlier, we can see BATT_FULL volt is 4.10, so it the full flag could get marked as true too early, which would cause line 194 to set the SOC to 100%.

someone needs to comment that line 194 out, compile, and see what changes. just for fun at least.
[Nexus S General] mak213:
its not about calibration any of the etc. its a battery life saving technique used by everyone now a days ex. HTC,motorola etc. it either fully charges to 100% then stops till it hits 94-97% then restarts process otherwise if it was to keep charging after 100% your battery life will get ruined for example like a laptop if it was to stay charged 24/7 then you would go out without charger your laptop would die rather quickly then usual.
[Nexus S General] RogerPodacter:
But other phones don't have this problem.

Besides, the manufacturer would just make the 100% point lower to this "safe" point as everyone is saying, so the 0-100 range would be normal. They wouldn't make it higher than necessary like this causing it to never show 100%. It's just some inherent bug or issue with the method in the driver and specific fuel gauge chip used.
[Nexus S General] mak213:
its not so much as a "safe point", defeats the purpose the phone will always be receiving charge to maintain the "safe point" charge witch in this case 97% witch will be the sammmee thing as it being 100% waiting to drop 1% and recharge doesnt matter where the max is, its just stopping the phone from receiving charge at the max for so long..
[Nexus S General] ghost010:
Nexus S 100% charged after un-plug[no more 97% un-plug]

[NO CUSTOM ROM]

oke last 2/3 days i charged my ns with

a AC adapter that looks like this(minus the REd LED)

and since im using that adapter,im getting 100% charge when un-pluged

and it stays like that for a while until it turns 99%!

so what happened?

did this adapter work better than the NS adapter form the box?

or did the battery life got better?

i almost have my NS a month now.

i though id give you guy's a head's up on that.

i will post a picture later of my Ns screen with 100%
[Nexus S General] Smilez_c:
Where did you purchse this from?
[Nexus S General] gogol:
Is this charger fast?

Next time, please measure how fast it is ... something like 1 hour = X% increase.

Original NS charger = 6++ hours to reach from 4% to 100%

HTC charger = 4+ hours
[Nexus S General] DKYang:
Since everyone is asking for stats. Use Battery Graph to record it so you don't have to come back to your phone every hour or whatever.
[Nexus S General] xrizwan:
So using my NS charger over night n unplugging it in the morning battery would always say 97% even when it should it was fully charged. I used an old Motorla charger and after a full night charger after unpluggin it said 99% so I will post later after seeing how the battery life goes
[Nexus S General] xrizwan:
So like after 45 min data was on and watched a 7 min youtube vid emailing for 2 min nothing a few mins of browsing the battery is down from 99% to 87% which is a huge drop compared to my use on other days with the NS charger
[Nexus S General] ghost010:
bought it at Mycom(in the Netherlands) but the adapter brand is

icidu
[Nexus S General] NVMENOR:
2.3.3 - Different behavior?

After 2.3.3 my NS reports full charge status at 97% and it doesn’t reset battery graphic, unplugging cable drops percentage to 96% (which is normal using wall charger), I have to connect it again and let it charge a few minutes to start with a fresh graphic. Weird thing here is that the phone never reaches 100%.

Has anyone noticed this after updating to 2.3.3? Is this new to 2.3.3? Or maybe I have a problem with the “batterystats.bin” file.
[Nexus S General] hutzdani:
Dude its how its supposed to be, your just being anal about it, install 8 battery apps on your home screen and charge it from the mains untill it says full / charged ( depending on widget ) and it will revert to below 98% every time, even when its on charge and you look at the battery stats in the about phone setting it will drop to below 98% the Millisecond you remove the cable.

The Batterys get to about 95% charged and then trickle charge about the amount of power the phone is using in the standby mode with screen off e.c.t, no matter what you do you'r never see 100% charge for more than 0.000000001 sec once you have unplugged the lead or seen it on an widget e.c.t ( Unless you bump charge and thats going to eventually mess up your battery )

SO TAKE THE CONTENTS OF ALL THE TOPICS YOU HAVE READ, AND DROP IT :)
[Nexus S General] CB620:
2.3.3 solved that problem for me
[Nexus S General] kenvan19:
I'm having some even more strange battery performance. So over the past couple days my phone has charged to 97% then stopped charging. By that, I don't mean that it started discharging but rather it stopped showing any indication of charging and stayed at 97%. To try and see what was going on I decided to "calibrate" my battery. I absolutely killed it yesterday and plugged it in over night. This morning when I woke up, it was at the usual 97% so I unplugged and replugged it back in. I left it for a few hours and came back and booted it up to find it was at 98%. Odd because it charged from 30% to 97% the other night in 2.5 hours. So I powered it off again and checked back another few hours later. This time it had dropped to 97%. What the hell is going on here. I've decided to forego the calibrating and just see what the hell happens when I leave it on and plugged in. Its currently back at 98%

According to battery graph it did hit 100% about 2 hours ago for about 10 minutes then dropped back down to 98%. I'm completely baffled here...

So it hit 99% and stopped charging. Again, its not just saying fully charged, it actually is acting as though it is unplugged yet not discharging battery...Roger please help lol
[Nexus S General] NVMENOR:
That happens to me with the new update 2.3.3, however, i haven't noticed any loss of performance, battery life is same as before. post#110
[Nexus S General] CB620:
Battery charges to a hundred and stays at a hundred when you unplug. No glitch. On 2.3.3
[Nexus S General] rocketragz:
after 2.3.3 my battery also will not charge to 100%.
[Nexus S General] CB620:
sorry to hear that
[Nexus S General] RogerPodacter:
I still think it all is related to some kind of voltage drop and the voltage table shown in the battery driver. also, there is a line of code in the battery driver that tells the phone that once full charge is reached, 100%, to set the SoC (state of charge) to match.

i cant put my finger on it exactly, but that's where my money is at the moment. you can even see a change made to the driver related to this exact issue:

http://android.git.kernel.org/?p=ke...it;h=f7ba01b3b0c31750ab0cf5516d6914be52060144
[Nexus S General] rocketragz:
yeah it's not much of a big deal to me. the battery stats still reset as if it was fully charged and the battery life is still great. i'm sure it will be fixed through an update eventually.
[HD2 Windows Mobile 6.5 Themes and Apps] maopost:
anyone has a workable roaming manager for hd2?

my cellphone carrier is tmobile, but i live in the "unicel" area which means the phone constantly switch from tmo to unicel for a better signal. But his will drain the battery very soon. i can manually stick with unicel signal by "all setting > personal > phone> network > manual select network".

i just wondering is there any program that make this easier? or any program can pick the stronger singnal for the phone. i guess a program called "roaming manager" will do this job but i did not find it.

thanks for any clue on this matter.
[HD2 Windows Mobile 6.5 Themes and Apps] maopost:
pump. any suggestions?
[HD2 Windows Mobile 6.5 Themes and Apps] maopost:
pump again!
[Hero CDMA General] raymond4:
Can someone please explain to me what is the Sprint spending limit program
[Hero CDMA General] spiritcrusher33:
short answer its a limit on those with either bad credit or no credit.. In the beginning it was to help those who would go over their minutes etc.. so they wouldnt have a huge bill they couldnt pay.. or something like that..basicly to help sprint keep things under control.. now if you don't use the direct deposit while on the spending limit program you have a 4.99 a month fee. which I feel is stupid.but again to cover the high risk people...

or something like that.lol
[Hero CDMA General] raymond4:
Can you also use it to pay the bill
[Hero CDMA General] il Duce:
I am now going to state the RIDICULOUSLY obvious: call sprint or go here, this is a developer website, not customer support.
[Hero CDMA General] raymond4:
Obviously I did all of that it wasn't explained to me right. So I decided to asked here I thought maybe someone in here could help me thanks jackass
[Hero CDMA General] il Duce:
Alright, so I'm a jack&#%, fine. But seriously, I just went to google and tried "sprint spending limit" and wouldn't you know, a wealth of info was at my fingertips. I then for fun googled "sprint help forum" and again, bunches of help, none of them were xda, period. Call me what you like, but I think if you were less angry with me and thought about it, you just might agree with me. I mean you no harm or ill, seriously, just search next time, and have some patience. Have a good holiday.
[Hero CDMA General] raymond4:
I did searched and called my sprint store they couldn't help me and I called the customer service number and they didn't know what I was talking about that's why I asked in here I thought someone could help me. I do apologize for calling you a jackass sorry
[Hero CDMA General] user7618:
Now, the first part of this post had me shaking my head and saying "Il Duce, will you ever learn?!" Then I got to the second half and was like ok, that's better. Maybe something resembling calm is filtering through all the rage. :D

-----

Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
[Hero CDMA General] il Duce:
I really am working on it.... Maybe by the end of the year I'll be "nice" ....
[Hero CDMA General] user7618:
Let's not put the cart before the horses here. Slowly, grasshopper. Harness the rage and redirect it.

-----

Sent from my CDMA Hero. I got some hot Froyo-on-Hero action here!
[Hero CDMA General] Bierce22:
Spiritcrusher has it rite radio shack did that to me when I switched from tmo to sprint and I got my hero my spending is limited to 200$ since I'm a new customer and I really don't have any credit to be honest so in other words when downloading apps using data or minutes it wont let me go over 200$ on my bill
[myTouch 3G, Magic General] mykail:
Hello everyone.

I used search but couldn't find it. Probably because search doesn't take under consideration 3letter words like "new", "old" and "spl".

I'm running:

sapphire pvt 32a eng s-off h

hboot-1.76.2007 (sapp10000)

cpld-12

radio-6.35.08.29

aug 21 2009, 18:19:15

1.6.2 AmonRA recovery.

Can I revert to old Radio and keep new SPL?

What should be the order of downgrade? Radio first and SPL later or the other way around?

Should I maybe downgrade them together and later upgrade SPL back to 1.76?

Any pros/cons of running old radio and new SPL? Is custom recovery a game changer in this process? Should I go back to stock recovery?

Thanks for your help. Cheers.
[myTouch 3G, Magic General] mumilover:
NO.. the spl and radio is a combo and cannot be interchanged.

Download my fastboot commander tool (magic version, check my signature) and it will do it for you the easy way :0)
[myTouch 3G, Magic General] mykail:
And what if i saw in someones signature 3.22 radio and 1.76 spl ? just an error or a possibility?
[myTouch 3G, Magic General] mumilover:
Ask that someone...

But highly a mistake!
[myTouch 3G, Magic General] mykail:
Does recovery version has to be old too? Or can i just keep the new one?
[myTouch 3G, Magic General] keinengel:
You have to change your recovery too, because switching the radio alters your phones partitioning scheme, thus making the recovery crash.
[myTouch 3G, Magic General] mykail:
thanks for the info. will do as told.
[Desire Q&A, Help & Troubleshooting] collarian:
Hi guys. Sorry if this is a dumb question, but how do I install the 2.3 Android while i have the 2.2? Where to download and how to install it?
[Desire Q&A, Help & Troubleshooting] EddyOS:
You can't as it's currently for the Nexus S and soon to be the Nexus One

You can get a cutom made 2.3 ROM by looking at Oxygen in the ROM forum
[Desire Q&A, Help & Troubleshooting] collarian:
Thanks. Well since I don't know the risks of "rooting" or installing custom roms, I want to ask you: is it worth it? Do I lose my phones warranty?
[Desire Q&A, Help & Troubleshooting] TheGhost1233:
At this point the risk of rooting is minimal (but still there is a risk) and there are good tutorial you can use. Especially this one: Turkeys' Ultimate Guide to Root Desire.

Technicality you lose your warranty when you root your phone but there are ways to revert that. However that is not possible on every phone and depends on the branding and software version.

There is some great development on the gingerbread roms, but they don't full work jet, so at this point I would not root my device just for a gingerbread rom.

On the other hand there are also enough other great froyo roms to try out.

But first thing to do is write down your software info and check if you can find a matching RUU here.
[Captivate General] jdbeitz:
Hey all!

I'm just curious to see if there is any interest out there for an RSS torrent feed or something of that sort for the captivate ROM's. I have plenty of HDD space and bandwidth to be able to handle this :D . Just let me know what you all think. If we get enough people to do it, we can get around the slow megauplaod speeds. Just curious!! Let me know!
[Captivate General] halo45121:
I'd gladly join in, but I don't think there are enough people here that would want to use torrents.
[Captivate General] fatbas202:
I'm up for helping the developers in any way. If torrents help then I'm in.
[Captivate General] jdbeitz:
Ok, I'm slowly getting the torrents up.. download and start seeding!!

http://www.kickasstorrents.com/user/Dev_Torrents/uploads/
[Captivate Q&A, Help & Troubleshooting] Colton5419:
I know it is discussed often, but I have run into a problem with Kies Mini when trying to update a fresh JF6 install to JH7.

Are others having the issue where after recognizing the device, and telling you an upgrade is available - when you agree to terms and it is about to download the files it tells you that a connection to the servers cannot be made? :confused:
[Captivate Q&A, Help & Troubleshooting] Colton5419:
EDIT: I was able to solve the problem by installing kies mini on my netbook and NOT allowing it to update to the newer version.

It took a second attempt but eventually it started to download.