yashsingh1/xdaforums huggingface dataset:
[Nexus One General] RogerPodacter:
I got ya, I misread your post.

Does anyone know what the value is being averaged (in my dmesg export I posted earlier) where it shows the current either positive or negative. It's a mAh number which I understand, followed by parentheses showing current average. What exactly is being averaged? Why when I wiped my battery stat file and immediately checked the dmesg log, there were still average values in parentheses displayed? Wouldn't that info have to be populated again after I wiped the stats?

Also, the OS has built-in hard coded battery numbers it uses whether you have a stats file or not. Where can I view this info in the OS system files? Anyone know?
[Nexus One General] khaytsus:
The way I understand the information from ACPI is the first number being the current being pulled in by the charge minus use, so 1000mAh coming in, 200mAh being used = 800mAh. The average I'm sure is some rolling average over the last N seconds or minutes, not an extended time period.

And the OS doesn't have built-in battery stats, all (complete) lithium batteries advertise their capacity to the device. Cheap OEM knock-offs often do not, however.
[Nexus One General] RogerPodacter:
i agree i think its a moving average of something, probably just current used over last 50 seconds or whatever, cause i noticed my current_now and the averaged number correlate pretty well together, when one goes up, the other generally goes up to a similar value.

so my point about batterystats.bin is that i have wiped that thing so many times, done bump charges, regular charges, and dmesg logs are always the same. and my battery still dies at 10%, 15% last night. so i dont think batterystats.bin does a damn thing. that's why i asked if anyone knew for sure.

i truly think the battery numbers are hard coded into the OS for each phone, in this case the nexus knows it uses a stock 1400mah battery. aftermarket batterys at higher capacity do not change the reading, so that's a good indication to me that its hard coded.
[Nexus One General] khaytsus:
Nah, it means they're cheap ass batteries that aren't "smart" and don't communicate with the phone. I certainly could be wrong, but generally the phone relies on the battery to tell it what size it is, or it figures it out from charge cycles. I've had devices that would get confused when I switched between two batteries of significant differences because it'd "tracked" that particular battery.
[Nexus One General] RogerPodacter:
I'm trying to figure out how the phone tells the battery meter what percentage to display. This week I've exported a TON of logs that I'm going to plot in excel. From briefly looking at the data it seems like the mAh value is used, which makes sense. For example 1358 mAh always goes from 100% to 99%. You can trace it all the way down the scale.

So my question to you guys is what is useful data to plot? So far I've tried plotting voltage vs time, mAh vs time, percentage vs time, and those were somewhat vague. Then I tried voltage vs mAh, then percentage vs mAh, and these seem to give more valuable info. I'd like to plot all 3 parameters against each other, but not sure the best way.

Oh, I've found the strangest thing. Each day I've been exporting my dmesg log every half hour or so. The values older in time that show up in the log are changing, like the time is getting thrown off the further back in time I look. Does anyone know what I'm talking about and why this happens?
[Nexus One General] khaytsus:
Pretty sure it goes by voltage.
[Nexus One General] Quantumstate:
Geez, the lack of self-discipline on this forum is discouraging. Mostly guessing, speculation, and politics.

Battery capacity cannot be hard-coded in the kernel or in a battery chip and relied on solely, as batteries age.

LiIon and Lipoly (which the N1 has) batteries can be interrogated by the system to report capacity, charge rate & level, temperature, etc. This is why there are multiple pins on the battery, not two.

The problem is aligning what the OS thinks, with the truth of the battery. HTC says:
[Nexus One General] RogerPodacter:
i finally did some plots last night, and it absolutely goes by mAh. voltage for the most part doesnt correlate at all from the graphs.

anyway last night i downloaded a hex editor program, and opened the batterystats.bin file, and it contains absolutely nothing about the battery except for each program which uses pwoer. so it populates the "battery use" section in our settings, nothing more.

however i did find another file in d/battery_log, and i opened it up, and there is contained all the information we see in dmesg log, voltage, mAh, %, all the actual values currently on the phone. so my battery happened to be at 44% when i exported that file, so all my values went down only to 44%. there is only one difference, there's an extra number we dont see in dmesg log and it was called dC which could have been discharge rate, or it could be 0.5C where the number can actually change, cause it DID change throughout the log file.

