yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] tmotechsupport:
Battery issues

Ive done some lurking and reading, I’m not posting to complain or ask why exactly. Im actually looking for a place to start troubleshooting.

My battery with moderate to heavy use lasts me barely 5 hours

( I may not be calibrated with you guys though, to me 6-8 hours with moderate to heavy use deosnt seem right-im not sure if I should be getting better battery life or not.)

My setup is AmeriCanAndroid AOSP HD2 GB233 CM7 ROM latest build no mods

-10% or less on backlight

-Wifi off when im not using it

-bluetooth never gets used

-turning off my data and toggling 2G whenever possible

-Widgets are - process monitor / executive assistant / Atomarss / colorize widget / battery monitor widget / whats left widget / data watcher

-having my widgets update at the soonest every 15 min for 1- for the rest every 3 hours

-3 emails - Gmail /Yahoo / MSN

-the governor is setup for on demand with stock overclock

My usage is pretty consistent- internet 10-20 times easy for 3-5 min each, 1 or 2 emails a day 20 texts send and received, listen to music for maybe an hour or so total.

I realize that is a lot and if that is the case then I will continue to carry 2 batteries and have a charger everywhere I go. My ONLY thing is it consumes battery just sitting still with no use and the *radios off* :confused:

My question is this where should I start troubleshooting? From reading the thread I seem to be the exception with people getting 18 to almost 30 hours of light use. I looked into undervolting and it seemed like it was specific to certain builds or phones so I nixed that.

Are there any other trouble shooting steps I should look at? Maybe the cache size on my SD card or is there an app to find a battery leak issue?

On the plus side it does seem like the battery in the latest build is about 2 hours better than the last build. Either way Im grateful, this has by far been the best experience ive had with an SD build. Please keep up the good work.

*FYI for those who depend on the flashlight like I do I setup a lock screen gesture so I wouldnt need a widget since the option isnt in the notification buttons. Hope that helps

Thanks for reading my book lol :p
[HD2 Android SD Development] shamez23:
With the kind of use you describe and the battery saving measures you take you should be able to get a full day out of your battery.

Easiest explanation would be, your battery is getting old.

Another possibility would be one of the apps you use puts a constant strain on your battery. Likely culprit would be a messenger app or something similar, that wants to keep a constant connection to a server.

It's also possible that something went wrong with the installation. Impossible to say, what exactly that would be. Computers and their software... .

You should get CurrentWidget from the Android market and check the battery drain. Up to 10mA in standby can be considered as normal.

Formatting your sd card and doing a fresh instal might be a good idea. Although it won't tell you why your current installation gives you high drain, it is very likely to solve your problem. And it is faster than searching for any bugs.
[HD2 Android SD Development] copenhagen:
update tonight.

-found.. cause of freeze on shutdown. (took a while for it to happen to me.. but I think I've got it licked) also

sorry

i argued you were right. +1 people. score: People 2 - cope 0.

-removing the duplicate lines from build.prop thanks guys for the feedback and troubleshooting)

-more tweaks to data..

some missed perms changes,

some old entries removed from rootfs..

removed old data fix lines from ip-up (also missed some when I did last updates to data)

-cyanogenmod changes from the 11th to the 13th.

-evo1rs has done EXTENSIVE testing on the video camera. we have made adjustments based on his findings. (NOTE we are enabling HD 720 recording for you but currently it is only working @ about i think evo1rs said 1.5 frames a second ;/ but all the current modes that you have will work much smoother and better in quality then before. really really good work evo1rs :))

-due to the changes in ppp... as the OS detects your dns nameserver settings correctly and updates the system variables with the right servers (net.ppp0.dn1&2)

we no longer require 2 seperate builds

1 for tmo and 1 for everyone else. so that means that

