(bounty) Find a fix for the "android os" battery bug - Galaxy S II General

I starting a bounty for fixing the android os bug.
Anyone that fixes this bug gets the bounty. (not samsung or google tho)
Donations so far:
Doc 30$
dan13l 30$
TML1504 30$

Has anyone checked to see if its google maps chewing it up? It did this on some other phones with the latest update.

neubauej said:
Has anyone checked to see if its google maps chewing it up? It did this on some other phones with the latest update.
Click to expand...
Click to collapse
Keep the discussions in the other threads.
But maps is not the cause.

Switch Wifi sleep policy to "never sleep"
From the page for this issue on Google Code (others have linked to this page already but apparently no one here has bothered to actually read it):
code.google.com/p/android/issues/detail?id=15057
There appear to be two main causes of extreme battery consumption by the Android OS process.
#1 is the Wifi sleep policy of "wifi off when screen off", which is usually the default. If you haven't made a point of changing yours, it's probably still on this setting. In the Wifi settings page (where the SSID list is), press menu, then advanced, then Wifi sleep policy. Change it to "Never". A more blunt-force solution is to keep Wifi switched off all the time.
#2 is some combination of Google Latitude and location services (GPS and Wifi). This one seems to be less common and many people say it's definitely not the problem. It may be related to #1 in that a problem with the Wifi is causing location requests to fail, somehow causing extra processing.
Comment 23:
The increased consumption only occurs, when I have the wifi sleep policy set to "sleep while display is off". In this case the battery consumption is very high while the display is off.
Comment 31:
Only changing Wi-Fi sleep policy to Never from "Never when plugged in" fixed this for me for now.
Comment 40:
I can confirm that "Always on" WiFi policy solves the problem for me
Comment 53:
By putting "always on" to the wifi sleep policy, I'm now at 25% battery after 1 day 7 hours of usage (since last charge)
Comment 54:
The recommendation of changing the wifi sleep setting to 'Never' appears to have worked for me as well.
Comment 88:
Both "always on wifi" as well as "turning wifi off manually" work for me. The heavy battery drain only occurs in combination with the "wifi sleep while screen is off" policy.
Comment 90:
I have 'never sleep' policy for WiFi, and battery life is just fine.
Phone easily can sustain a day with some 40% battery remaining.
Click to expand...
Click to collapse
And so on...
A poll to see whether these solutions work for everyone would be good. I probably can't make it because I just registered.
Disclaimer: I have ordered but not yet received my Galaxy S II. The info in this post is not my firsthand knowledge, just some quick research.

ninewise said:
From the page for this issue on Google Code (others have linked to this page already but apparently no one here has bothered to actually read it):
code.google.com/p/android/issues/detail?id=15057
There appear to be two main causes of extreme battery consumption by the Android OS process.
#1 is the Wifi sleep policy of "wifi off when screen off", which is usually the default. If you haven't made a point of changing yours, it's probably still on this setting. In the Wifi settings page (where the SSID list is), press menu, then advanced, then Wifi sleep policy. Change it to "Never". A more blunt-force solution is to keep Wifi switched off all the time.
#2 is some combination of Google Latitude and location services (GPS and Wifi). This one seems to be less common and many people say it's definitely not the problem. It may be related to #1 in that a problem with the Wifi is causing location requests to fail, somehow causing extra processing.
And so on...
A poll to see whether these solutions work for everyone would be good. I probably can't make it because I just registered.
Disclaimer: I have ordered but not yet received my Galaxy S II. The info in this post is not my firsthand knowledge, just some quick research.
Click to expand...
Click to collapse
These fixes wont cure it for sgs 2.

See attached. It's not the wifi policy.
I too will pledge $30 for a working fix once I've verified that the problem is solved.
Sent from my GT-I9100 using XDA Premium App

dan13l said:
See attached. It's not the wifi policy.
I too will pledge $30 for a working fix once I've verified that the problem is solved.
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Nice, i will update 1st post with all the findings so far.
"android os" bug is NOT:
Wifi bug (always on)
Maps bug
Any installed apps bug
Operator bug
Latitude bug

count me in with $30 as well

DocRambone said:
Nice, i will update 1st post with all the findings so far.
"android os" bug is NOT:
Wifi bug (always on)
Maps bug
Any installed apps bug
Operator bug
Latitude bug
Click to expand...
Click to collapse
I had similar issue on SGS, my problem was because aparently I got a faulty modem file, I noticed my signal bar going up and down continously.
Has anyone tried changing modem?? I don't have a SGS2 so I don't really know if there are modems to choose from...
Good Luck Doc.

gtluis said:
I had similar issue on SGS, my problem was because aparently I got a faulty modem file, I noticed my signal bar going up and down continously.
Has anyone tried changing modem?? I don't have a SGS2 so I don't really know if there are modems to choose from...
Good Luck Doc.
Click to expand...
Click to collapse
Getting a good idea now, a first setup on 3g network (no wifi), avoid the dir 655 routers and you be fine.

Wifi policy is set to "never" by default, so I can't see why it would help anyway.
That said with KE1 and a factory reset, although I have higher than would usually be expected AOS usage, my battery drain issue hasn't been all that bad - from a full charge today (7hr 15 on battery) to 83% with maybe 20 minutes angry birds, and the occasional checking of emails, texts and facebook and playing around with it a bit...
Screen on time 31 minutes... Android OS at 20% now and Wifi Sharing(!?) on 13%.
So not too bad, but it could be better IMHO - equates to about one and a half days of light use - definitely room for improvement.