any thoughts? have we been wiping the wrong battery file this entire time?
[Nexus One General] RogerPodacter:
here's the first plot i did if anyone's interested. it is pretty obvious that the phone uses mAh to determine the battery percentage. this line is so straight that its pretty much a given. and this is with 2 charge and usage cycles plotted overtop of each other, which means there is literally zero deviation in the way the phone displays percentage.
[Nexus One General] RogerPodacter:
good luck with this one, its voltage vs mAh, but taken from one complete charge cycle, and then a partial discharge cycle.

EDIT: compared one day's data to the next day's, and they match up dead on. (another graph added)
[Nexus One General] khaytsus:
Yep, no question. Be interesting to see what happens with a quality extended battery or something.. but IIRC I saw someone (maybe this thread or another) that >1400 was 100% no matter what.
[Nexus One General] RogerPodacter:
Well we know what the graph will look life with an extended battery. We will see the same stock graph, and everything above 100% (all that extra capacity) will show pinned at 100%.

Too bad I didn't post the other graphs I made, cause I just left work for the day. But something totally strange happens when you graph mAh vs time, maybe someone can explain this one to me. What happens is each time you export the log, the readings that were already taken and logged get shifted in time. So the end result is all these slopes get shifted as time moves forward. For example I exported an hour ago and my phone was at 50% (748 mAh at 3789 volts) at 2pm, then 49% at 202pm (744 mAh at 3781volts), and so on down the line.

But now if I export the log again an hour later, those same EXACT readings, 50% (748 mAh at 3789 volts), then 49% (744 mAh at 3781volts), now have the timestamp of let's say 244pm and 246pm respectively. But Its the same actual readings.

But my phone was only ever at 50% at one point in time, not two. So if you graph this you get these moving slopes of data if that makes sense. Also, the new data collected in the last hour is added on to the log, and it shows accurate. But in an hour from now that current data will be time shifted as well.

Is this a memory leak? Or is this some battery algorithm? I should have posted that sucker cause I'm stuck on that one.
[Nexus One General] ram130:
See I told you guys I was not lying! Thats what I've been getting and it takes long to discharge like regular...Now you guys believe me :rolleyes:
[Nexus One General] clickwir:
Calculating a batteries remaining charge is a hard thing to do. It's never the same from charge to charge. Heat will affect it. Just simply reading mah isn't a 100% accurate way of telling how much longer you'll get out of it. Keeping a log/cache of how the battery has performed and lasted is part of figuring out the %.