starting tonight... there will be 1 build for all users. yay for me 1/2 the bandwidth to upload the builds YAY! (im 99% confident that there will be no issues.. and if you REALLY feel you must, you can still edit the default dns entries in the build.prop file

(to get the nameservers you are currently connected to:

in terminal type

getprop

and look for the lines that read

net.ppp0.dns1=SAFE.TO.PUT.INYOURBUILDPROP

net.ppp0.dns2=SAFE.TO.PUT.INYOURBUILDPROP)

but i dont think will be nessessary. as you will see... the name server settings from the build.prop get over written anyway (verified above) with the correct ones that android detects from your isp.

either way:

I think that data is commin through on this test build faster then I've ever seen it .... but.. it may be just me. ;)

also regarding the killall pppd thing some of you guys are doing.... i found that letama's ril wrapper already uses this.. its right in the code. not that this changes anything for anyone.. just thought I would let you know ;)

besides i'm hoping that will all the recent changes that you all are experiencing the data stall less frequently... i only had 1 drop today... but it most likely was due to my poor location in my office building.
[HD2 Android SD Development] tmotechsupport:
your awesome thanks for the advise, do you think I should start from scratch with a new data file? And with that type of usage you think I should expect 8-10 hours roughly?
[HD2 Android SD Development] copenhagen:
shes a strange thing the battery issue.

check this out

my eu hd2 (currently my backup/test unit) has been on for over 3 days running with no sim in it and all radios off. I have over 80% battery left. ;) (no charging in the middle)
[HD2 Android SD Development] tmotechsupport:
The battery doesnt drain nearly as fast but its signifigant. Any thing you recommend that works for you.
[HD2 Android SD Development] shamez23:
Well, my usage isn't much different from yours.

Less automatic syncing and no messenger apps or anything of that kind but more listening to mp3s.

After 12 hours of use I usually have about 50% battery left.

So yes, 8 to 10 hours should be no problem if your battery is OK and nothing is wrong with your installation.

Reformat your sd card. Try using your old data image. If battery drain is still high, let it create a new one and use Titanium Backup to restore your apps.

If battery drain is still high after that, create a new data.img and don't restore your apps. It then is likely that one of the apps you use doesn't work properly and causes the drain.

That's what I would do and I've used this build from the start. If I had battery issues I wouldn't still be here.
[HD2 Android SD Development] copenhagen:
/cope looks around for warren.

not much by means of recommendations other then whats already been said in the forum.

and right now there's not much

I

can really do to make it better.. unless insert unmentionable here. ______ ____ _ ________ ______.

and i really dont want to do that if I dont have to.... warrens work has been amazing thus far.
[HD2 Android SD Development] copenhagen:
dood are you really tmo tech support? lol or is that just a crazy awesome nick only. :)
[HD2 Android SD Development] tmotechsupport:
yea for a few years now, Ive been trying my hand at some of the more delicate parts of flashing ROMS other than using them.
[HD2 Android SD Development] t-mizzle:
Cope, your builds are good but they are "low". You need to release a "high" build in about a week from now, to be specific, release it on 4-20. And make sure it's a high build.

No sticks. No seeds. Just a icky, icky 4-20 build. The type of build that has your fingertips still smelling like it, even days after you release (exhale?) it.
[HD2 Android SD Development] bteljuice:
Thank you for the quick reply
[HD2 Android SD Development] petetw01:
I was getting around 6 - 7 hours from an overnight charge, having read all the various claims I tried some tests of my own.

I fully charged the phone, turned off everything I could - Gmail Sync, location etc and left it for 3 days over the weekend. I was amazed when I checked to see it still had 37% left.

I am now testing with just Gmail sync (every 1/2 hour) and 4 or 5 calls a day (no more than 10 Mins each). So far it's closing on 24 hours with 20% left. One thing I hadn't disabled before was satellite/location - can this be the battery drain - I know it's been suggested before - and dismissed

This is a great build tho (0411) - just keeps getting better.

I don't know if it's the HD2, but at work my Incredible is at TMobile G3, whereas the HD2 is at a very flaky TMobile only
[HD2 Android SD Development] clarkg:
Cool... can't wait for that feature!!!
[HD2 Android SD Development] asmd6230:
new update.....

*waits anxiosly*

:)

regards,

asmd.
[HD2 Android SD Development] copenhagen:
okay.. heres the deal ;) the build is complete.

i am going to copy to my device and give it the once over.....

and when it checks out. and it will check out .. okay :).. then ill upload..

so .. about 15 mins or so? then 15 to upload.. ;)
[HD2 Android SD Development] copenhagen:
pfffffft I'm already out of thanks.

THANKYOU

there :)
[HD2 Android SD Development] copenhagen:
sorry i forgot to tell you guys about that... my bad. its a messenger app in beta right now... its lacking a whole bunch of features.. but.. its very similar to iphone style messaing but more functional along the lines of msn icq etc. anyways like i said.. its in beta

