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% :/
I hope this gets out to become an addition to the standard debugging process for Android app and widget developers.
I had problems with my phone going into Deep Sleep mode recently and after searching on XDA, found a suggestion to try this app:
https://market.android.com/details?id=com.bvalosek.cpuspy
It lets you see how much time the phone spends in each CPU throttle state. I slowly removed widgets until I found the offending widget that prevented my phone from going into Deep Sleep.
Now my phone doesn't have insomnia anymore!
Anyway, this goes out to all the devs, myself included, to please include this app (or any similar functioning app, I am not a part of the company that makes it, I just found people recommending it on here) as a part of our debug process and test our apps and widgets to see if they may cause the phone to have insomnia.
Regarding this rom: http://forum.xda-developers.com/showthread.php?t=2091987
Runs great and want to thank the OP for the port. One problem. USB kernel wakelock prevents device from going to deepsleep. I attempted to use and app to force the phone to deep sleep and still, usb prevents the phone from doing such. Battery life ~6-7hours. Battery is brand new (2weeks old) so I can eliminate that as an issue. Just wanted to know if I could somehow patch this rom to fix it. Maybe something like this? : http://rootzwiki.com/topic/31879-vi...ock-fix-for-the-hp-touchpad-and-cyanogenmod9/
Hope someone has the answer or can at least get me in the right direction. Phone being dead leaving work isn't fun anymore. Thanks in advance,
-NoFear
Would this work....? http://forum.xda-developers.com/showthread.php?t=1860273
Or is there a way I can modify this patch to work with the droidx?
Might be halfway to fixing the issue...
sys/module/usbcore/drivers/usb:hub/1-0:1.0/power/wakeup
Edited the wakeup file and put disable instead on enable. Phone has now been able to deep sleep. (Might be a coincidence... Just browsing files and hoping to find something relevant). Now the problem is "usb" kernel is still running non-stop.
EDIT: After powering off and on the phone. "usb" kernel no longer is running non-stop I think I fixed it with what I did above.
I'm not seeing the battery life everyone does with the phone, and frankly I am not sure if it's a hardware or software issue.
For starters, I have excessive battery drain while on WiFi and not using the phone - about 3%/h according to BetterBatteryStats. It all seems to come from two particular wakelocks - sns_async_ev_wakelock (kernel) and WifiOffDelayIfNotUsed (partial). There is also BlockBeforeSleep but not as obvious as the other two. Also, while on data, I get another massive kernel wakelock - bman_dmux_wakelock.
Right now I have no relevant BBS or GSam screenshots, since my phone is still plugged in. However here's a screenshot of Battery Monitor Widget on a completely full charge - if there's anything wrong with the voltage or other data please tell me, my return window for the phone ends in a week -> screenshot
Tomorrow I will be going out and will use data, so I will post screenshots here and on the GSam thread. If anyone has any idea what I can do about this, please tell me - I absolutely love the phone and it pains me that I can't use it fully.
For what it's worth, the phone is running V10B - seems to be a Taiwan ROM.
First of all, I suggest you to
1. Install Wakelock Detector to determine exactly what is going on with your G2
2. Install CPU Spy to see if your G2 is even going into Deep Sleep as it should.
3. Install Greenefy (root needed) and hibernate all those nasty background apps you don't need running until you need them running.
Cheers!
Rayan said:
First of all, I suggest you to
1. Install Wakelock Detector to determine exactly what is going on with your G2
2. Install CPU Spy to see if your G2 is even going into Deep Sleep as it should.
3. Install Greenefy (root needed) and hibernate all those nasty background apps you don't need running until you need them running.
Cheers!
Click to expand...
Click to collapse
Do 1. and 2. have any benefits over BBS? I would also gladly use Greenify but I am not rooted yet.
metalboy94 said:
Do 1. and 2. have any benefits over BBS? I would also gladly use Greenify but I am not rooted yet.
Click to expand...
Click to collapse
All these apps have their own specific uses and purpose and can be used together or on their own.
The first two are for diagnostic purposes and the last one (Greenify) to avoid unnecessary data and memory consumption, thus saving battery.
Have you tried the obvious first? Starting from scratch by doing a hard reset?
Also I would really recommend you to root and get rid of all unnecessary boatware and to control things like boot up processes, startup items, fstrims, etc.
Good luck!