[Q] Battery drain issues - update: solved - Touch CDMA Android Development

After configuring everything to work I have noticed that the battery seems draining at least twice as fast as on WM6.5. My wife's exactly the same phone has retained 3/4 of a battery by this morning from yesterday's night charge, while my Android is almost fully drained.
What could be the problem? What configurations would help to save battery? I remember in WM there is a trick to set idle data connection cutoff time which helps a lot. I can't find anything similar in Android.
I'm running a 36 kernel with "not so free super froyo" ROM on a Bell's HTC Touch CDMA, I have Google account confifured to sync calendar and contacts, and Google Apps email configured through IMAP access in Android's Mail client, set to sync every 15 min.
Is there any way to adjust how often to sync Google contacts and calendar? Any other tips?
Thanks.

Also, is there an easy way to replace battery icon to one with percent indication, or a specific widget to place on the desktop?

I'm running Superfroyo (which has a percent indicator) on a Sprint Touch, and my battery life isn't too hot either although the FAQ here indicates the reads are just estimates based on the heat of the battery. I am keeping an extra charger at work and another in the car, there are cheap OEM ones on ebay.
Two things--
1) if you go to settings->about phone->battery use you can see what is pulling juice since the last recharge.
2) my house has great cell coverage, my work does not. I noticed that that my battery barely budged yesterday at the house after the phone was on but not being used. For the 14 hours it was unplugged but only picked up once or twice, it went down maybe 10% tops. So I am guessing strength of signal is huge, because it drains much faster than that at my work.

OK, I have solved this issue.
Problem: All HTC Touch CDMA (vogue) users know that battery is not its strongest point and active data connection suck the juice quickest. But what I have found (I'm sure I'm not the first here, but I could not find this in the forum) is that Android is different from WM in syncing calendar, contacts and email. In WM6.5 you can set sync and email to check at specific time intervals, after each request the data connection is automatically closed (and this idle time can also be adjusted in registry). In Android we can't set this time interval, because Google sync in Android uses "push" technology by design, so your web email, calendar and contacts sync instantly when changed. That means that the data connection is constantly open and when Google server "ticks" the phone, it gets the email. That's the main reason for the much faster drain.
Solution:
1. I'm now using regular Android Mail client (not Gmail) to retrieve email from Google Apps/Gmail by standard IMAP interface, where you can set how often it checks for email.
2. I have turned off "background data" and "auto sync" check boxes in "accounts and sync settings".
3. I have created a shortcut on the desktop for "sync" settings that allows me in a few clicks to manually sync contacts and calendar. I don't need it synced often. I would prefer an option to sync it automatically every few hours or once a day, but I could not find any means to do so.
That way I still get my email checked every 15 or 30 min (or whatever I prefer) and calendar/contacts are synced manually on demand. Battery drain looks normal now, which means it should be at least enough for a full day of use (like WM).
Another issue:
I did have a couple of spontaneous reboots for no reason. Anybody knows why it can happen? I'm using latest builds of 36 kernel with "not so free super froyo" ROM on a Bell's HTC Touch CDMA.

romandesign said:
OK, I have solved this issue.
Problem: All HTC Touch CDMA (vogue) users know that battery is not its strongest point and active data connection suck the juice quickest. But what I have found (I'm sure I'm not the first here, but I could not find this in the forum) is that Android is different from WM in syncing calendar, contacts and email. In WM6.5 you can set sync and email to check at specific time intervals, after each request the data connection is automatically closed (and this idle time can also be adjusted in registry). In Android we can't set this time interval, because Google sync in Android uses "push" technology by design, so your web email, calendar and contacts sync instantly when changed. That means that the data connection is constantly open and when Google server "ticks" the phone, it gets the email. That's the main reason for the much faster drain.
Solution:
1. I'm now using regular Android Mail client (not Gmail) to retrieve email from Google Apps/Gmail by standard IMAP interface, where you can set how often it checks for email.
2. I have turned off "background data" and "auto sync" check boxes in "accounts and sync settings".
3. I have created a shortcut on the desktop for "sync" settings that allows me in a few clicks to manually sync contacts and calendar. I don't need it synced often. I would prefer an option to sync it automatically every few hours or once a day, but I could not find any means to do so.
That way I still get my email checked every 15 or 30 min (or whatever I prefer) and calendar/contacts are synced manually on demand. Battery drain looks normal now, which means it should be at least enough for a full day of use (like WM).
Another issue:
I did have a couple of spontaneous reboots for no reason. Anybody knows why it can happen? I'm using latest builds of 36 kernel with "not so free super froyo" ROM on a Bell's HTC Touch CDMA.
Click to expand...
Click to collapse
Wow very good explanation what configurare in my Vogue if I notice that the battery lasts longer I comment..
The sporadic restarts remember that Android is not 100% stable, everything is a matter of testing between several ROMs and see which is the most stable and best meets your needs. I tried about 10 ROMs android before to decide for which currently I use what is Fresh Froyo which is not perfect but it is pretty stable and fast.
Greetings and again thanks for the information.