ill leave it in for this next build but after that you gotta get it yourselves :)

so far so good with the testing... soon ill upload. very very soon

EDIT mmBWAHAHAHA rofl for Dating.. LOL no.... but.. if thats the sort of thing you do with your messenger apps who am I to judge ;)

PLUS... whats to stop you from using ANY messenger app to flirt / hit on your wife/gf/... other??? ;)

"so hey..what cha doin? uh huh.... what you wearin?" mweahahahalol sorry im still chuckliing over here.

that was awesome.
[HD2 Android SD Development] copenhagen:
m3 is compiled with the build... i dont add that one.. infact..

all i add is

the htc ime keyboard

fm.apk (which I'm not sure we even need to add anymore as its also compiled)

titanium backup (which will be taken out after this next release)

and the wifi tether v3 pre1.apk

word
[HD2 Android SD Development] copenhagen:
kineto was warrens baby.. (as a tmous customer himself) ... send him a pm.

and i think the time has arrived.

uploaded. ;) enjoy
[HD2 Android SD Development] PlayStation:
ME FIRST!!!!

Thank you Cope...... :p
[HD2 Android SD Development] nvandenbosch:
Great build, only I have one problem I cannot solve. My text messages are gone after each reset... Any idea someone? Thanks!
[HD2 Android SD Development] scpion:
man... how do u guys keep up with the updated versions...
[HD2 Android SD Development] ykhehra1:
Hi, I am this Android SD version on stock Winmo ROM without any HSPL or rooting. Everything seems working, but unable to receive calls.

Where is the problem? I can call from it, just unable to receive!

Same issue even after update.
[HD2 Android SD Development] Luke15153:
Enter flight mode before booting into android.
[HD2 Android SD Development] ben.marks:
Same data.img?

Shouldnt happen if it is, however jsut to be sure and keep them, backup with tB or SMSBackup&Restore <<<< which is amazing btw.
[HD2 Android SD Development] Nafanya:
Hello. I can not solve two problems

1. Buttons do not work on the bluetooth headset.

2. After making the call does not work the transfer of data. Solved only Sittings-Wireiess & Network turning on and off an Airplane mod

Help solve these problems.

Sorry for my english
[HD2 Android SD Development] uzi2:
It's working again in 13Apr build :)
[HD2 Android SD Development] Looki75:
Stuck at green htc splash screen

Hello, I had the same issue than jamiejones...

I have the correct Radio, followed the instructions step by step; but the first boot with the April 11 version was just stuck at the black background / green htc logo... (I waited for 30 minutes - stuck!)

I just tried with the April 13 version - It's working now!!!

Thanks for this great ROM!!!

Looki

Edit: BTW I remember, there is something I did before trying the April 13 version: in the txt file "startup.txt", I changed "gps_zone=us" by "gps_zone=fr" as I live in France... so I don't know if April13 would have work or not with "gps_zone=us", but it seems to me there should be no impact changing this line as regard to the stuck-splash-screen...
[HD2 Android SD Development] uzi2:
It will make no difference to the stuck splash screen and it will make no difference to your GPS pool as it is not implemented in the build.

Use Fasterfix for this and GPSStatus&Toolbox to get the latest satellite info. You will then have the first fix in seconds rather than minutes.
[HD2 Android SD Development] shamez23:
I never said you did.

You can include any app you want, it's your build.

It's just, that I don't like apps that come back after beeing killed. I can't do much about maps and other system apps but the rest I erase.
[HD2 Android SD Development] benpaddlejones:
Can others confirm no Titanium Backup in the 041311 build?

I installed TB from the market, then clicked on 'Problems' to install busybox. So was no issue.

benpaddlejones :)
[HD2 Android SD Development] habibjamil:
bkup2sdext

@uzi2

You are a genius; I saw your previous post and in the past few hours I was following your suggestion, which also had many merits.

I formatted my Ext3 to start clean.

Started with a fresh install and new data.img. Power off and reboot the first time.

Used TB Pro to restore apps ONLY as per your suggestion. Power off and reboot.

And voila, all apps are back with no FCs except for TB Pro. I even had GO Launcher EX set as default and it did not FC; firefox did not FC as well.

(My DSL was down yesterday; so I did all my testing before I saw your post.)

Even the FC on TB Pro can be easily solved; I simply un-installed and re-installed the app. (So, probably your recommendation for the busybox will make the restore perfect; but even if the user does not follow it, TB Pro FC can be easily solved).