When you plugin the phone, the battery will begin to charge. When it reaches a full-ish state (remember, it's slightly different each time) the phone will then stop charging the battery and run on battery till it drains to 95ish%. Then charge up again.

So what you are doing is taking a perfectly normal operation and messing with it. 1, you are topping it off before it was ready to be. This can reduce the effective life of the battery. You won't see it now, but given a year you will. 2, you are messing with the log/cache. It's not going to accurately show your % remaining, because you are jockying it around. It never gets a chance to really know your battery before you make it learn all over again.

It SEEMS like you are doing good, but you are simply wearing out your battery faster and giving yourself false readings.

No offense, but if this was the best way to get battery life... a lot more smarter people would be saying to do this and they aren't. There are billions of devices that use li-ion batteries... as much as you'd like to... you haven't stumbled upon some great li-ion battery charging secret.
[Nexus One General] RogerPodacter:
well whether i disagree or not (i do disagree), the point here is to just test it out and see what happens. i'm not saying everyone flash their phones with this change. that said, 1) this change would not make the phone top off before it normally would. it would top off exactly how it always does. 2) the log cache is not being touched at all. and it certainly isnt going to change the % or mAh reading.

this would simply remove the artificial limit that the battery driver imposes during charging while the phone is turned on. remember the phone charges fine turned off, and all battery statistics and logs are handled by the integrated maxim IC chip. this is not changing any of the EEEPROM registers, nothing.

i at least want to just test it out and see the results. that's all this is about.
[Nexus One General] khaytsus:
If you do make this change, watch for the battery getting warm and very carefully watch for any battery swelling.
[Nexus One General] deeren:
my findings:

first of all, i didnt follow the instructions like the author said. ...what i did is i charged my phone completely till 100% , switched it off and charged it for 3 mins , powered on and left on charge only for a further 2 mins before unplugging the cable.. well surprisingly, from 1 a.m till 8 a.m (7 hours) , the battery level went from 100% to 97 % ONLY. usually with enom's rom, it usually discharges at a rate of 1% per hour.
[Nexus One General] RogerPodacter:
Heh no I'm not actually making this change. I think it was just a very unique coincidence that this code was that way. But I do still think that if this were the current code it would be fine to make the change as the battery circuit protects the charge sequence.who knows though.
[Nexus One General] flarbear:
Actually, all 3 conditions have to hold, so it needs to be less than 80mA and it also needs to read 100%.

According to the Battery University the battery should never be charged lower than 3% of its rated current. I didn't look around too far for a definition of "rated current", but the preceding discussion and the graph on that page seem to indicate that it is related to the mAh rating of the battery. In this case, that would suggest that this value should never get below 1400*3% == 42mA.

What's also odd here is that they factor in the % rating of the battery. Over time, as the cell ages, "full" will drop and so if the 100% factor in those statistics doesn't drop then it could lead to overcharging the battery since the charging algorithm will insist on continuing to charge until the stats say 100%. I'm not sure I'm happy about that.

My recommendation would be to pour over that web page on the Battery University site, verify my 3% guess above and then perhaps consider using that value to stop the charging, and perhaps removing the % condition as well. I'd also like to see the % scale recalculated whenever the shutoff occurs due to the mA measurement. "If it was >CUTOFF and it now is <CUTOFF, then set 100% reading to current mAh capacity", but only do this reevaluation if the transition occurred while on the current charge cycle.

Presuming that this code can't override the battery's circuit. Hopefully that's true, but it wouldn't be wise to go below the 3% mark voluntarily.
[Nexus One General] Macrophage001:
lol why can't you guys just charge the phone 100% and when its low charge it again? if at work, get a charger. if in the car, get a charger. its actually not that bad considering how quick the battery charges.

It seems like all of this trying to find a way to have longer battery life is a waste of time. The battery learns by your usage so it'll start discharging less and less with use..ironic but yeah lol just let it do it's own thing..

just my .02$
[Nexus One General] RogerPodacter:
Unfortunately we hit a snag. I think the conversation continued over in the battery calibration thread with lots more info.however I still have some ideas why this still happens but we can't find the updated code that implements this condition. its just gone, but the charge still stops at 80 mA.
[Nexus One General] Quantumstate:
Several ppl here do not seem to understand that the battery has a chip to moderate all conditions objected to.

Thank you Roger, for finding the actual offending code. I've filed a bug, crediting you of course.
[Nexus One General] RogerPodacter:
Well turns out that code has been changed in newer kernels, so now we're not sure what's going on, even though the charger does still shut off at 80 mA. but that code is gone.

So I'd be very curious what they say in the bug report, maybe get some useful info.I'm thinking it could just be a huge coincidence.

And yes the battery does all reporting and calculations without a doubt
[Nexus One General] ram130:
and the non refundable time...;):eek:
[Nexus One General] Quantumstate:
Well the bug with all your valuable information, has been unceremoniously merged into an old bug which has been discounted out-of-hand.

Looks like it'll be ignored.
[Nexus One General] RogerPodacter:
Its not about charging the phone, its just fun to tweak and figure stuff out;).
[Nexus One General] RogerPodacter:
At least if we learned anything from all this, is that the battery itself stores all the info. And that wiping battery stats from recovery this entire time has been doing nothing but deleting the wrong file.

Maybe that's the answer, could the recovery be modified to access the correct battery info in the same way they are doing in the palm pre thread?
[Nexus One General] Quantumstate:
The battery stores very little info; it moderates its own charge to optimal. It can be interrogated, but not for historical info.