There are so many threads about battery so not sure which one I should post it but..
I saw some strange things in Logcat. I get alot of those errors :
E/lights ( 2701): write_int: path /sys/class/backlight/pwm-backlight/brightness, value 170
E/lights ( 2701): write_int: path /sys/class/leds/blue/brightness, value 0
I don't exactly know what the error means(well they are related to the menu and return backlight I think), but the E/ stands for error in case you didn't knew.
Do you guys get the same kind of errors in logcat?

I've noticed 2 things:
If I wake it up, the cpu frequency doesn't go below 800mHz. (with only 4% load)
Only after I've started an app (not a widget etc.) it went down to 200.
(look at the "Temp+CPU V2" widget on the screenshot)
And the camera seems to run further if you don't go back out.
After a shot in school, I pressed the power button and at home, it felt VERY hot (front and back) and the battery level went down in 3% steps every 1-2 minutes.
But the camera wasn't listed in the battery stats, only Android OS, which was eating 70%.
Screenshot

Android OS Battery bug
Hi!
1. Install SystemPanelLite Task Manager from the market.
2. Run SystemPanel and open settings and check the "System processes" option. Close settings.
3. Scroll down in the process list until you find the process "android.process.media". If you have a CPU usage of more then 10-30s and the process usage gauge to the left moves up and down you probably have the Android OS battery bug.
At this point you can try the following;
- Shut down your phone. (Not just turn it of. The complete shut-down-power-off-thingy)
- Remove your external SD card.
- Start up your phone again.
- When the scan media is complete, do step 3 above again. If you don't see the problem at step 3 your SD card has a corrupt filesystem. And needs to be reformated. Follow these steps;
- Backup your data first!!!
- Settings -> SD card & phone storage
- Unmount SD card
- Format SD card
- Restore files from your backup.
If the problem persists your internal SD card might have a corrupt filesystem and needs to be reformated. Follow these steps;
- Backup your data first!!!
- Settings -> SD card & phone storage
- Format internal storage
- Restore files from your backup.
More details; What happens when you have a corrupt filesystem is that android.process.media tries to read a file but fails over and over again. The filesystem might not look corrupt to you. And you can read and write files on the SD card without problems. But at some point the android.process.media failes to read the files and loops like crazy, draining your battery.
I had a corrupt filesystem (FAT32) on my external SD card. I also had Android OS battery usage of 60-70% and a fast draining battery. I hope this can help others.
Best regards,
/Pontus

My android.process.media is 27 secs. Is this in the acceptable range?

Hi!
It's a bit high I'd say. I've got like 2000+ photos and I'm at 9 s after a days use.
Take a look here;
Settings -> Applications -> Battery usage
If Android OS is above 50% then you should consider my suggestions.
Most importans, does your phone get hot and use a lot of battery without heavy use?
Removing your external SD card and rebooting your device isn't that much work. If that gets rid of your problems, then reformat your SD card.
FAT32 isn't the most robust filesystem.
Best regards,
/Pontus

how can i remove the languages which i dont need?

what's causing the battery drain inside Android OS
After doing further investigations with watchdog, the Android OS battery drain is caused in stand-by by:
1. suspend (linux process)
2. events/0 (linux process)
They use heavily the processor while in standby... I've seen alert of up to 80% of CPU in both processes.

Related

Possible cause and solution to X10 Battery? -"No Sleep Bug"