In conclusion, if you want to make a good use of the feature, either install your apps clean from scratch, or if you are restoring from TB Pro, restore the apps only.
[HD2 Android SD Development] Doemaarwat:
Ok gonna try out my second upgrade. Since my first upgrade I had forgotten to backup the data.img I'd like to be sure how to save my 'environment'.

- I make a backup of data.img.

- I copy new Android folder over the existing.

- Boot phone

- Shutdown phone

- Copy my data.img back

- Boot again

Or can I directly copy the data.img after copying the New Android folder over the old one?
[HD2 Android SD Development] uzi2:
It's not in the AndroidApps folder, so it's not in the build.

Cope did say he was removing it.
[HD2 Android SD Development] uzi2:
All you need to do is to copy the contents of the new Android folder over your existing one. Just tick all the boxes to overwrite the existing files. As there is no data.img in the new folder that will be untouched.
[HD2 Android SD Development] Doemaarwat:
That is what I thought the last time. but all my apps and settings seemed to disappeared. Again..I will double check the FAQ. Sorry if I missed something.

FOund this:

All my apps special settings (skins/animations) are gone	every reboot

Symptoms	: If your app is using SDCARD:/Android/data directory, with every reboot this dir	is moved to /data/data.

Solution	: Edit /system/etc/init.d/05mountsd

find and place # on the first lines from

# extra data/ folder collection and clean up

for i in sdcard/android;

do

if [ -d /$i/data ];

then