The OS is a slimey layer in the way, in this case it seems.
[Nexus One General] Onemoa:
I dont understand this at all, when you guys say your battery does not drop even a few % with in a hour or two? I did a test the other day, I lost about 5% an hour when I am not using the phone at all. and it seems the % stays longer when the battery is lower like the the 40% area, that is when it drops the slowest but from about 98% thats the max charge I get, to 50%, it drops like I said somewhere around 5% an hour.. I will have a fully charge battery go and look at it an hour later and its gone. same thing with over night. I do not use live walpaper since that really drains the battery and I have gps off 3g off since where I live I have really bad 3g and I have wifi on. screen is on either lowest or mid setting all my sycning is off besides my gmail. anyone have any tips for me on this? is it ok to reboot your phone? as i do it at least once every few days and I did let my battery die all the way once since someone said it is good to do every month or so.. but that didnt seem to make a difference or at least somthing I noticed. I get full days use out of the phone and I am happy with the battery life since I do use it a lot some days its just I dont understand why it goes so fast when im not using it. and another thing is it ok to top it off, like lets say its at 98% I plug it back in and let it get to 100% it does not stay there for long at all but at least I can reach it if I do that..
[Nexus One General] RellikZephyr:
That would be about right, as far as is known 40% is the sweet spot for lithium ion batteries
[Vibrant General] m3ta1head:
Had a quick photoshoot.
[Vibrant General] androidmonkey:
nice pr0n.... :D
[Vibrant General] ironlood:
W0w ur pr0n h4s turn3d my phone onz
[Vibrant General] zerosource:
Oh, this made me laugh so bad. :D:D:D
[Vibrant General] jn_vista:
Wow that things got some crazy wood going on there...
[Vibrant General] Blueman101:
Now if only the Vibrant didn't remind me of an iphone whenever i looked at it i might be "excited" right now.
[Vibrant General] engineer14:
you have to move on man. Learn to love again!!!
[Vibrant General] koreanjhee:
Just enjoy the new pr0n man!

I ams teh savings. High quality pr0n +1
[Vibrant General] t1n0m3n:
Was the pr0n taken by another SGS?

SGS on SGS action?

That's the real hardcore stuff.
[Vibrant General] jayzusfk:
Mmmm. That Vibrant is totally asking for it.

Nice curves.
[Vibrant General] bahnburner:
I'm glad I'm not the only one that uses Top Gear to show off the screen on my phone.:D
[Vibrant General] m3ta1head:
Top Gear rules man. I am so depressed that the season is already over! :(
[Vibrant General] denny_1986:
fap fap

finally got my gps to point north :D
[Vibrant General] mrxela:
I had to threaten co-workers with dispensing ***** slaps if anyone asked me again if i had the new iphone.
[Vibrant General] VICosPhi:
LOL :D

This is one of the BEST threads I've read in sometime. Great idea and execution OP and very funny comments everyone ;)
[Hero CDMA Q&A, Help & Troubleshooting] grandpasghost:
Looking to settle down for a reliable daily rom. Wifi tether and SetCPU Over Clocking are the features I want, but the only one I've tried that does that without crashing is Buffed.

Its one of the best looking but I just learned AOSP's wont work with HTC sync so im contact-less and they also dont have the HTC and Sprint apps.

I love it but apparently most AOSP's don't work with HTC Sync so ive lost my contacts and the release doesnt don't include some sprint and HTC apps.

Suggestions please? Theme and reliability a plus.

Thanks! :D
[Hero CDMA Q&A, Help & Troubleshooting] Keithgordon:
Export your contacts from Outlook to a vcard; comma seperated values. Log into your google email account at google.com and import vcard, I would export from outlook to your desktop so its easy to find, once that is done, go to your contacts on your phone and sync them with your google account. the beauty is that they update automatically from that point on and you never have to worry about it again.
[Hero CDMA Q&A, Help & Troubleshooting] grandpasghost:
SWEET!! This is looking good. Thanks for the advice, I've tried most of current roms /AOSPs and i Really didn't want to leave Buffed, the animations and theme are top notch.

Thanks!
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] dean56:
i can't believe i am asking such a simple question but i have unlocked my T-Mobile HD2 and will be in europe (greece) and wanted to add the data connection while i am there. anyone know how to do this?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mark Crouch:
Presumably you'll be buying a SIM when you get to Greece?? If so, all you would need to do after inserting the Greek SIM, is to go to Start | Settings | Connections | Connection Setup and pick the country / mobile operator you're using and it should (famous last words :)) configure all the settings for you.