Related

Direct Push issues

Hi everyone
Have been using the Diamond for a few days now and have noticed a few quirks here and there. Mostly are software issues that I think will be ironed out in later releases of the ROM but for now there are a few issues that I was wondering if anyone else was having.
I have my own Exchange server running and have Direct Push/3G on constantly. The only issue is that sometimes i get the mail come through via Direct Push while sometimes it doesnt. In those situations I have to push "sync" in active sync for it to grab the new mails.
My settings are on "as item arrives" for both peak and offpeak and the status in active sync is shown as connected. This worked perfectly on my Trinity and Direct Push has never missed a beat once.
Anyone else experiencing similar issues?
The only time I ever experienced this is when O2 had a data outage in the UK yesterday. Other than that it has worked flawlessly.
Have my own exchange aswell, and haven't any problems so far !
Have you tried checking the peak times in the options for activesync?
not Diamond-related at all (since I don't have one yet) - but are you perhaps roaming networks sometimes?
had a customer with this issue and there is an extra option 'sync when roaming' (at least in WM5) - syncing manually worked in other networks without option enabled
HKC\Software\HTC\Manila:
PushMailOn : default value is "0" ( OFF)
PLease chech this value in your registry. I wonder if this settings might affect push mail avaiability for you.
I would set to "1" and soft reset to confirm.
I have the problem also! I had no problems with a TyTN II being used on the same Exchange server, but the diamond has a mind of it's own.
The peak time is on the default 8am to 8pm and reverse for off peak. But I dont think this affects it since I have it on "as item arrives" for both.
I dont have "use above settings when roaming" ticked since I'm in a very well covered 3G zone. The "H" icon is constantly on where I am.
I havent tried the reg edit yet SecureGSM, thanx for the tip. I will try to isolate the problem and do that for a last resort.
Is your problem consistent or inconsistent vas79?
I have noticed something but not sure if my paranoia or what but I have a feeling the time size affects it. If you have it large at the default size the mail comes in fine. But when you minimise the time to see more calendar items, the mail does not direct push. I'm still testing this so i'll post result after a few days of use in both.
Well it consistently doesn't work!
I very rarely hear the email alert when the phone is in standby. When I turn the phone on a unlock no email then within 10 seconds email will come in and get the little icon by the Mail saying how many new emails.
Alternatively I'd go to Activesync and it would say last sync'd at XXX rather than connected. I then select Sync which it does then it stays connected until next time.
If I go to the comm manger it says Direct Push is on and Data Connection on.
I can live with it, because i assume it's a bug and it will get fixed!..
My major gripe is it doesn't ring straight away, takes 3/4 rings to get going and ring. I have missed so many calls because of this!
i have been using Diamond with Exchange Server 2007 pushmail via GPRS since 1st June. There is no problem so far.
I am using BlackBerry at the same time. Basically pushmail arrives later than blackberry for 1.5 secs, I am sure all mails can be arrived to my Diamond in these 2 weeks.
vas79 said:
Well it consistently doesn't work!
I very rarely hear the email alert when the phone is in standby. When I turn the phone on a unlock no email then within 10 seconds email will come in and get the little icon by the Mail saying how many new emails.
Alternatively I'd go to Activesync and it would say last sync'd at XXX rather than connected. I then select Sync which it does then it stays connected until next time.
If I go to the comm manger it says Direct Push is on and Data Connection on.
I can live with it, because i assume it's a bug and it will get fixed!..
My major gripe is it doesn't ring straight away, takes 3/4 rings to get going and ring. I have missed so many calls because of this!
Click to expand...
Click to collapse
hmmm ok, seems like you have a different problem to me. Mine actually says "connected" but mail just doesnt get pushed out or rather Diamond doesnt get the message. Have you made sure that you have "as item arrives" in the schedule (in activesync) for both peak and off peak?
yuhaohuang said:
hmmm ok, seems like you have a different problem to me. Mine actually says "connected" but mail just doesnt get pushed out or rather Diamond doesnt get the message. Have you made sure that you have "as item arrives" in the schedule (in activesync) for both peak and off peak?
Click to expand...
Click to collapse
Yep, everything says "as item arrives" also tried ticking even when roaming, when i'm not!!
Actually today it has said connected everytime I've checked!
Only thing I changed yesterday was one of the registry tweaks to improve touchflo 3d performance.
When the UK rom drops and we can load it I will see then!
UK Rom here and seeing exactly the same issues!
Mine has been working fine too...

Emails draining alot of battery

I have about 5 email accts that my Tilt is checking every 30 minutes via internet. This drains alot of battery. I heard that there is a way to have the emails pushed to your Tilt, like the blackberry.
Is this a better option and where do you get it?
What are you guys running for your emails?
try mail2web.com (which will make your accounts Exchange type accounts) or Emoze.com (but I think this solution may require a computer to be on at all times to push... mail2web is probably more efficient.
hipertec said:
I have about 5 email accts that my Tilt is checking every 30 minutes via internet. This drains alot of battery. I heard that there is a way to have the emails pushed to your Tilt, like the blackberry.
Is this a better option and where do you get it?
What are you guys running for your emails?
Click to expand...
Click to collapse
So instead of pull, you think push is more efficient? With pull the Tilt can be offline for 29 minutes at a time. Pull it's always online and chatting with the server.
I think you'll find that push email uses more battery.
I personally have all of my emails come into the same mail destination and are sorted into folders depending upon where they were destined to go. That way I'm only checking or looking at one mailbox. And I use Flexmail 4 with idle IMAP to get the emails instantly, but with reasonable battery life. I don't get a lot of emails, perhaps 50 a day, so most of my time is basically idling on the server, and it's around 5% battery an hour, vs .5% or so without Flexmail running, on 3G. It drops to around 2%/hr on EDGE.
So if you're on 3G, you might try EDGE. Of course if you do other things with the phone, EDGE is probably too slow.
What kind of battery life are you seeing? What percent of battery is it using an hour?
so r u saying that push emails like the blackberry and Seven is constantly connected to the net?
so y do people say that push is better?
if that is the case, I think my battery will be way worse than.
as for current bat life, ill have to check it out and report later.
From what I know there are 2 versions of push email:
1 - connect and wait for new mail (this isn't as powerhungry as you think, your connection is open but there generally will only be traffic as soon as new email is arrived or the connection is broken/re-initiated)
2 - SMS notification, your pda only makes a connection as soon as an SMS is received which states you received new email. This needs something more than just a software solution e.g. contract with an SMS provider)
I have noticed that only standard umts (no HSDPA) connection is a big power consumer. If you have HSDPA in your area, the kaiser seems to need much less energy to keep the connection open.
Im trying the SEVEN program rite now. To see how this works.
Anyone want to share their experience with the SEVEN? It seems to be a always connect type, so Im not sure how the battery life will be.
hipertec said:
Im trying the SEVEN program rite now. To see how this works.
Anyone want to share their experience with the SEVEN? It seems to be a always connect type, so Im not sure how the battery life will be.
Click to expand...
Click to collapse
SEVEN is eating more memory in my S730 than Funambol, so I prefer Funambol more than SEVEN. SEVEN tends to connect immediately when you turn on your phone, so it would probably consumes more battery while you can choose different PUSH modes with Funambol.

[Q] Why Gmail its not full push email?

i love gmail but im wondering why its not full push e-mail?
all will say yes its push mail but you need leave all day "sync" on to get notifications if you turn off the sync you will not have instant e mail.
leaving all day "sync" will drain a little more the battery, so if you get a mail when you have "sync" off you will nit have any notification UNTIL you turn on, there is program like shutupbattery that will sync every X time but whats the point of push mail?
get instant right? i guess using k9 will work better (not sure) but why not in stock gmail app?
That's what push is. It is a constant low bandwidth connection kept open waiting for Google to send notifications.
The gmail servers cannot just send a message to your phones IP or anything like that, because trying to get that to work with all the various operators and different networking setups in the world would be impossible.
That's how push works on a windows mobile phone, and maybe even a blackberry (but I cannot be sure of that since they run special software on the telco's side)
Clarkster said:
That's what push is. It is a constant low bandwidth connection kept open waiting for Google to send notifications.
The gmail servers cannot just send a message to your phones IP or anything like that, because trying to get that to work with all the various operators and different networking setups in the world would be impossible.
That's how push works on a windows mobile phone, and maybe even a blackberry (but I cannot be sure of that since they run special software on the telco's side)
Click to expand...
Click to collapse
i didint test it or dont remember if chrome to phone works without sync but if all works in that way why google bother to toggle "sync" yea i know its a low bandwith connection instead always check as poll but you need leave all day sync on to all work well and that will drain a little battery too
Well, you should test, that IS how Chrome to Phone works. It uses the push notification system Google developed. Which uses the push data connection.
The point is, apps written for 2.2 and up should use this system when possible. Instead of having your widgets, twitter apps, chat apps, mail apps all doing their own push or periodic checking, they can all use the one Google connection. Saving battery over 4 apps doing their own checking.
And of course it uses the battery. If you want push on ANY device it will use the battery a lot more. If you want your battery to last longer, don't use any push features.
zen kun said:
i didint test it or dont remember if chrome to phone works without sync but if all works in that way why google bother to toggle "sync" yea i know its a low bandwith connection instead always check as poll but you need leave all day sync on to all work well and that will drain a little battery too
Click to expand...
Click to collapse
Dude, you ever tried to get your ISP to turn on your internet connection on your home laptop when you get a mail?
Well, since you (hopefully) understood what kind of gibberish it is, maybe you'll understand why the data connection is always on in the phone? Because it's your internet, and without it you WON'T HAVE ANY DATA AT ALL.
If you choose to disable this connection for battery savings - it's your personal problem that you won't get any service that comes from the internet, including mails. That's how it works, and Google has nothing to do with it.
Jack_R1 said:
Dude, you ever tried to get your ISP to turn on your internet connection on your home laptop when you get a mail?
Well, since you (hopefully) understood what kind of gibberish it is, maybe you'll understand why the data connection is always on in the phone? Because it's your internet, and without it you WON'T HAVE ANY DATA AT ALL.
If you choose to disable this connection for battery savings - it's your personal problem that you won't get any service that comes from the internet, including mails. That's how it works, and Google has nothing to do with it.
Click to expand...
Click to collapse
FYI, they aren't talking about turning off data, rather have gmail push without having to keep sync on. With sync on, the apps regularly poke at the servers to get info about new emails, etc. In contrast, Blackberry push email works is a different way... the server pushes notifications to the app. Chrome to Phone works in this way and I guess it would be quite viable to have other Google apps do the same...
That is[/is] how Google apps do it. My phone tends to notify me of email before Thunderbird picks it up, and they're both push.
craigacgomez said:
FYI, they aren't talking about turning off data, rather have gmail push without having to keep sync on. With sync on, the apps regularly poke at the servers to get info about new emails, etc. In contrast, Blackberry push email works is a different way... the server pushes notifications to the app. Chrome to Phone works in this way and I guess it would be quite viable to have other Google apps do the same...
Click to expand...
Click to collapse
Spoken by someone who never tried to confirm what he writes, and the same goes for the OP. The easiest way to understand that you're wrong is - position your phone in place with 3G / WiFi reception, and send yourself a mail on the PC. How much time it takes until you receive it on the phone? My measurements were from 5 sec to 1.5 min, and mostly stayed within half a minute from sending time. So, if your theory was correct, it would mean that the Gmail "pokes at the servers" more than once a minute.. Which is obviously wrong, and if you monitor traffic (in the easiest way possible - just look at your "H" symbol, if you have a custom ROM), you'll see that it doesn't happen.
"Sync" is a general term. Sync can be done in multiple ways. One of them is push sync. It just so happens that Gmail is push sync. And the "Sync" switch is just to enable/disable the sync for Google apps, it doesn't say anything about it being push/pull/whatever.