busybox cp -a /$i/data/* /data/data/;

busybox rm -rf /$i/data;

fi;

done;

to:

# extra data/ folder collection and clean up

# for i in sdcard/android;

# do

# if [ -d /$i/data ];

# then

# busybox cp -a /$i/data/* /data/data/;

# busybox rm -rf /$i/data;

# fi;

# done;

Do I have to do this before upgrading ?
[HD2 Android SD Development] Blacklight-IT:
I would like to pick up again the "Stand by Lag" (phone doesn't switch on immediately after pressing on the power button when in standby). I tried now some other ROMs, there I haven't had these problems.

Is it possible that it isn't only a sd card thing?

I also discovered that the lag isn't there when the phone I plugged in for recharge.

I read already post #488 and below, but didn't find a work around. Somebody has found something that works against the problem?
[HD2 Android SD Development] uzi2:
Once it's all running properly, to make good use of the feature, you can use a new data.img and all your apps and settings will be restored. No need to use TB other than as a backup backup :)
[HD2 Android SD Development] uzi2:
No no no, you are already making it more complicated than you need to.

I think the reason you lost your apps and settings last time was that you had removed your data.img so the build created a new one.

Leave your existing data.img where it is and you will keep all your stuff on it.
[HD2 Android SD Development] habibjamil:
Of course my friend, that's my ultimate goal. I am very appreciative for your patience, full cooperation, and persistence to resolve this issue (I come from a Quality Assurance background BTW).

Since I do not have a "clean" data.img, I am testing one more thing: to restore data only from TB Pro and see if this will break the feature after a fresh install of the ROM; so the test is to restore from TB Pro in two phases.
[HD2 Android SD Development] uzi2:
It's something in your system data that is breaking the function.

You may be able to isolate it by restoring one bit after another, but I think you'd be wasting a lot of time as it would be quicker to redo your settings manually and you would be confident that everything was working as it should.

If you need to restore any individual app data (high scores, game positions) that's fine and SMSRestore if you have it.
[HD2 Android SD Development] dark alex:
Does anyone else than me have the problem that USB-Mass-Storage is no longer working?
[HD2 Android SD Development] Doemaarwat:
Thx again...I was pretty sure I did not delete the data.img file, but hey...installing some apps is not a big deal. Updating right now to the new build (041311). All apps are still there :) So updating is pretty easy too.

Also did a little test with the video camera. Much better then the last build.

Not sure if I am completely convinced, but recording an playing video are the same. A little 'stutter', but not sure if this is just my SD card.

Gonna do some more tests.
[HD2 Android SD Development] uzi2:
It's working fine here.

The first suspect has got to be the SD card - worth a check over with Windows tools.
[HD2 Android SD Development] geenyous:
Yes, if you did this before and still want to keep stuff in your Android/data folder you would have to do this, the problem only is that you have no access to the new 05mountsd file as it is in system.ext2 and at least I for one cant "open" that file.

What you could do is copy the existing 05mountsd from system/etc/init.d/05mountsd to the root of your sd card while still on android, then after shutdown and when you have the card connected to the PC to copy the new build files, you make sure you edited the 05mountsd file on your card as per the above, create the following structure on your sd card: Android/root/system/etc/init.d/ and copy your modified 05mountsd there.

This will overwrite the 05mountsd in the build and make sure that your data does not get moved. However, this will also mean you use an old 05mountsd file. If cope made any changes to this file then you will not have them as you keep dragging along an old file...

I however do the above. I dont use backup2sdext, have reduced my ext3 partition to 25mb to still have 3 partitions in order to use the swap partition and its related performance increase but lose as minimal space as possible on the ext3 partition. It might also work another way but I am happy for the moment.
[HD2 Android SD Development] dark alex:
Well the App comes up and closes itself immediately again but not as force close it just closes as if I would press the home key.

//Edit: Problem found:

If you have your cable connected to PC on boot you have to disconnect and reconnect before you can start the app
[HD2 Android SD Development] docent14:
If you want to use bckp2sd feature - you have to edit 05mountsd BEFORE first run.

If do not to user bckp2sd feature - just put empty file 05mountsd in sdcard:/android/root/system/etc/init.d/ BEFORE first run.
[HD2 Android SD Development] uzi2:
Mine won't boot if the cable is connected as I have Exceller Boot Loader on the SD card - WinMo can't see the SD card as it is in use by the PC, so I get an error message on WinMo.
[HD2 Android SD Development] habibjamil:
Totally agree.
[HD2 Android SD Development] dark alex:
MAGLdr here ;)
[HD2 Android SD Development] davewillo:
Hi,

I'm a first timer at modding and managed to get my HD2 to dual-boot with WP7 and this version of Android.

Just way to say a massive "THANK YOU!" to everyone who works hard to produce these builds :D

Thanks

Dave
[HD2 Android SD Development] habibjamil:
bkup2sdext & TB Pro

Restoring data only from TB Pro broke it again :mad:

Will work on building a clean data.img file.
[HD2 Android SD Development] toma62:
copied root in Android but no change

for density 'has always worked in other relase:confused:
[HD2 Android SD Development] benpaddlejones:
Well that explains it :-)
[HD2 Android SD Development] RicarduZonta:
This is a major breakthrough with the 720p HD recording working. OK, framerate is very low, but from here I guess it's only the matter of time to get it working properly. This is the feature I really missed. I was thinking about selling my hd2 to buy a native android device. But with this build I'll never sell it.

I have been using the same data.img for about 2-3 months without any problems.

I dont have FCs at all, everything is fully functional, smooth, fast.

With unofficial extended battery I get great battery drain results, check my test here:

http://xdaforums.com/showthread.php?t=984969

Thx again for the frequent updates guys!
[HD2 Android SD Development] Doemaarwat:
Hmmm. I was 'playing' around a little with the time after I have seen that my time was not set correctly. I have it set to autosync with network. But it does not sync at all. When I press the clock also no weather info available.

Is it me...or do I have to set some other options? Or didn't I read the thread or FAQ good (which I have done several times lately).
[HD2 Android SD Development] Straynart:
Report [not complain] of a user…

I give my feedback on this new version :

> Data : experiencing a small drop, but a fast retrieve,

> Market : no problem at all [since we have data connexion],

> Bluetooth : still no headset control [*sigh*],

> MMS : works,

> GPS : quick localization, no problem with Google Maps [since we have data connexion],

> Notification bar : still have the small transparent vertical line,

> data.img : no problem with the generation,

> Titanium Backup : no problem with restoration.

That's all for the moment !! =]

It works great for now.

Thanks !!
[HD2 Android SD Development] Imperator Nick:
Hi guys just hoping for a quick bit of advice. I've been running this rom for a week or two and am really loving how fast and stable it is. I intend to update it to the most recent build tomorrow to hopefully cure the data drops, just curious as to the most hassle free way to do this? I don't mind restoring a few things afterwards so would I be able to just make a copy of my data.img, replace the Android folder on my SD card, overwriting the old one without reformatting, boot it up and then use my old data.img ?

Thanks for any help, and thanks for this wonderful rom.