Hey guys,
Just updated to the x10 after my samsung galaxy died on me, so far i am rather happy - except for the lack of root, but that will come.
I have noticed many complaints on the forum about battery life, and have experienced the same thing myself. From my experience, i think this looks like the same issue that was faced on a leak of 1.6 for the galaxy - it was referred to as the "No Sleep Bug".
TBH, the name says it all - for some reason, in many builds of android 1.6, phones were not sleeping correctly. There are many theories as to why, from cpu not being allowed to sleep, to permanent communication with google servers.
Despite all these different theories, one thing seemed to fix the problem - turning off all location services. Some people argue that a different carrier build, turning off just 'share with google' under location, turning off just AGPS etc. would fix it, but from my experience, the only real way to fix the issue was to turn off all GPS usage unless you need it. The once you have used it, reboot your phone.
This fix obviously sucks, and a new fix has recently been released by a veritable android-demigod around the Galaxy.
HERE IS A THREAD ABOUT NO SLEEP ON i7500 GALAXY;
(ok, some stupid rule says i can't post links - can a mod help me out?)
HERE IS THE FIX FOR THAT PARTICULAR BUG;
(ok, some stupid rule says i can't post links - can a mod help me out?)
LINKS ARE IN POST #5 - THANKS TO ONDOTEAM (would still be nice to get them in this original post though)
Now, from my experience, no sleep behave exactly the same way on the x10 as it does on the Galaxy;
1) I turn of all location services, and my battery life at least doubles.
2) After said turning off of services, 'spare parts' no longer says 100% running time under battery usage - in fact it can be as low as 10%.
These two factors are identical to my experience with Galaxy. SO; is there any way drakaz's fix can be applied to our X10's? It seems to me that the files he mods are standard Android system files, not sony/samsung specific.
Now i am no developer, so i dont know it this is possible - the first question that comes to mind for me is "do we need root access, or can this be done through developer tools using the android SDK?"
Can anyone help shed anymore light on this?
Seems to work for me. I disabled all location services. Spare Parts went down from 100% to 7.6%.
I'll just have to enable GPS when I need to use it..
Awesome! Glad to hear it has helped.
Let's keep testing this guys - if it does show up to be a big cause, then perhaps the devs around this place can help is figure out a patch for Drakas' mod to make it work with our x10's!
n3man said:
Awesome! Glad to hear it has helped.
Let's keep testing this guys - if it does show up to be a big cause, then perhaps the devs around this place can help is figure out a patch for Drakas' mod to make it work with our x10's!
Click to expand...
Click to collapse
Hello send me a PM with links, I will try to post it
http://androidforums.com/samsung-i7500/61168-no-sleep-has-nothing-do-anything.html
http://androidforums.com/samsung-i7500/78471-no-sleep-bug-fixed-drakaz.html
Links from n3man
No sleep is easy to fix, took me a while to figure it...
Turn your screen brightness from manual to auto, spare parts will now start showing proper running stats, no more 100% running.
The screen is a little dark in auto but it will cure the 100% running.
GPS and location services etc make no difference to my X10i, I am running the 1.6 version unbranded UK handset, the only thing to stop mine running 100% is to put the screen on Auto.
ronnyuk said:
No sleep is easy to fix, took me a while to figure it...
Turn your screen brightness from manual to auto, spare parts will now start showing proper running stats, no more 100% running.
The screen is a little dark in auto but it will cure the 100% running.
GPS and location services etc make no difference to my X10i, I am running the 1.6 version unbranded UK handset, the only thing to stop mine running 100% is to put the screen on Auto.
Click to expand...
Click to collapse
LOL... this is already going the way of the Galaxy thread!
My phone came out of the box with auto-brightness and i never changed that option, yet i still had no sleep.
Drakaz has done some fairly deep digging and is next to certain that it is an artefact of the geolocation bug discussed in the thread in which the problem was fixed.
I can't see "Spare Parts" in About Phone -> Battery Info
tuxStyle said:
I can't see "Spare Parts" in About Phone -> Battery Info
Click to expand...
Click to collapse
Me neither.. I was wondering about that myself!..
Although I'd half assumed that they were referring to the total "up-time" figure which you can see at the bottom of the "about phone"; "Status" screen.. But perhaps not.?
Spare Parts is a standalone Program ...
(i don't know for sure if it is in the market or downloadable as .apk from somewhere here in the forum ...)
Bax
im_iceman said:
Me neither.. I was wondering about that myself!..
Although I'd half assumed that they were referring to the total "up-time" figure which you can see at the bottom of the "about phone"; "Status" screen.. But perhaps not.?
Click to expand...
Click to collapse
You can download it here
Spare parts is indeed available from the market - it is a much more powerful tool for indicating battery usage than the regular android methods. The galaxy stared on 1.5 which had NO indicator of battery usage statistics at all, so we all learned about spare parts very fast.
Perhaps that is why no x10 users have realised about the potential no sleep bug; because so far only the android usage indicators have been used?...
Anyway, hopefully this can help us all understand the way our phones are working better together
n3man said:
Spare parts is indeed available from the market - it is a much more powerful tool for indicating battery usage than the regular android methods. The galaxy stared on 1.5 which had NO indicator of battery usage statistics at all, so we all learned about spare parts very fast.
Perhaps that is why no x10 users have realised about the potential no sleep bug; because so far only the android usage indicators have been used?...
Anyway, hopefully this can help us all understand the way our phones are working better together
Click to expand...
Click to collapse
14% it's mine value for running time, not 100%. By the way thats 30 minutes of 210 in total :S
I'm also experiencing "No sleep bug" after i used GPS. I use Battery Graph to plot my power consumption and after I use GPS, I can clearly see that power consumption is high even if i turn the phone in plane mode.
In addition SE widget, used to turn on/off GPS, seems to not work very well for me. So, to fix the bug, i manually disable GPS in parameter menu and restart my phone. After that power consumption is hardly null (20% in 8h with MP3 on almost all the time).
mimok said:
I'm also experiencing "No sleep bug" after i used GPS. I use Battery Graph to plot my power consumption and after I use GPS, I can clearly see that power consumption is high even if i turn the phone in plane mode.
In addition SE widget, used to turn on/off GPS, seems to not work very well for me. So, to fix the bug, i manually disable GPS in parameter menu and restart my phone. After that power consumption is hardly null (20% in 8h with MP3 on almost all the time).
Click to expand...
Click to collapse
Do you have 3G always on?
My phone has no trouble sleeping.
Gps hasn't really been an issue but I keep it off when not needed.
Here's my solid settings:
1) No auto sync
2) No moxier
3) Gps off
4) Restart after using wireless
As long as it's like this my phone lasts 2 days easily
ondoteam said:
Do you have 3G always on?
Click to expand...
Click to collapse
Yes, but I made a lot of test with and without 3G enabled and 3G seems not to be a problem for me. I think my problem comes from GPS.
ondoteam said:
Do you have 3G always on?
Click to expand...
Click to collapse
3G always on.
n3man said:
LOL... this is already going the way of the Galaxy thread!
My phone came out of the box with auto-brightness and i never changed that option, yet i still had no sleep.
Drakaz has done some fairly deep digging and is next to certain that it is an artefact of the geolocation bug discussed in the thread in which the problem was fixed.
Click to expand...
Click to collapse
I have been playing with mine for a month to work out what caused mine to not go into sleep, I keep GPS wifi etc on 24/7 but in spare parts I was running 100%, after numerous reinstalls and removing everything i chanced on turning on auto screen brightness, now when i unplug my x10 the running sits at the correct level.
No Geolocation bug here
I have this problem with 100% on and off. Sometimes when I check its under control (~10%), other times its at 100%. I have GPS off, no WiFi, auto brightness... don't know why it sometimes just gets stuck at 100% :/

[13.JAN] standby 60mA - 5 Tips that may help