[Q] Email auto-sync going to sleep?

I have both a corporate email and private email account setup on my Galaxy.
The corporate is an auto-sync through exchange and syncs my contacts and calendar as well
The private is a pop3 account which is set to sync every 15mins.
After 12 hrs or so the private email invariably goes to sleep and doesn't receive any new messages. Sometimes a manual 'refresh' wakes it up, but most of the time I need to re-boot the phone to get it receiving email again.
The corporate exchange account seems more robust, but has also gone to sleep on a couple of occasions
Ideas?
I've seen similar things with my AOL accounts (don't laugh my parents have been using them for like 13 years and I'm not chaning my email after all that time). They seem to have a mind of their own as far as updating themselves goes. Sometimes, its fine, sometimes they just don't bother. Sometimes one of my accounts runs just fine for days, and then I discover that a different one hasn't been syncing at all and theres a bundle of really pissed people wanting to know why the hell they haven't received something.
I have tried using K-9 mail (check the app store), and that works just fine. Does exactly what the native client should be doing.
However, I hate the K-9 icon, and so I refuse to use it until I can figure out how to change the icon without breaking the app. Tried a few times, but no luck *sigh*
Also, you'd think that a standard polling email app shouldn't have any problem just checking stuff.
Strange. Had this last night as well. I know this has worked before as was getting my email in the mornings but had to reboot to get it to work this morning, tried on-off airplane mode as well, before reboot. Interestingly, gmail pulled mail down after wifi was turned back on.
Am on stock DXJG04. I did post on another thread about some processes which seem to cause extra battery drain overnight. Something about suspend not working properly. Not sure if related.

