Related
Being fed up with the random wakelocks that Dialer produced on my Gingerbread P500, I spent a while searching for the cause. It turned out to be DataTracker-FD (found out using the amazing BetterBatteryStats app - http://www.cri.ch/sven/doku.php/computing/android/betterbatterystats ), which deals with Fast Dormancy (http://www.computerworld.com/s/article/9191759/Fast_dormancy_to_improve_smartphone_networking_and_battery_performance_ ).
Now, in theory, Fast Dormancy should be a great feature! But, if your network does not support it, DataTracker-FD will still drain a lot of battery through the wakelock. The SGSII secret code for deactivating it doesn't work on the P500, and neither does the nwk_info.db method. Luckily, you can deactivate (or change its timeout) through the LG hidden menu...
1. Dial 3845#*500#.
2. Go to Modem Setting > PDP Setting > [0] Set Fast Dormancy
3. Select your desired timeout (or "Disabled"). You should now be done! (will look at Battery Usage in a little bit, to see if a reboot/Dialer FC is also needed)
Optional step 4. If you still see no difference, set your desired timeout (or "Disabled") a few more times.
Hope it helps.
/* Edit: It doesn't seem to help, we might be back to square one. Does anyone have any idea on how to completely disable Fast Dormancy? We might need a dev to look at the source code of Dialer and make some modifications... Right now, if your phone stays awake after using Data, the only current workaround is FCing Dialer from Applications. */
EDIT 2: A SECOND TEST, USING THE ABOVE METHOD TO DISABLE FAST DORMANCY, YIELDS POSITIVE RESULTS! THE WAKELOCK IS NOT THERE ANYMORE, EVEN AFTER SEVERAL RECONNECTIONS TO HSDPA!
It needs way more testing though, I will reconnect to data and leave the phone idle (screen off), then see what happens, and I will reboot the phone to see if the setting persists.
EDIT 3: Yes, the setting persists, and the wakelock is still not running! The final test will be done after it has completely charged, because there still is a small possibility that the wakelock is so far not active just because the phone was charging.
Edit 4: Straight after unplugging the phone, DataTracker-FD started running, without being connected to HSDPA (I was in a phonecall). In 17 minutes (of mostly talking on the phone) it drained 1% of the battery - so, it should last for about 29 hours with the same usage. Now I have started HSDPA and left the phone idle for 10 minutes, to see how much it drains and how much it drains after I turn data off. It just might be that, while the phone is still awake, it doesn't drain a large amount of battery. If it actually still drains a lot, this tweak definitely only /seems/ to work while charging (maybe BetterBatteryStats was reporting false data or FD just doesnt' work when charging).
Edit 5: Here's a pleasant surprise. Right after connecting to HSDPA and putting the phone to sleep, the Awake bar in Battery Usage faded out. In 5 minutes of idling with data activated, the phone drained another 1% battery - not sure how well that is, since it amounts to 8 hours of data on a full charge, but it's better than 12 hours of idling with no data on a full charge. Currently repeating the test. Just got an email on Yahoo pushed, I'll get to see the influence on awake time of that as well.
Edit 6: After 10 minutes of idling with data ON, a bit over 1% of the battery is gone. This is a fantastic value, and the Awake bar is only dotted in this period of time. DataTracker-FD seems to be running a bit in the background during the data connection, but stopped once I turned it off. It might just be me, though, because aLogCat still can't find any entries for Fast Dormancy. Now leaving the phone idle with no data for a while to look at the evolution of Awake time.
Edit 7: After about 45 minutes of complete idling, the battery went down 2%. This would mean the battery would last for about a day and a half, which is meh, considering I OC'd the phone to 730 and don't really use a task manager.
The conclusion: YES, disabling Fast Dormancy does work using the above method, and it does help battery life!
Edit 8: After another unrelated reboot, DataTracker-FD is once again awake after using data, but this time it draws significantly less battery. The Battery Usage graph shows no difference between sleep times and awake-because-of-FD times.
Edit 9: During the night, the phone drained 30% battery, once again because of some random action of DataTracker-FD. This is still not a definite fix.
"Connection problem or invalid MMI code" when I dial that number..
I remember that long ago I dialed the number and everything was fine.
Well you shouldn't literally call it, just type it in Dialer and it should open the hidden menu.
metalboy94 said:
Well you shouldn't literally call it, just type it in Dialer and it should open the hidden menu.
Click to expand...
Click to collapse
When I just type it in dialer, nothing happens.
I see. It might not work on CM.
Updated the OP a couple of times, you might want to read it.
Considering I am still on Froyo v2.2.2, could this be of interest for me too? There's no abnormal battery drain on my phone, but if I can improve the battery life by tweaking this setting, I'd gladly do it.
masteryx said:
Considering I am still on Froyo v2.2.2, could this be of interest for me too? There's no abnormal battery drain on my phone, but if I can improve the battery life by tweaking this setting, I'd gladly do it.
Click to expand...
Click to collapse
I didn't have such problems on Froyo either. It MIGHT help, but as you can see from the numerous edits to the OP, it's not a clear win yet.
So it need to be disabled twice to stop working?
I've been looking for this service since using that Battery App but theres not much information of that in the web.
I'm not sure just how many times, but it took about 3-4 times for me until I was completely sure the wakelock stopped running and the phone went into deep sleep each time I locked it.
Yeah I think I got it doing it twice, FC phone and rebooting, btw maybe you can check system/etc/flex/flex.db and flex.xml there are fast dormancy settings there
@metalboy94 I mailed LG regarding Fast Dormancy and the reply i got was that P500 does not support fast dormancy. My phone does not switch from H to 3G. I tried enabling it many times using secret menu but it does not work.
I asked him if GB ROM/Baseband supports fast dormancy, he replied saying GB hasn't been released for India
Roqu3 said:
Yeah I think I got it doing it twice, FC phone and rebooting, btw maybe you can check system/etc/flex/flex.db and flex.xml there are fast dormancy settings there
Click to expand...
Click to collapse
There are? Thanks a bunch, gonna try those methods as well!
@atulalvenkar: Well, it still draws power from the battery, so at least they could have done something to the Dialer if it's not supported at all.
Edited the OP once again.
Are you guys checking on GB or Froyo ROM ? I can't see flex.db or flex.xml in froyo ? Stock or CM7
atulalvenkar said:
Are you guys checking on GB or Froyo ROM ? I can't see flex.db or flex.xml in froyo ? Stock or CM7
Click to expand...
Click to collapse
Stock GB. I found it, but you have to fill in the info for your operator if it's not on that list. Guess which is my situation.
metalboy94 said:
Stock GB. I found it, but you have to fill in the info for your operator if it's not on that list. Guess which is my situation.
Click to expand...
Click to collapse
Yeah my operator isn´t there also (I´m on a custom V20g ROM and I´m not from Romania) but i got the flex files from the Froyo stock so im going to try using that information to replace one of the V20g operators.
Also tried putting the Froyo ones on GB but get a lot of FC
Updated the OP again...
I tried to change the FD settings in the hidden menu, but the setting does not "stick", so I don't know if it's actually OFF or not.
However, I found that DataTracker-FD only keeps the phone awake when Wifi is on. If I'm always on 3G, FD seems to work and keep the phone asleep. Overnight with wifi off and 3G on, it only drained 2% battery.
I'm on official GB2.3.3 with PaoloM's kernel v5.
Strange.
hey maybe let´s try this:
Code:
ro.ril.disable.fd.plmn.prefix=23402,23410,23411,
have to put that on the build.prop then restart, the values must be changed to your carriers code, you can get that code from adb typing
Code:
adb shell
getprop gsm.operator.numeric
Then the system should show the number
tsuda said:
I tried to change the FD settings in the hidden menu, but the setting does not "stick", so I don't know if it's actually OFF or not.
However, I found that DataTracker-FD only keeps the phone awake when Wifi is on. If I'm always on 3G, FD seems to work and keep the phone asleep. Overnight with wifi off and 3G on, it only drained 2% battery.
I'm on official GB2.3.3 with PaoloM's kernel v5.
Strange.
Click to expand...
Click to collapse
But did you see how many MBs the phone used? Cause if it's too much, people will definitely prefer just turning the phone off.
@Roqu3: I think I tried that before and it didn't seem to make a difference.
Worth a shot tho.
I'll try both of your methods if I still have the issue when I get my phone back from the service center.
Sent from a crappy rebranded Huawei using my hands
Hi all,
The Wifi on my SGSII is constantly scanning even though it is connected to my home wifi network (a WPA/WPA2 PSK secured connection on a G band router). The signal strength is "excellent" and I have the phone sitting right next to the router. Further, I have network notification turned off ( unchecked) and under advanced settings, my Wifi sleep Policy is set to "never".
Sprint users have reported exactly the same problem on the Epic Touch 4G" (http://forum.xda-developers.com/showthread.php?t=1272226 ). Has anyone else been experiencing the same issue on their ATT SGS2 ? I would be very grateful if someone could post a solution for this issue.
Thanks in advance
J
PS: My wifi setting screen looks like this genteman's ( except i have network notification turned off)
(http://keithandlaura.smugmug.com/Other/test/i-sMwh6bj/0/L/SC20110921-212528-L.png)
jwlkr said:
Hi all,
The Wifi on my SGSII is constantly scanning even though it is connected to my home wifi network (a WPA/WPA2 PSK secured connection on a G band router). The signal strength is "excellent" and I have the phone sitting right next to the router. Further, I have network notification turned off ( unchecked) and under advanced settings, my Wifi sleep Policy is set to "never".
Sprint users have reported exactly the same problem on the Epic Touch 4G" (http://forum.xda-developers.com/showthread.php?t=1272226 ). Has anyone else been experiencing the same issue on their ATT SGS2 ? I would be very grateful if someone could post a solution for this issue.
Thanks in advance
J
PS: My wifi setting screen looks like this genteman's ( except i have network notification turned off)
(http://keithandlaura.smugmug.com/Other/test/i-sMwh6bj/0/L/SC20110921-212528-L.png)
Click to expand...
Click to collapse
Scan rate is bumped up significantly when you're in the settings menu.
Have you confirmed via logcat that it's scanning frequently outside of the settings menu? It shouldn't be in that case - but without logcat it's almost impossible to tell.
Entropy512 said:
Scan rate is bumped up significantly when you're in the settings menu.
Have you confirmed via logcat that it's scanning frequently outside of the settings menu? It shouldn't be in that case - but without logcat it's almost impossible to tell.
Click to expand...
Click to collapse
Entropy,
What should I be looking for in logcat? I have Betterbattery stats installed and according to that, Wifi scan time is 8+ hours even though Wifi on time is only 2+ hours. That doesn't seem to make sense, but what do I know.
I am running UnNamed 1.3.1.
johny_i said:
Entropy,
What should I be looking for in logcat? I have Betterbattery stats installed and according to that, Wifi scan time is 8+ hours even though Wifi on time is only 2+ hours. That doesn't seem to make sense, but what do I know.
I am running UnNamed 1.3.1.
Click to expand...
Click to collapse
I believe BBS is reporting scan time improperly. I've seen that in a few threads.
Sent from my GT-P7510 using Tapatalk
You're probably right, except now scan time doesn't even show.
I have also observed this on my phone.
I have a Samsung Galaxy IIs, using a Sony Ericsson MW600 BT handsfree as well as a Pioneer car Bluetooth handsfree system.
I have not measured anything yet, but I notice that when the Wi-Fi scanning is going on, I get significant disturbances on both of my Bluetooth hands-free sets. Listening to music is without a hitch, but talking on the phone (Norwegian GSM - operator Telenor) is terrible.
i also noted this after installing the OTA update to 2.3.6 today. I just rooted mine yesterday after reading 54+ pages to make sure i understood everything. i had a cappy and loved installing new roms but have not taken the plunge yet on the sgs ii. I haven't noticed a huge difference in battery yet, but it has only been a couple of hours since the update.
What ROM are you running? You can edit the build.prop to change how often it looks for networks. It is the line "wifi.supplicant_scan_interval=xx". I set mine to 180 which is 3 minutes, some ROM's set it really low. Also the scan rate is bumped up significantly when you're in the settings menu like Entrophy said.
Hi,
I had the same problem where my WIFI was fluctuating.... I dont know if this is the problem/ solution but this is what happened...
My SGS 2 is already rooted and unlocked. I had flashed the Entrophy DD 12/23 first then I had flashed Unnamed Custom ROM. After rebooting the phone, I saw the Wifi was not stable. So I again did a "Wipe Factory Data Reset" and "Wipe Cache Partition" and then installed the Unnamed Custom ROM from the SD Card. My Wifi is pretty stable now.
I am not sure if you guys had this issue when flashing a ROM but this seemed to fix it.
Wifi Scan - Milliwatts
ktoonsez said:
What ROM are you running? You can edit the build.prop to change how often it looks for networks. It is the line "wifi.supplicant_scan_interval=xx". I set mine to 180 which is 3 minutes, some ROM's set it really low. Also the scan rate is bumped up significantly when you're in the settings menu like Entrophy said.
Click to expand...
Click to collapse
I have written about this wifi-battery drain a while back here in XDA.
When I used to have my Nokia symbian cell phone I used to flash custom roms
and there were a lot of nice new features after flashing.
A couple of the really nice battery saving mods were:
#1: added option to change the amount of wifi milliwatt output from 18 milliwatts (default) to 3 milliwatts
which is more than enough if the phone is no more than 20-25 feet from the wireless router.
(the mod gave the option of 3mw,6mw,12mw & 18mw)
Saves a lot of battery life.
Don't know why none of the DEVS have addressed this issue yet.
#2: added a mod so once the wifi establishes a connection it no longer scans
at all unless the connection is disconnected or lost.
So in other words, the phone only scans for wifi until it connects.
Right now I am connected to wifi with my phone and yet in settings it displays "scanning"
non-stop-constantly even though in wifi settings it displays "connected".
Why should the phone be scanning for wifi if it's already connected? (I have no idea).
Don't know why none of the DEVS have addressed this issue yet either.
Both of these mods really made a noticable difference in battery life
for for me since I do use the wifi feature in my phone a lot.
Hopefully one of the DEVS can look into these issues soon.
Now someone mentioned wifi constant scan, I noticed mine is doing the same thing. I leave the wifi setting screen on, it re-scans every 3 seconds!
Misterjunky said:
I have written about this wifi-battery drain a while back here in XDA.
When I used to have my Nokia symbian cell phone I used to flash custom roms
and there were a lot of nice new features after flashing.
A couple of the really nice battery saving mods were:
#1: added option to change the amount of wifi milliwatt output from 18 milliwatts (default) to 3 milliwatts
which is more than enough if the phone is no more than 20-25 feet from the wireless router.
(the mod gave the option of 3mw,6mw,12mw & 18mw)
Saves a lot of battery life.
Don't know why none of the DEVS have addressed this issue yet.
#2: added a mod so once the wifi establishes a connection it no longer scans
at all unless the connection is disconnected or lost.
So in other words, the phone only scans for wifi until it connects.
Right now I am connected to wifi with my phone and yet in settings it displays "scanning"
non-stop-constantly even though in wifi settings it displays "connected".
Why should the phone be scanning for wifi if it's already connected? (I have no idea).
Don't know why none of the DEVS have addressed this issue yet either.
Both of these mods really made a noticable difference in battery life
for for me since I do use the wifi feature in my phone a lot.
Hopefully one of the DEVS can look into these issues soon.
Click to expand...
Click to collapse
Power control - Not likely, unless there is some documented power control already in the driver it's not going to happen. We're in a bad enough state as it is trying to make the chip not fire interrupts at 1 Hz on the Infuse.
Broadcom is one of the least open source friendly chipset manufacturers on the planet - their drivers have NO comments or documentation whatsoever, and datasheets are not available.
The rescan stuff is probably only addressable on Cyanogenmod, messing with it would require source code for the userland wifi management stuff.
mickey4mice said:
Now someone mentioned wifi constant scan, I noticed mine is doing the same thing. I leave the wifi setting screen on, it re-scans every 3 seconds!
Click to expand...
Click to collapse
As stated earlier in this thread - this is by design. It is assumed that if you're in the settings screen you want to change networks and have an up-to-date list.
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Battery Drain
hatgirl223 said:
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Click to expand...
Click to collapse
Try doing a clean flash using "wipe data/factory reset" in CWM
recovery and then see if the phone has normal battery drainage.
(which it will if you flash the UnNamed v2.2.1 custom rom)
Then install one app at a time so you can find out exactly which
app is the culprit that causes your excessive battery drain.
This is the best way to trouble shoot battery drainage issues.
You will see that your battery drainage issue is not caused by
the custom rom, but it is caused by a few apps which are just
not very battery friendly.
The UnNamed v2.2.1 rom is the best custom rom currently
available for our i777 phones and it has outstanding battery life.
Good Luck!
hatgirl223 said:
I also am having this problem. I am running the rooted UKK6 from entropy512. After turning on my wifi, my battery drained from 90% to 70% in 5 hours with no use. My android OS is running at 80-90%. I don't have any extra apps except for 3g watchdog and CPUSpy and BBS. I do have Go launcher and GoSMS installed. As soon as I turn wifi off, i can see my battery level off under settings. I have searched for the last 2 days for a "fix". no luck.
Click to expand...
Click to collapse
This has nothing to do with this thread - This thread is talking about wifi scanning.
Drain problems - read my known battery drainers thread. A lot of people are having problems, there is no fix, and there won't be until all the people complaining start actually collecting some data.
I retired my Vibrant and removed the SIM. But am still messing around with it.
Something I'm having a problem with though is since removing the SIM card the battery has been really bad. I'll go from 100% to 15% battery overnight.
I disabled the radio in the *#*#4636#*#* menu.
Is it normal for removing the SIM to do this to the battery? I assume it's trying to lock onto something, but thought disabling the radio would fix that. Battery stats show "Android OS" using 90% of the battery overnight.
Just removing the sim card doesnt disable the radio, you need to go in and deselect all mobile networks under settings or put the phone into airplane mode, otherwise the phone will continously search for networks.
This search for networks or connections is likely what is killing your battery
I've disabled data in mobile networks, I've disabled the radio, I've put in airplane mode. Yet the phone always stays awake without a SIM card.
I put my active SIM card back in the phone and sure enough, now the phone will sleep when I turn off the screen.
So I tried an inactive SIM card, but again it's staying awake all the time.
Well just an FYI. Think I figured it out. Using TitantiumBackup I froze the phone.apk and telephonyprovider.apk apps and now the phone goes to sleep when the screen goes off and the battery is lasting now.
Hello there
well I'm having this issue for quite a while now....ok I'm gonna give a lot of details here:
when I acivate mobile data and start transfering data the cellphone,even if its State Of Charge is over 50%, shuts down.When I was on stock rom 2.1 it just shut down,black screen,nothing.when I'm using custom roms,eg minicm7, 9 and 10 a message appears that the phone is shutting down and so it does.well,in this case it "soft" shuts down..but nevertheless it shuts down.when I turn the phone on again soc is very low,below 20% and if I reboot it again it gows up again to a random percentage.
what I only change when I install a rom is to enable the use of only 2G network and disable data and when I want to use the internet I untick it and then enable data so that I use 3G speed.nothing else is changed from system network.
I've tried wiping batt stats too but in vain.
I searched the web and I found others had similar problems too.any ideas anyone?
I have problem like u too bro, on CM10.
Sent from my U20i using xda premium
kbit013 said:
I have problem like u too bro, on CM10.
Sent from my U20i using xda premium
Click to expand...
Click to collapse
actually I think I know whats wrong so I'm gonna post it for others to see it:
I use the battery in 2G mode and so it get "used" to it.and when I instantly switch to 3G mode, enable data traffic and begin downloading the battery kinda "hangs" because of the big big difference in its consumption.so,my suggestion is to test it:
*with gsm/hspa mode always on,and enable data only when I need it
*with gsm/hspa mode always on,and data always enabled
I'll check what happens in system stability&battery consumption rate and I'll post again
ok I have managed to fix it and I'll post my method.
first of all I performed the wipe battery stats method:
with phone turned on charge completely(until 100%, do not interrupt the charging)
remove charger and reboot into recovery and then wipe battery statistics
let the phone battery completely drain.make normal phone usage,disable mobile data, don't stream video or don't use wifi at all.Do NOT charge, just use the phone until it shuts down
when the phone shuts down,turn it on again and then charge it immediately again up to 100%.once again do not interrupt the charging
next -unfortunately- you need to take out the battery. See this
Code:
http://www.ifixit.com/Teardown/Sony-Ericsson-Xperia-X10-Mini-E10i-Teardown/3124/1
use caution and do not apply force on anything
you do not need to completely tear down the whole phone, just remove the battery pins.when you do that wait a couple of seconds and then plug in again.that's it reassemble the phone and you should be done.battery stats will be completely reset.
So I tried to find out why, but I haven't found a relevant thread. So my phone (MTK6589), a little old now I know, works fine. I mean it worked until this morning when if I tried to connect it to mobile network it shuts down instantly after connecting. Tried with a different SIM and other network and the same. All works fine until it connects and then it shutsdown in an instant. To reboot I need to take the battery off, but not always sometimes it works without taking the battery.
Had a custom ROM, so I reinstalled the stock ROM and kernel. It still does the same. It works fine if I go to airplane mode even if I turn the wifi on, but otherwise, when I start the mobile network and it finds a connection, it instantly shuts down. Stressed tested the battery and CPU, memory etc and they work fine.
Has anyone encountered this? What can cause it? Why only when it finds a network connection. Can it be hardware related?