hey
1.
just use system panel to kill "ALL" processes include system process
then its will be back to normal mA
[well its better then restarting the phone no ?]
2.
Forgetting to disable bt or gps in winmobile
can cause that too
3.
remove with titanium backup CSPeopleSyncService [ thx to fruchtfliege ]
dont like apps that cant be controlled and do what they like
4. same apps make drain more in standby i think cos its not really full standby
5. unmount sdcard when u gonna "put ur phone to sleep"
[this one should help a lot but in testing for 8 hours gonna try it on nites]
that doesn't always work, if you don't isolate the cause then the app will re-open itself at times.
as i mentioned in some other threads, the 60ma bug is caused by the process "CSPeopleSyncService". you can kill this process as you wrote, or just disable syncing facebook and google contacts in options. at least i sync them once a day automatically (don't want to loose the sync feature), and the 60ma bug never came back...
fruchtfliege said:
as i mentioned in some other threads, the 60ma bug is caused by the process "CSPeopleSyncService". you can kill this process as you wrote, or just disable syncing facebook and google contacts in options. at least i sync them once a day automatically (don't want to loose the sync feature), and the 60ma bug never came back...
Click to expand...
Click to collapse
Might be a nOOb question but how do you kill that CSPeopleSyncService process?
I've been suffering from this 6mA for a couple of minutes and going to 60mA thing. Rebooting 'might' work but I don't want to monitor the consumption every hour.
If you don't feel like disabling sync, Quick Reboot (free in market) is a good alternative. Some builds have hot rebooting built-in, even easier.
Back in the game in less than 30 seconds, as opposed to the rather lengthy full reboot.
StephanV said:
If you don't feel like disabling sync, Quick Reboot (free in market) is a good alternative. Some builds have hot rebooting built-in, even easier.
Back in the game in less than 30 seconds, as opposed to the rather lengthy full reboot.
Click to expand...
Click to collapse
LoL just downloaded it. It really says what it does. Click it and the device reboots without a single warning.
lukesan said:
Might be a nOOb question but how do you kill that CSPeopleSyncService process?
I've been suffering from this 6mA for a couple of minutes and going to 60mA thing. Rebooting 'might' work but I don't want to monitor the consumption every hour.
Click to expand...
Click to collapse
the best way is a taskkiller. i'm using systempanel light (included in mdj hd builds), where you can add programs and processes to ignore list. but as i said, changing sync to once a day fixed my problem with 60ma in standby completely! i don't know why
StephanV said:
If you don't feel like disabling sync, Quick Reboot (free in market) is a good alternative.
Click to expand...
Click to collapse
lukesan said:
LoL just downloaded it. It really says what it does. Click it and the device reboots without a single warning.
Click to expand...
Click to collapse
I think he meant fast reboot. It just kills everything so it's as if you've just rebooted (sort of).
johncmolyneux said:
I think he meant fast reboot. It just kills everything so it's as if you've just rebooted (sort of).
Click to expand...
Click to collapse
No, I mean Quick Reboot. I'm still not convinced this battery drain is caused by certain processes, so Fast Reboot isn't an option imo.
StephanV said:
No, I mean Quick Reboot. I'm still not convinced this battery drain is caused by certain processes, so Fast Reboot isn't an option imo.
Click to expand...
Click to collapse
Fair enough. So you just mean reboot then. Ah well.
No, it's hot rebooting: basically only rebooting Android (it's a little more complex than that).
I used to do regular reboots but they take way longer.
im suffering from this in Desire HD build
wanna kill this permanently without quick reboot (since my ROM is not Deodex) completely.
disabling sync? its all "disabled"
You all might try a different SD card, had the 30ma bug, was 60. Changed micro SD card, re loaded android, now 3-7ma
Sent from my HTC Desire using XDA App
Just saying, I reboot using dev tools: bad behavior-> crash system server. Probably not the cleanest way to do it but it works.
fruchtfliege said:
as i mentioned in some other threads, the 60ma bug is caused by the process "CSPeopleSyncService". you can kill this process as you wrote, or just disable syncing facebook and google contacts in options. at least i sync them once a day automatically (don't want to loose the sync feature), and the 60ma bug never came back...
Click to expand...
Click to collapse
Where did 'find' this information?
Without background sync enabled and facebook not even installed it can draw up to 60mA.
I'm not sure it's that single process causing the drain to be honest.
(Please don't take this the wrong way )
For me I think it is after I turn on WiFi and then back off again. It never goes back to 7ish mA. It stays at around 65mA as if WiFi was still on.
I'm using darkstone SuperRAM FroYo v1.5.
strange?
I just found something interesting while using autokiller.
In the processes (i had the high drain again) there was twice the 'android system' mentioned.
I killed one of those entries, and the drain went back to 6mA.
Of course, can't be sure enough so i rebooted the phone, played with it a little and after 10 minutes of standby, i checked again. 54mA.
Again, Autokiller > processes and twice the android system. Killed 1 of them and back to 7mA.
I can't say why this happens, because in older builds (MDJ 2.4 Froyo clean w/ it's own kernel i don't have that issue).
I am no DEV or programmer, but maybe it's something others could test as well? I've been playing with this and trying to find out why this happens ever since the hastarin 8.6 kernel was released and I noticed it only happens with later kernels and mostly on RAM builds.
Just my 2 cents (or local currency my 2 bani )
I found this on other post
DarkStone1337 said:
Lets see how many people will ignore this...
To fix high power drain / usage in standby (60mA or 70mA) disable 'Use wireless networks' in Settings>Location menu. You will now get 7mA or less constantly. I discovered this as the main culprit last night. Also works in other builds.
Click to expand...
Click to collapse
For whatever its worth: On MDJ Froyo HD 4.6 (and earlier builds) I can get 3-6mA in standby but anytime I change the Kernel or framework-res.apk and reboot, standby consumption goes up to around 55 mA all the time. Doesn't matter how many times I reboot.
I've been correcting this by rebooting to WM and recopying all the files in the android folder (CLRCAD.exe, Haret.exe, initrd.gz, rootfs.img, startup.txt, system.etx2, ts-calibration) except zImage (because I'm using a different Kernel than came with the build) and data.img. When I boot back to Android, back to 3-7 mA. I don't know why this works, but it consistantly does. At least for me.
another tip by darkstone:
turn off the "use Wireless" in the Locations Settings help to solve the problem if you are having high drain when you got data/wifi

Combatting the Sleep Of Death

Not sure how to search on the XDA app, so please forgive me if this is already a topic... does anyone have any tips/tricks for avoiding the Sleep Of Death?
-XDA Premium on CM7 Nook Color
What version CM7 are you on?
Latest SOD fixes were put into a kernel which is available as separate zip but have not made it into a nightly build as the build has not been working since mid November.
You may be able to use the kernel update if you are on a fairly recent version or you could switch to the KANG MiRaGe ROM which does include the kernel fix together with other improvements which have not made it into a nightly. Look for the main MiRaGe thread in the development forum.
Other than that before applying this kernel fix people were using various techniques for switching wifi off rapidly when suspending which seemed to be a work-around.
I haven't had a SOD since using the new kernel when it first appeared and as now as embodied in MiRaGe.
I'm on cm7.1.0, I don't get SOD all the time just on occasion without pattern
-XDA Premium on CM7 Nook Color
Widgets...
Don't use Beautiful Widgets. That causes SoD's. Other widgets may cause the same problem.
I have found that every widget that has weather causes SOD for me. All others are okay.
Sent from my NexusHD2 using xda premium
I had to switch ROM's from MIUI to Phiremod to get this to stop. Works fine now even with Beautiful Weather Widget active.
The KANG ROM you describe is the one I have been on since it was introduced. I had the SOD fix but it still occured albeit infrequently. My "fix" is to just shut my Nook down every night. I haven't had one since.
Setting wifi to shut off when screen goes off also works for me (the issue seems to be wifi related). You can also use tasker to shut wifi off when the screen turns off.
Both beautiful widgets and the go weather widgets have caused the sleep of death for me. Without any widgets, my Nook would be up for weeks at a time.
stephen_liu said:
Setting wifi to shut off when screen goes off also works for me (the issue seems to be wifi related). You can also use tasker to shut wifi off when the screen turns off.
Both beautiful widgets and the go weather widgets have caused the sleep of death for me. Without any widgets, my Nook would be up for weeks at a time.
Click to expand...
Click to collapse
Indeed the tasker wifi fix worked for me
-XDA Premium on CM7 Nook Color
vessamj, could you explain what you did with Tasker to prevent SOD?
Quick Tasker fix for SOD
Thomas Droid said:
vessamj, could you explain what you did with Tasker to prevent SOD?
Click to expand...
Click to collapse
Certainly...
I'm assuming you have a basic understanding of how to use Tasker, if this is not so please let me know and I'll be more in-depth. I created a profile named WIFISLEEP with the condition being "Display Off". The first step of the internal task is to wait 5 minutes, with the "IF" box checked and the "IF" condition reading "%SCREEN ~ off". The second step is to set Wifi to off, with the same "IF" condition as the first step. The third step is to play a notification sound (not required, but nice to be assured that your profile actually executes), with the same "IF" condition as the first two steps. I already had a "Display On" profile (for setting the CPU governor and speed), so I just added the next part to the pre-existing profile. If you don't already have such profiles you can just create another profile (named something like "Display On"). The condition, of course, being "Display On", and the first task being "WiFi set On" with the "IF" condition being "%SCREEN ~ on". The second task being "WiFi Net Action Reconnect", with the same "IF" condition as the first task. Not only does this fix my SOD problems, but it will also save you quite a bit of battery when not in use for long periods of time. There will be a slight (10-20 sec.) delay waiting for the WiFi to reconnect after you turn the screen on (as long as it's been more than 5 min of course), but it's definitely worth it. The reason I have a 5 minute wait is so that downloads can finish before they are cut off, you can set the wait time longer if your downloading times take longer. Overall, this did the trick for me on SOD.
*EDIT* I did also get ahold of a much better WiFi management application called Green Power. Instead of having Tasker turn off the WiFi after 5 minutes of the screen being off no matter what, Green Power throws in a few more conditions to look for. Through Green Power I have it set to turn off the WiFi after 20sec of the screen being off IF WiFi traffic is at 1Kb or less. If it is not at 1Kb or less, the app will re-check the traffic every 10sec until it is at or below that level, then shut it off. Also, while the display is off, Green Power will re-enable the Wifi for 2min every 30min to allow data sync to occur. When the screen is turned on, WiFi will be re-enabled automatically. However, if the device can't successfully connect (after 30sec) OR if the strength at connection is less than 20% signal, the WiFi will be temporarily disabled so that there is no battery wasted continually trying to connect/stay connected. This setup is perfect for finishing a download after the screen goes off and then putting the WiFi to sleep, and quickly giving up on the reconnect if there is low/no signal and trying again later. This also fixes the SOD for me, with better overall management than what Tasker can provide as far as WiFi is concerned.
Hey guys, just wanted to post what I used to fix my problems related to SoD.
I was getting SoD all the time with any ROM that I used, no matter 7.1.0 or 7.2. So recently i started fresh on a 7.1.0 stable rom and moved the ROM from SD to EMMC, but the problems still persisted.
After seeing this thread, it gave me some insight regarding the root problem... For me, it seemed that wifi being on when the screen was off was the culprit. So I downloaded the free app called "Easy Battery Saver+ Task Killer" found here:
https://market.android.com/details?...SwxLG51bGwsImNvbS5lYXN5LmJhdHRlcnkuc2F2ZXIiXQ..
I set it to the "General Power Saving Mode" profile, which basically turns off the wifi whenever the screen is off.
That seems to have fixed the problem, now I never get a SoD! So I recommend giving it a try!
If you are interested in my opinion...
switch81 said:
Hey guys, just wanted to post what I used to fix my problems related to SoD.
I was getting SoD all the time with any ROM that I used, no matter 7.1.0 or 7.2. So recently i started fresh on a 7.1.0 stable rom and moved the ROM from SD to EMMC, but the problems still persisted.
After seeing this thread, it gave me some insight regarding the root problem... For me, it seemed that wifi being on when the screen was off was the culprit. So I downloaded the free app called "Easy Battery Saver+ Task Killer" found here:
https://market.android.com/details?...SwxLG51bGwsImNvbS5lYXN5LmJhdHRlcnkuc2F2ZXIiXQ..
I set it to the "General Power Saving Mode" profile, which basically turns off the wifi whenever the screen is off.
That seems to have fixed the problem, now I never get a SoD! So I recommend giving it a try!
Click to expand...
Click to collapse
The problems I see here are that there is no WiFi traffic check (at least from what you've explained) before it kills the WiFi, and the Task Killer part. Task Killers actually cause more battery usage because the Android System will have to use more battery to re-start many of the killed processes. This is because the OS is programmed to keep some/most of those background processes running and will continually re-start them no matter how many times a task-killer stops them. It is better to have apps such as Ram Manager Pro (http://forum.xda-developers.com/showthread.php?t=1111145) or V6 SuperCharger script (http://forum.xda-developers.com/showthread.php?t=991276) to optimize your RAM for much better smoothness and crisp response, with much better battery savings. Combine one (or both depending on what parts you use for different activities) with Green Power app, which will give a hand-full of extra conditions to look for before turning off the WiFi at screen off and thus fixing your SOD and providing better performance with extra battery savings. I hope this helps!

[Q] Batter Drain When Not Using N10

I am not sure if this is a legit complaint, but sometimes I don't use my N10 for a few days and my tablet will be completely drained. I really only use my tablet for some general browsing/emails/videos. I generally turn off all automatic updates/notifications/etc as I know I may go days between use and want to conserve as much battery life as possible.
With that said I have noticed lately that my entire battery will drain after 3-5 days even if I am not using. Is that just the case? Or should I expect to not lose too much battery when inactive. I looked and 90% of the batter drain was the Android OS.
Any help would be appreciated.
Hi,
The same problem just happen to me. I've fully charged my tab yeaster day night and I found her with only 14% left. Didn't use it the last 23 hours.
WTF!
I've attached a screenshot
admiralwilly said:
Hi,
The same problem just happen to me. I've fully charged my tab yeaster day night and I found her with only 14% left. Didn't use it the last 23 hours.
WTF!
I've attached a screenshot
Click to expand...
Click to collapse
When your N10 is sleeping, you still have several things happening such as looking for updates, synchronizing RSS feeds (like your greader), WIFI connection and communication. By looking at the programs that consume the most battery during those times, you can start tackling them 1 by 1. There are a few apps that will help with battery life and to reduce drain. You can also try turning WIFI off when not in use and you don't want updates. You can also change your WIFI - Advanced settings to Keep WIFI on during sleep only when you are plugged in. You can google battery life during sleeps as there are lots of threads about this topic, which is more Android related than N10.
Just like SmokinCharger said there are other apps running, try turning off Sync initially and don't forget to turn off WiFi, this may save a little your battery, if it doesn't try uninstalling some apps that may cause this, like Facebook.
"This Story Ends Where It Began" - Octavarium (Dream Theater)
Sent from my GT-I9505
admiralwilly said:
Hi,
The same problem just happen to me. I've fully charged my tab yeaster day night and I found her with only 14% left. Didn't use it the last 23 hours.
WTF!
I've attached a screenshot
Click to expand...
Click to collapse
That graph looks exactly like a wakelock going on all the time and your tablet never actually sleeps. OP probably has the exact same problem.
My own personal Nexus 10 will lose about 1% battery every 20 days when sleeping.
Thanks for the help. I really do t use that many apps and don't have Facebook. I have attached some pics. Media server is using all my battery? I even turned my wifi off while sleeping.
Any other ideas?
seagood3 said:
Thanks for the help. I really do t use that many apps and don't have Facebook. I have attached some pics. Media server is using all my battery? I even turned my wifi off while sleeping.
Any other ideas?
Click to expand...
Click to collapse
Do you have your N10 set as a media server? If not, media server could be just looking for changes in your N10 in order to have media available - i.e. downloaded a jpg and to show up in Gallery. I believe there is a setting to not allow it to auto detect, but I don't remember where in the settings it is.
Don't have it set up as a media server. Like I said I really don't use it too much.
Enigma - you only lose 1 percent? How is yours set up?
seagood3 said:
Thanks for the help. I really do t use that many apps and don't have Facebook. I have attached some pics. Media server is using all my battery? I even turned my wifi off while sleeping.
Any other ideas?
Click to expand...
Click to collapse
While i may not say there is a wakelock, you can clearly see that because the app has been on and running for over 14 hours time that that process is what is causing the wakelock and draining all your battery. I forget how to fix the media scanner thing, I know I have seen it before in the forum for the Galaxy nexus, which was my old phone. What Media Scanner is is the process that scans your storage for files so that it has an index of what is on the device and so it can display the files and folders for you in Windows. most likely Media Scanner is stuck on a specific file and cant get past it so the process is staying on forever.
My personal setup is the RaSaber ROM (not available anymore) 4.2.2 and KTManta kernel (whatever the last 4.2.2 version was). I probably will never upgrade to 4.3 because this setup is perfectly smooth and the only bugfix that 4.3 brings that I would ever care about does not matter to me since I never hit the bug (playing video in specific apps using hardware rendering). I mainly use my tablet for games and book reading on trips, so it goes long periods without use these days. I never charge it in between because I know it will still have basically the same exact battery level as I left it whenever the next time I pick up the tablet is. I posted some screenshots before in some other thread a while back because no one believed me on the battery life. I went something like 70 or so days of idle and was at 97 or 98% still, then went on to use it for gaming and got like 7 hours of screen on time still before I needed to charge the thing.
seagood3 said:
Don't have it set up as a media server. Like I said I really don't use it too much.
Enigma - you only lose 1 percent? How is yours set up?
Click to expand...
Click to collapse
Your tablet is searching for more media, maybe you can check the settings and see if there's anything set up to be syncing. Also you can try installing another ROM to check.
Sent from my GT-I9505G using Tapatalk 4
seagood3 said:
I am not sure if this is a legit complaint, but sometimes I don't use my N10 for a few days and my tablet will be completely drained. I really only use my tablet for some general browsing/emails/videos. I generally turn off all automatic updates/notifications/etc as I know I may go days between use and want to conserve as much battery life as possible.
With that said I have noticed lately that my entire battery will drain after 3-5 days even if I am not using. Is that just the case? Or should I expect to not lose too much battery when inactive. I looked and 90% of the batter drain was the Android OS.
Any help would be appreciated.
Click to expand...
Click to collapse
I had a similar problem, after upgrading to Android 4.3 a couple months back. The battery seemed to run down much quicker when the screen was turned off. However, the problem seems to have gone away now. I'm not sure if there was some media scan or whatever running in 4.3 that finally finished or if it was a webpage I had loaded in my browser that kept refreshing itself. See if you can reproduce the problem with all browsers, email, video players turned off. Check the app switcher to make sure nothing is loaded. If so, the problem might be in the OS itself. Maybe it will go away with time, as it did for me. :victory:
Hi,
You can try leaving it off, the battery will stand by then . And as Nexus 10 boots really fast you won't see any problems (mine has 2GB free and booted in 20-25sec).
Hope this suggestion helps ,
~Lord
"We think so supersonic and we make our bombs atomic" - Eagle Fly Free (Helloween)
Sent from my Nexus 10 using Tapatalk HD
I found this in relation to this topic on a different site:
"All you need to reset is that media scanner: Settings > Apps > All > Media Storage: Force stop & Clear data. Then, reboot."
Most people seem to think this works. In a follow up, someone posted this:
"I had the same problem and none of these fixes worked. It turns it that my Spotify was the problem. It had crashed and could not find the media files i had downloaded. I uninstalled Spotify and that solved the problem"
Good luck.

A temporary fix for battery drain.

By now, most of you know there is a problem with battery drainage on the Snapdragon version. I along with many other people have fixed this by doing the following steps:
1. Clear Cache
2. Factory Reset
3. Opt out of all background reporting to Google and Samsung. (Google Location is okay)
4. Don't update any of the pre-installed apps through the play store that your not going to use.
5. Turn off auto update in the pay store.
6. Disable any app you don't want in the application settings.
7. Set location settings to GPS only.
8. Set WiFi to sleep when the screen is off or stay awake only when charging.
9. Turn off WiFi and Bluetooth scanning.
Last but not least DO NOT use an SD card unless your phone doesn't have the ejection bug. Every time you see the SD notification your phone is scanning the SD card. This can use a lot of power in the background as it wakes up the phone and doesn't allow it to go into its deep sleep state.
Also make sure you set it up as a new device instead of copying information from an old phone.
(Some are also reporting an improvement by just turning off Google and Samsung background reporting without even doing a factory reset.)
(Also DO NOT disable any packages using a package disabler app) Just disable apps you don't want through the application settings. I along with many others have reported worse battery life after disabling some of the packages.
For those of you (1 of you) saying this is pure snake oil, the following screenshots make for some compelling proof that it is not.
The first set of screenshots are of my battery performance before taking these steps and then some screenshots after taking these steps.
I've also disabled scanning for nearby devices, since my environment doesn't have any I can or want to connect to 98% of the time (and it can/will wake the WiFi w/o charging battery use to WiFi IIRC).
SM-G935A (US AT&T):
Settings > Connections > More connection Settings > Nearby device scanning > Off
I followed these steps this morning. I got excited when I saw in GSam that it was held awake for 0 seconds but since then it's still showing me held awake. Perhaps something I'm installing, I do notice screenwise is much higher for battery drain now. I drained a lot installing a ton of new apps so I can't go by anything yet but it seems the battery is more steadily depleting and losing less while idle. I'm interested in seeing how it performs after I go through this first cycle. Here's some screens
after reset SOT 1:47 58% left
before SOT 5:33 2% left
see how it seems to be more steady now, maybe I'm imagining it.
This post is snake oil.
Any 'fix' that starts with "clear cache" is not a fix.
nobnut said:
Any 'fix' that starts with "clear cache" is not a fix.
Click to expand...
Click to collapse
I think that may be throwing out the baby with the bath water ... I don't know whether the cache has a direct effect or not, but the other settings seem to have a measurable impact.
jrwingate6 said:
By now, most of you know there is a problem with battery drainage on the Snapdragon version. I along with many other people have fixed this by doing the following steps:
1. Clear Cache
2. Factory Reset
3. Opt out of all background reporting to Google and Samsung. (Google Location is okay)
4. Don't update any of the pre-installed apps through the play store that your not going to use.
5. Turn off auto update in the pay store.
6. Disable any app you don't want in the application settings.
7. Set location settings to GPS only.
8. Set WiFi to sleep when the screen is off or stay awake only when charging.
9. Turn off WiFi and Bluetooth scanning.
Last but not least DO NOT use an SD card unless your phone doesn't have the ejection bug. Every time you see the SD notification your phone is scanning the SD card. This can use a lot of power in the background as it wakes up the phone and doesn't allow it to go into its deep sleep state.
Also make sure you set it up as a new device instead of copying information from an old phone.
(Some are also reporting an improvement by just turning off Google and Samsung background reporting without even doing a factory reset.)
Click to expand...
Click to collapse
I wonder the true reason. I tried those steps before and that does not do the trick for me. Also, Bluetooth will sometimes just decide to eat 5% of the battery for no reason. However, the phone I get for my girlfriend (gold color, I got silver), without any adjustment out of the box can just get great battery life. Like without turn off anything. GPS is high accuracy, everything you mentioned in the post she has it on the regular setting, wifi on all the time, scanning device. The battery just keep doing great for her but terrible for me. I'm so confused regarding to this issue. Then I also tried package disabler on her phone, and it's still doing great.
nobnut said:
This post is snake oil.
Any 'fix' that starts with "clear cache" is not a fix.
Click to expand...
Click to collapse
Clearing the cache may do nothing at all. I am just sharing the steps I took to improve my battery life. You're right though. Clearing the cache most likely is not what fixed it.
The other things I have listed though (especially opting out of the Google background reporting) has improved mine and others battery life immensely. Many people have reported much better battery life after disabling the background reporting.
Like I said, I'm just listing what I did to improve my battery from draining 18% overnight in standby to only losing 2% overnight in standby.
The "fix" is to change to exynos
(Just messing guys ?)
johanbiff said:
The "fix" is to change to exynos
(Just messing guys ��)
Click to expand...
Click to collapse
Wish I could man. I don't really like buying phones out right anymore ever since getting Jump On Demand through T-Mobile. Having 3 upgrades a year without paying anything upfront is awesome.
jrwingate6 said:
Wish I could man. I don't really like buying phones out right anymore ever since getting Jump On Demand through T-Mobile. Having 3 upgrades a year without paying anything upfront is awesome.
Click to expand...
Click to collapse
Yeah I understand. It really is to bad that it has this drain, hopefully they will patch it over soon with a fix for you u.s guys.
johanbiff said:
Yeah I understand. It really is to bad that it has this drain, hopefully they will patch it over soon with a fix for you u.s guys.
Click to expand...
Click to collapse
I like the phone a lot so I'm hoping as well. If they don't have it patched by the time the G5 and HTC 10 get here, I still have 1 upgrade left until July so I may take advantage of it and get one of those two.
You most be talking about the s7 because my edge is great it's been off charge for 12hrs and my battery is at 75%
techrider6262 said:
You most be talking about the s7 because my edge is great it's been off charge for 12hrs and my battery is at 75%
Click to expand...
Click to collapse
Nope....We are in the Edge forums. If you haven't seen. Many are having battery problems with the Snapdragon version of the Edge. There are many threads you can check out here.
Now I am getting great battery life but I had to put up with terrible battery life for nearly 5 days.
I have att edge and my battery life has been super impressive I didn't do much either just disabled couple apps screen 40% auto bright wifi BT always on location when I need I been averaging 7 1/2 hour sot, kinda reminds me when I me and my wife had g2 I had amazing battery life and my wife's phone sucked ass, I feel like some phones are duds
Anyway to turn of the background reporting without doing a factory reset?
I did the steps above last night and today is my first day. To be honest it seems similar to before but I will give it some time. My WiFi is always taking 50%+ on gsam even before. Any fix for this?
gainstatom said:
I did the steps above last night and today is my first day. To be honest it seems similar to before but I will give it some time. My WiFi is always taking 50%+ on gsam even before. Any fix for this?
Click to expand...
Click to collapse
Looks like you have the WiFi bug. I had it as well when I disabled a bunch of packages. Have you disabled any packages?
Also, you could try changing the way your WiFi sleeps. Try changing it to only staying on when charging.
There is no way your WiFi should be using that much power.
Willyman said:
Anyway to turn of the background reporting without doing a factory reset?
Click to expand...
Click to collapse
This. Anyone?
JGoldz75 said:
This. Anyone?
Click to expand...
Click to collapse
Yes. Go to:
Settings - Applications - Google
Click on the 3 dots in the upper right corner and then go to Usage and Diagnostics.
For the Samsung reporting it is under the Privacy section in your settings menu.
Sent from my SM-G935T using Tapatalk
jrwingate6 said:
Looks like you have the WiFi bug. I had it as well when I disabled a bunch of packages. Have you disabled any packages?
Also, you could try changing the way your WiFi sleeps. Try changing it to only staying on when charging.
There is no way your WiFi should be using that much power.
Click to expand...
Click to collapse
Yeah I disabled almost all the packages. Do I have to enable some?

Categories

Resources