[Q] High Data Usage Problem (Tilt 2 on ATT)

Hey all, I did not have much luck using the search. Tried to find other people who have had this problem. **Plus nobody responded in the General forum so here I am again. **
We have 4 ATT Tilt 2 phones in my department. All with the same rom, radio, settings, etc. The difference in the phones is that 2 of them were purchased about a year earlier than the other 2.
*PROBLEM* TWO of the phones (the newer purchased Tilt 2's) we are getting alerts for high data usage from ATT. Looked at the ATT data logs, sure enough they have high data usage, large amounts at odd times. like 20mb - 100+mb transfers in the late night early morning, during the day. Not good, it is all adding up quick with no suspect in sight. The 2 users with this problem, use the phone data less than I do for day to day tasks and I am way under the alert limit, its not something they are causing---some of these data periods are while the user is ASLEEP (and no, we do NOT use MS myphone sync). Its got to be a phone software or software compatibility with the newer Tilt 2 hardware or something. I tried a couple different ROMS, same problem. Right now we are all on Energy.RHODIUM.21684.Sense2.5.Cookie.sencity.Nov.0 8
Radio: 4.49.25.77 (best signal in our area) Michigan
Please help. Thanks to anybody who can provide some guidance.
sounds like it is connecting for something and not disconnecting. I have this problem sometimes when it connects to download my email and weather, it will stay connected all night and kill my battery by the time i wake up.
TRY THIS, CREDITS TO THE GUY THAT HAD THE TIME TO PUT THIS TOGETHER, NOT ME
Enable Auto Data Disconnect for Auto Email Downloads and Other Downloads with a Cab File
When you have auto email downloads enabled, data is not disoconnected after mail retrieval and thus your battery is drained much faster. Modify the following reg edit to have data disconnect after 60 seconds. You can test this by tapping on the notfification bar while downloading emails and watch the data connection close after idle for 60 seconds. Please note. Data connection will NOT auto disconnect if you have any HTC Sense auto download enabled such as Weather, Twitter, Stocks, Facebook or Time Sync. Please set these apps to manual download only. Please note that this setting has the possible effect of disabling simultaneous voice and data on some devices, even if you are on a capable network and signal. See Tip 70 for an app that works with even HTC data downloads.
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings
CacheTime = 60
SuspendResume = should be blank. Delete "GPRS_bye_if_device_off" text.
VPNCacheTime = 60
Finally An Auto Data Disconnection That Works - Save Battery Life!
Download the following cab file http://www.commmgrpro.com/CommMgrPro...witch.V2.8.cab
You can set it to disconnect data after 60 seconds or more or less thus saving you battery. Read the thread here: http://forum.xda-developers.com/show...ght=bandswitch
Tried and tested for over a 2 weeks on my HD2 and works perfectly. Use INSTEAD of Tip 33.
The only problem i have with this is that it kind of defeats the purpose of a smart/connected phone. Its just so strange that only 2 of the 4 phones have this high data use problem, and they were all setup by the same person.
But on the other hand, it would be a good test method for data usage before and after. THANK YA!
latinohot said:
TRY THIS, CREDITS TO THE GUY THAT HAD THE TIME TO PUT THIS TOGETHER, NOT ME
Enable Auto Data Disconnect for Auto Email Downloads and Other Downloads with a Cab File
When you have auto email downloads enabled, data is not disoconnected after mail retrieval and thus your battery is drained much faster. Modify the following reg edit to have data disconnect after 60 seconds. You can test this by tapping on the notfification bar while downloading emails and watch the data connection close after idle for 60 seconds. Please note. Data connection will NOT auto disconnect if you have any HTC Sense auto download enabled such as Weather, Twitter, Stocks, Facebook or Time Sync. Please set these apps to manual download only. Please note that this setting has the possible effect of disabling simultaneous voice and data on some devices, even if you are on a capable network and signal. See Tip 70 for an app that works with even HTC data downloads.
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings
CacheTime = 60
SuspendResume = should be blank. Delete "GPRS_bye_if_device_off" text.
VPNCacheTime = 60
Finally An Auto Data Disconnection That Works - Save Battery Life!
Download the following cab file http://www.commmgrpro.com/CommMgrPro...witch.V2.8.cab
You can set it to disconnect data after 60 seconds or more or less thus saving you battery. Read the thread here: http://forum.xda-developers.com/show...ght=bandswitch
Tried and tested for over a 2 weeks on my HD2 and works perfectly. Use INSTEAD of Tip 33.
Click to expand...
Click to collapse
make sure your weather isnt set to download on its own because it will not auto disconnect.
other things like email and stuff like that will usually not auto disconnect either.
Ok we will try that and see what happens. Will report back
Blu3ManiC said:
make sure your weather isnt set to download on its own because it will not auto disconnect.
other things like email and stuff like that will usually not auto disconnect either.
Click to expand...
Click to collapse
Have this exact same problem using the latest Simplicity rom. Nothing, not even the weather is set to auto update, and by and large I no longer even use the phone save for 2 or 3 phone calls a month. Yet, like clockwork, get data warnings.
I wonder if this has anything to do with it (SEEING THAT BOTH OF OUR USERS WITH THE PROBLEM WERE LINKED TO YAHOO MAIL ACCOUNTS! And not the rest of us)
http://news.cnet.com/8301-10805_3-20030159-75.html?tag=cnetRiver
And yes i realize this ref's phone 7 OS, but still...fishy
whiffer2 said:
I wonder if this has anything to do with it (SEEING THAT BOTH OF OUR USERS WITH THE PROBLEM WERE LINKED
And yes i realize this ref's phone 7 OS, but still...fishy
Click to expand...
Click to collapse
That problem is not just on wp7 is happening on iphones too. so u better unlink those yahoo mail accoounts or put your setting for manual downlad.
I unlinked my Yahoo account and disabled auto update of Sense Weather, my data usage did go down, not that I care about it as I have unlimited, but was surprised at how much better battery life I now have.

Categories

Resources