One thing worth mentioning..... it's probably worth loading the Connection Setup application before you go, select Menu | Update database, then make sure "Update...settings of all operators" is selected, then tap "Update Database". That should give you the latest and greatest settings for when you get to Greece!!

Hope that helps,

Mark.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
I may be wrong here, but im fairly sure the tmous (@OP, you did mean a tmous, right? ) only has the connection settings for tmous. Certainly people in the tmous thread using it on at&t have to manually enter the settings. (or use the following...)

Alternatively, hunt around for the 'connectionsetup.cab' cab from the regular leo that is floating around the forum, and run that when the new sim is in the phone.

If you didnt mean tmous, then just run the connection setup you already have, as Mark said above.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mark Crouch:
@samsamuel - good point about the TmoUS HD2 only having their own settings :o forgot about that!! The utility is available in just about every ROM I've ever flashed, so I didn't give it a second thought!!

The connection setup CAB file is definitely the way to go (even if you only d/l it to your SD card in readiness for your trip).

Mark.
[Captivate General] J4CC3B:
I am in no way going to point out people because that is wrong but could everyone try to have a little more organization with their post? I know that mods will agree when I say that there are questions in the development section that should not be there :-P. And please search before you post a new topic because I can think on a couple of simple issues there are three or four post on the issue. I love trying to lend help to people and it is just a lot easier if I only have to post how to help with battery life on one thread instead of four. And once again, I'm not trying to upset people, I think it would benefit the captivate and even galaxy s users as a whole if we used a little better organization skills :-D
[Captivate General] ptc62:
True, what might help is a Q&A or FAQ stickied with common questions, or howto's... that not only explain howto, or answer the questions but also link to current threads that discuss the topic in greater detail...
[Captivate General] J4CC3B:
I agree. A q&a would help a lot . Or even possibly a whole how to section for simple things like optimization.
[EVO 4G Q&A, Help & Troubleshooting] edisepic:
I have the leaked 2.2 if I hard reset from the settings will it have 2.2 again or 2.1 Ik its a noob question but I'm still getting used to Android

Thanks in advance
[EVO 4G Q&A, Help & Troubleshooting] DanBergundy:
2.2 still
[General Questions and Answers] Deleted member 1397390:
Hey! So I want to migrate my contacts from my Treo 700wx running Windows Mobile 5 to my new myTouch 3G.

One problem

: I can't find my Treo's data transfer cable. Is there any other way I can sync my contacts to Outlook?

If you know other methods in doing this, please share.

Thanks!
[General Questions and Answers] zk_69:
use Sprite Migrate http://www.spritesoftware.com/products/migrate/how-does-it-work-
[General Questions and Answers] jahnile:
You can also try using a CSV file, upload to google/Gmail and then on your new phone, good luck...
[EVO 4G Accessories] dwss:
So, i been reading here for people that have found some docks for the cars and what not... not satisfied with what i read and have seen i went on a personal search.

Here is what i found, and i think works great.

http://www.amazon.com/gp/product/B0..._m=ATVPDKIKX0DER&pf_rd_r=047DXRZ149CSNC4QZ200

It opens just far enough for the evo, snugly fit, swivels, pretty much all you want for a car dock.

If you want pictures ask and i'll take some later.:eek:
[EVO 4G Accessories] TickLe MY eLMo:
TOO BIG! I hate all of those types of car docks, soundgate m2 is the way to go baby, will save ya 15 bucks as well(more possibly if that one doesn't have free shipping)!!
[EVO 4G Accessories] dwss:
i went with this one because of the FM transmitter on it. All other options require for a hanging transmitter.

Keep in mind i dont have a car with bluetooth connectivity so this was the best that i thought would do the job... so far its great. This summer vacation was fun and easy to get around because of this little(big) gadget.
[EVO 4G Accessories] TickLe MY eLMo:
Yeah that's true, might have to get my own at some point, might just go for a radio that has bluetooth connectivity though because my experience with fm transmitters have sucked in the past, but maybe that's cause i live in a area with a LOT of radio stations.