Fixed: defy battery drain on 2nd boot defy

theclaytons

Senior Member
Jul 12, 2012
258
114
0
Hi,

I do not have enough posts to place this in the developer forum. However I update my Defy with each nightly build and since the 2nd boot nightlies I too have experienced really poor battery drain. I have fixed this by disabling two features in Google Maps.

Go to: system settings--> Google-->Maps and Latitude

Disable both location reporting and enable location history.

Instantly my battery has gone back to previous performance and after 17 hours I have 79% left. Previously this would have been less than 30%.

some people will not like this and it disables google now (actually make sure google now is also off) but if you want better battery life over these features this works for me.
 
Feb 15, 2011
7
2
0
I did the same and the battery consumption is reduced.

But using Better Battery Stats app I found out that my device won't go to sleep because of my WiFi. Wlan_rx_wake is always running. Is it the same for you ? Is there anyway to switch off WiFi automatically.

My config is same as yours.

Sent from my MB526 using xda app-developers app
 

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
Hi,

I do not have enough posts to place this in the developer forum. However I update my Defy with each nightly build and since the 2nd boot nightlies I too have experienced really poor battery drain. I have fixed this by disabling two features in Google Maps.

Go to: system settings--> Google-->Maps and Latitude

Disable both location reporting and enable location history.

Instantly my battery has gone back to previous performance and after 17 hours I have 79% left. Previously this would have been less than 30%.

some people will not like this and it disables google now (actually make sure google now is also off) but if you want better battery life over these features this works for me.
Hi,
@theclaytons : thanks a lot for your tip about battery drain issue ! I've talked about that in Dev Thread (http://forum.xda-developers.com/showthread.php?t=1768702&highlight=wait+and+see&page=1129). It works perfectly !
Long life on XDA !
 
Last edited:

theclaytons

Senior Member
Jul 12, 2012
258
114
0
One more thing

Hi,
@theclaytons : tkanks a lot for your tip about battery drain issue ! I've talked about that in Dev Thread (http://forum.xda-developers.com/showthread.php?t=1768702&highlight=wait+and+see&page=1129). It works perfectly !
Long life on XDA !
No problem and thanks for the stuff in dev forum. This is post number 2 so maybe 8 more I'll be able to do it myself. There is still something else going on as I get occasional battery drain. My latest theory is around the method in wich you charge the defy or airplane mode itself. The last time I charged the defy from my pc via USB and I had amazing battery life and used 12% in 8 hours with some text and data and driving I.e. no wifi. Then it went to airplane mode and the next day the battery drain was significantly worse. So either USB charging is better than wall charger for some odd reason or airplane mode triggers some battery heavy process that never dies. I can't see this in the battery stats other than phone idle and screen. Turning off phone does not resolve either.

I'm continuing to investigate optios but my last full charge got 36 hours and had 19% left before I charged.
 
  • Like
Reactions: woodman

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
No problem and thanks for the stuff in dev forum. This is post number 2 so maybe 8 more I'll be able to do it myself. There is still something else going on as I get occasional battery drain. My latest theory is around the method in wich you charge the defy or airplane mode itself. The last time I charged the defy from my pc via USB and I had amazing battery life and used 12% in 8 hours with some text and data and driving I.e. no wifi. Then it went to airplane mode and the next day the battery drain was significantly worse. So either USB charging is better than wall charger for some odd reason or airplane mode triggers some battery heavy process that never dies. I can't see this in the battery stats other than phone idle and screen. Turning off phone does not resolve either.

I'm continuing to investigate optios but my last full charge got 36 hours and had 19% left before I charged.
Ok thanks, good to know that. I will remember if necessary....
 

okij

Senior Member
Oct 24, 2012
1,649
3,633
143
Düsseldorf
An additional great workaround against battery drain in sleep mode!

... There is still something else going on as I get occasional battery drain. ...
First of all, thanks for your findings!

I think that I found a workaround for the "something else going on" on the FAQ thread in a post by -=lov=- under http://forum.xda-developers.com/showpost.php?p=33159734&postcount=389.

Since I too am not able to post in the dev section yet, I posted myself in the FAQ thread (http://forum.xda-developers.com/showpost.php?p=33223114&postcount=398), asking that somebody gives a hint to -=lov=-'s workaround in the dev thread so that Quarx and the others can take notice.

Because I find this workaround important for everybody using the current custom kernel, I copy/paste my post from the FAQ threat to here too:


If someone has battery drain in sleep mode, you can try to do this steps:
1. Reboot phone. Wait for 10-15 minutes.
3. Insert the USB - nothing happens on the phone. (Notifications Debugging and connect via USB does not appear).
4. Take out the USB.
5. Reconnect USB wait minute or so.
6. Take out the USB.
Now device should sleep correctly.
Tested on latest CM10-20121018-NIGHTLY-mb526.zip with update update_for_18.10.zip

This is a really great workaround against battery drain in sleep mode! :good: :good: :good:
This method works very well for me and is always reproducable!


Before I had about 45 mA/h (2,5 %/h) while deepsleep during day (with 3G on) and about 30 mA/h (1,8 %/h) while deepsleep during night (by using JuiceDefender app, 3G and WIFI are off most of the time).

After appliing this method (which unfortunately has to be done after every reboot), i have just about 25 mA/h (1,5 %/h) while deepsleep during day and about 8 mA/h (0,5 %/h) while deepsleep during night, which are similar to the good numbers I had under Gingerbread.

BTW, using KSM, zRam and Swap don't influence battery drain, at least not significantly, in my experience. I got the above mentioned drains with KSM and zRAM enabled!

However, disabling "settings > location > access to my location" and "google > maps and latitude" options, as posted a couple of times on the development thread, *does* have some impact on battery drain, so I keep these options disabled.

I'm reading the development thread http://forum.xda-developers.com/showthread.php?t=1768702 for a couple of weeks now and unfortunately it seems that they haven't taken notice of -=lov=-'s great finding yet. :( I think that there is something about the USB drivers not properly initialized in the Custom Kernels yet, which leads to the much discussed battery drains. I'm quite sure that this should be fixable by Quarx.

Unfortunately, I cannot post in the development thread yet (actually this is my very first post because I found this topic this so important).

Therefore I would like to ask somebody on this FAQ thread to try this method himself and give a hint
on the development thread http://forum.xda-developers.com/showthread.php?t=1768702, so that the
developers and especially Quarx can take notice and finally fix the battery drain caused by the USB driver
bug (or whatever it is). :fingers-crossed: :highfive: :victory:
Thank you for your support!

Thanks to -=lov=- for his great finding and to Quarx for his superb CM10 ROM and Custom Kernel (if he is reading this thread nonetheless...) :D
Okij

My current config: Defy+, Quarx CM10 2012-10-18 NIGHTLY + Custom Kernel from 24.10.,
[email protected], [email protected], [email protected], [email protected] / Interactive / SIO / KSM enabled / zRam 18%
 

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
Hi okij,
I've just shared your last post in dev thread. I hope -=lov=- findings will work for everybody and also that Quarx will take a look at this USB fail...

Sent from my Defy green lens running last cm10 Quarx build
 
  • Like
Reactions: ralphx10 and okij

okij

Senior Member
Oct 24, 2012
1,649
3,633
143
Düsseldorf
Hi okij,
I've just shared your last post in dev thread. I hope -=lov=- findings will work for everybody and also that Quarx will take a look at this USB fail...

Sent from my Defy green lens running last cm10 Quarx build
Hi @frpriot,

thanks a lot for forwarding the link so quickly to the dev thread! :highfive:

So far there hasn't been a direct response to the USB drivers issue (besides 1 or 2 thanks), but as always there are a lot of issues talked about on this main dev thread at the same time... :)

So let's wait and hope that the right people pick this issue up! If this shouldn't happen, it might be a good idea to give a hint in the thread http://forum.xda-developers.com/showthread.php?t=1908687 too, since Quarx seems to take part actively there himself. Could you in this case post there too? (I'm now still missing 7 posts to reach the magic 10 first posts... ;))

BTW, there already are some positive responses to the described workaround in a German forum at http://www.android-hilfe.de/root-ha...el-jb-defy-update-11-10-a-18.html#post4325150 ff.

Cheers
Okij
 

staarbreaker

New member
Mar 14, 2012
3
9
0
CBA
I did the same and the battery consumption is reduced.

But using Better Battery Stats app I found out that my device won't go to sleep because of my WiFi. Wlan_rx_wake is always running. Is it the same for you ? Is there anyway to switch off WiFi automatically.

My config is same as yours.

Sent from my MB526 using xda app-developers app
I had a similar problem some time ago, with the phone connected to my home wifi network it would have unusual awake times, draining the battery very quickly.
I found out using the Network Log app (it's in the Play Store) that something on my network keep sending broadcast packets, that the phone would respond, thus the wifi wakelock.
That something was the NetBios name discovery service, enabled by default on Windows, but hardly used anymore, at least on home networks, turning it off solved the issue for me.
 

theclaytons

Senior Member
Jul 12, 2012
258
114
0
First of all, thanks for your findings!

I think that I found a workaround for the "something else going on" on the FAQ thread in a post by -=lov=- under http://forum.xda-developers.com/showpost.php?p=33159734&postcount=389.

Since I too am not able to post in the dev section yet, I posted myself in the FAQ thread (http://forum.xda-developers.com/showpost.php?p=33223114&postcount=398), asking that somebody gives a hint to -=lov=-'s workaround in the dev thread so that Quarx and the others can take notice.

Because I find this workaround important for everybody using the current custom kernel, I copy/paste my post from the FAQ threat to here too:





This is a really great workaround against battery drain in sleep mode! :good: :good: :good:
This method works very well for me and is always reproducable!


Before I had about 45 mA/h (2,5 %/h) while deepsleep during day (with 3G on) and about 30 mA/h (1,8 %/h) while deepsleep during night (by using JuiceDefender app, 3G and WIFI are off most of the time).

After appliing this method (which unfortunately has to be done after every reboot), i have just about 25 mA/h (1,5 %/h) while deepsleep during day and about 8 mA/h (0,5 %/h) while deepsleep during night, which are similar to the good numbers I had under Gingerbread.

BTW, using KSM, zRam and Swap don't influence battery drain, at least not significantly, in my experience. I got the above mentioned drains with KSM and zRAM enabled!

However, disabling "settings > location > access to my location" and "google > maps and latitude" options, as posted a couple of times on the development thread, *does* have some impact on battery drain, so I keep these options disabled.

I'm reading the development thread http://forum.xda-developers.com/showthread.php?t=1768702 for a couple of weeks now and unfortunately it seems that they haven't taken notice of -=lov=-'s great finding yet. :( I think that there is something about the USB drivers not properly initialized in the Custom Kernels yet, which leads to the much discussed battery drains. I'm quite sure that this should be fixable by Quarx.

Unfortunately, I cannot post in the development thread yet (actually this is my very first post because I found this topic this so important).

Therefore I would like to ask somebody on this FAQ thread to try this method himself and give a hint
on the development thread http://forum.xda-developers.com/showthread.php?t=1768702, so that the
developers and especially Quarx can take notice and finally fix the battery drain caused by the USB driver
bug (or whatever it is). :fingers-crossed: :highfive: :victory:
Thank you for your support!

Thanks to -=lov=- for his great finding and to Quarx for his superb CM10 ROM and Custom Kernel (if he is reading this thread nonetheless...) :D
Okij

My current config: Defy+, Quarx CM10 2012-10-18 NIGHTLY + Custom Kernel from 24.10.,
[email protected], [email protected], [email protected], [email protected] / Interactive / SIO / KSM enabled / zRam 18%
Thanks for this post. I have just plugged phone into USB attached to PC for 30 seconds. After only 10 minutes I can see the battery life has improved. See attached screenshot.Just after plugging in USB the battery stops draining at the same rate and the % has stayed the same.

Something gets triggered when the USB cable gets connected that stops the battery draining. I wonder if by charging the phone via the wall charger their is a process triggered that does not get killed when the phone is fully charged. By connecting to USB the process gets killed "nicely" at disconnect?
 

Attachments

Feb 14, 2012
7
0
0
30
Bhubaneshwar
Hey I am currently on JB build 18.10.12 having 4.1.2 and the same kernel on which I had previously flashed 24.09.12 which had 4.1.1.

I am a begginer in this and have read a lot of posts before. But this particular thread has interested me more . Thanks for that but I still facing
1. Battery drain issues.
2. Battery doesn't charge beyond 79%
3. 2G toggle also doesn't work as soon as I switch it on it just says no network found.
The ROM is really good.. love the interface, hats off to those who did it..
Please can someone help me in this..
If u want any logs or screen shot will be posting it.

Sent from my MB526 using xda app-developers app
 

Attachments

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
Hey I am currently on JB build 18.10.12 having 4.1.2 and the same kernel on which I had previously flashed 24.09.12 which had 4.1.1.

I am a begginer in this and have read a lot of posts before. But this particular thread has interested me more . Thanks for that but I still facing
1. Battery drain issues.
2. Battery doesn't charge beyond 79%
3. 2G toggle also doesn't work as soon as I switch it on it just says no network found.
The ROM is really good.. love the interface, hats off to those who did it..
Please can someone help me in this..
If u want any logs or screen shot will be posting it.

Sent from my MB526 using xda app-developers app
Hi,
Your kernel is not up to date...
First you should flash last update (update_for_18.10_v3.zip). You can d/l it on Quarx's ftp! After that you will probably have less issues !
Just try it and feedback.
Enjoy !

Sent from my Defy green lens running last cm10 Quarx build
 
Last edited:

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
The 2G toggle doesn't seem to work it suffers .. goes into offline mode as soon as I press on it

Sent from my Defy Plus JB using xda app-developers app
Is 2g mode works if you select it in network parameters ?

Did you try a clean install ?


Sent from my Defy green lens running last cm10 Quarx build
 
Feb 14, 2012
7
0
0
30
Bhubaneshwar
Is 2g mode works if you select it in network parameters ?

Yeah i did clean install it.
and i did try in the settings menu to use 2G always option.. it didnt work out.
well i will innumerate the steps i did -

1. after rooting my device i installed the CWM available on the JB thread 4.1.2
2. Switched off the device and charged it to 100%
3. Took out the battery went into recovery mode and reset and erased everything and erased the cache and dalvic too
and flashed the rom 18.10.2012
4. Upon which i flashed the V3 update as advised and then
5. lastly installed the gapps for JB
6. booted it up...

so far no isssues such as rebooting / loops, camera, wifi, etc with the rom except a few problems..its smooth
1. Always gets heated up when put on charge and talk at the same time or use it (which i think its normal i dont really know)
2. 2G still doesnt work..
3. Battery better after V3 update but not that much as before.. lasts a full day on conservable use.. wifi 3g 3-4 hours max but lasts a day
4. And lastly when put on charge again doesnt charge above 82%

dont know which step have i missed.. :/
love the rom though :)

Can you suggest me another rom which is as stable as this but with awesome battery life.. i also used a Samsung tab 2 a month back of my brothers it lasted about two days on moderate use.. wifi, 3g, music, games , everything..

thanks a lot ..
 

woodman

Senior Moderator / RC-RT & Moderator Committees
Staff member
Jul 21, 2012
12,431
22,951
263
40
France
Is 2g mode works if you select it in network parameters ?

Yeah i did clean install it.
and i did try in the settings menu to use 2G always option.. it didnt work out.
well i will innumerate the steps i did -

1. after rooting my device i installed the CWM available on the JB thread 4.1.2
2. Switched off the device and charged it to 100%
3. Took out the battery went into recovery mode and reset and erased everything and erased the cache and dalvic too
and flashed the rom 18.10.2012
4. Upon which i flashed the V3 update as advised and then
5. lastly installed the gapps for JB
6. booted it up...

so far no isssues such as rebooting / loops, camera, wifi, etc with the rom except a few problems..its smooth
1. Always gets heated up when put on charge and talk at the same time or use it (which i think its normal i dont really know)
2. 2G still doesnt work..
3. Battery better after V3 update but not that much as before.. lasts a full day on conservable use.. wifi 3g 3-4 hours max but lasts a day
4. And lastly when put on charge again doesnt charge above 82%

dont know which step have i missed.. :/
love the rom though :)

Can you suggest me another rom which is as stable as this but with awesome battery life.. i also used a Samsung tab 2 a month back of my brothers it lasted about two days on moderate use.. wifi, 3g, music, games , everything..

thanks a lot ..
I don't understand why it doesn't work..For me it works perfectly..I have a Defy green lens with last 1018 rom + v4 update...

Perhaps your bootloader version could be the culprit ? Don't know...
For battery drain issue, perhpas your battery is worn ?
For 2G issue, is it working with another rom ?

I advise you to have a look on FAQ section...

I can't suggest you another CM10 rom, i don't know another good ones...
Did you try CM7 stable roms? If yes, have you got the sames issues?
 
Feb 14, 2012
7
0
0
30
Bhubaneshwar
Okay .. I installed another custom ROM.. over which I installed CW10
Let's see how it goes this time...

Okay the 2G still doesn't work..
Rest will have to find out...
Fingers crossed..


Sent from my MB526 using xda app-developers app

---------- Post added at 07:45 AM ---------- Previous post was at 07:33 AM ----------

Is there a difference between 24.09 and 18.10 other than 18.10 is better and newer..

What exactly is a 2nd boot..
how exactly is it different from other nightlys ?
May be I am installing this ROM wrong..
Just guessing.. I read the FAQs nothing that I could find could help me

Sent from my MB526 using xda app-developers app
 

ashoks89

Member
Jul 30, 2012
33
5
0
Chennai
Okay .. I installed another custom ROM.. over which I installed CW10
Let's see how it goes this time...

Okay the 2G still doesn't work..
Rest will have to find out...
Fingers crossed..


Sent from my MB526 using xda app-developers app

---------- Post added at 07:45 AM ---------- Previous post was at 07:33 AM ----------

Is there a difference between 24.09 and 18.10 other than 18.10 is better and newer..

What exactly is a 2nd boot..
how exactly is it different from other nightlys ?
May be I am installing this ROM wrong..
Just guessing.. I read the FAQs nothing that I could find could help me

Sent from my MB526 using xda app-developers app
18.10 is not just better and newer. It's way better. No lags. With v4, really good battery life. If your battery is not charging above 84, then take off the battery and wipe battery stats. Then you'll be good to go!

Sent from my MB526 using xda app-developers app