yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Gustopher:
OK, here's today's daft question; in trying to find out whether Vodafone UK support Fast Dormancy or not, I think I'm being told that Fast Dormancy is to some extent equipment related.

Presumably not all parts of the country are on identical equipment, in much the same way that not everywhere has 3G coverage.

So could those that are finding themselves confused by conflicting evidence of battery performance possibly be moving between enabled and non-enabled cells?

Not sure if this helps (even if correct) as that would mean for those on the move that there was no optimum setting.
[Galaxy S II Themes and Apps] jonata:
little question :

I dont' have the sqlite files in xbin ...

what I must do ?

reading the faq but no clear for me ....

tks for help
[Galaxy S II Themes and Apps] crypticc:
two options :

sqlite.exe in Android SDK installed when you want to get adb working.

sqlite3 from directory for one click superroot, pushed to /system/xbin and set to 755 properties.

EDIT: or from titanium directory on previous page.
[Galaxy S II Themes and Apps] jonata:
I've sqlite.exe in Android SDK, so what i must do ?

tks for help

solved ...

:-)

update = not solved because in my phone there is not sqlite3 nwk_info.db

....

can you help me ? :o
[Galaxy S II Themes and Apps] fishton:
Hi

Sqlite3 can also be found in android sdk under Tools :)

Just use adb pull the db file in your local system. Modify it using sqlite3 indicating the path of the file you pulled on your system and push it back.
[Galaxy S II Themes and Apps] jonata:
hi, maybe I'm stupid ...

arrive to get my numeric gsm : 22201

and now have problem with sqlite ...

un help for me ?

tks

edit :

didn't find the sqlite DB ...
[Galaxy S II Themes and Apps] fishton:
What the matter ?
[Galaxy S II Themes and Apps] jonata:
try to fix the proble,. so like in first post write in adb all command.

arrive to get my gsm number, 22201 and then cannot go on

take the sqlite3 file from titanium backup and copy to system/xbin

my problem is when try to execute this command :

sqlite> insert into dormpolicy values("310410","My Carrier",30,30);

sqlite> insert into nwkinfo values("310410", "My Carrier", "off", 1500, "", "");

sqlite> (hit ctrl-d to exit sqlite3

can you help me ?

tks
[Galaxy S II Themes and Apps] fishton:
What the problem exactly ? Does he complain about not founding sqlite3 program ? or is it the command itself ?
[Galaxy S II Themes and Apps] fishton:
I m on 3 UK. I ve disabled fastdormancy and set pooling to 30 sec.

As you can see, battery is still draining much faster when 3g is on than when I m using Wifi

Any other idea for fixing this ?
[Galaxy S II Themes and Apps] jonata:
when I execute this in command in adb :

insert into dormpolicy values 22201,TIM,30,30;

insert into nwkinfo values 22201,TIM, "off", 1500, "", "";

RECEIVE ERROR ...

maybe I type wrong the command ...
[Galaxy S II Themes and Apps] fishton:
and the message is ...
[Galaxy S II Themes and Apps] jonata:
syntax error ...please,

can you write the exact word that I must type in adb ?

my numeric gsm is 22201

my operator is TIM

tks for your patience
[Galaxy S II Themes and Apps] simonk83:
Looks to me like it wasn't draining because you weren't using it (asleep i assume).
[Galaxy S II Themes and Apps] jonata:
can you help me about this type exact worls like ",: in adb shell ?

my numeric gsm is 22201

my operator is TIM

when i try to set "insert into dormpolicy values("310410","My Carrier",30,30);

received like reply that there is not nwk_info.db ...

tks
[Galaxy S II Themes and Apps] chris.semple:
I can successfully delete and then add the values into the database, at first this changed the fast dormancy settings but after an hour or so it went back to every 5 secs. now when I enter the values into the table it has no effect on fast dormancy.

My operator code is 23430 on T-Mobile UK

The SQL I entered was

Delete from dormpolicy where plmn="23430";

Delete from nwkinfo where plmn="23430";

Insert into dormpolicy values("23430","My Carrier",30,30);

Insert into nwkinfo values("23430","My Carrier","off",1500,"","");

I have tried deleting the nwk_info.db and using the one in the OP but this does not make a difference.
[Galaxy S II Themes and Apps] fishton:
I m not using it much during the day and the drain is much more important in idle than when wifi is on
[Galaxy S II Themes and Apps] dryspuri:
have u seen this., http://twitter.com/#!/eldarmurtazin/status/72930533776175104

what does it means??
[Galaxy S II Themes and Apps] aussiebum:
Update: after fiddling around with inserting entries into the nwk_info.db I find just deleting /data/data/com.android.providers.telephony/databases/nwk_info.db (or renaming the file) and rebooting has a greater effect in my standby batt consumption than adding an entry for my provider
[Galaxy S II Themes and Apps] simonk83:
It means there's a problem in 2.3.2/2.3.3 and it's fixed in 2.3.4.

We already know there's a battery problem (that's what we're discussing), so we just need to wait for 2.3.4 to be released for us.
[Galaxy S II Themes and Apps] Necrobutcher:
If my provider has fast dormancy working, does the fix will increase my battery life comparing to working fast dormancy?

How can I make this undone/back to stock settings?
[Galaxy S II Themes and Apps] dryspuri:
today I called O2 UK to ask them whether they support fastdormancy, and as it turns out they said in UK only vodafone & 3g support fastdormancy, I suppose phone attempt to enter in fastdormancy & network not supporting may cause battery drain in my case, Please tell me how to disable it completely!!!:(
[Galaxy S II Themes and Apps] aussiebum:
delete or rename nwk_info.db? That's what I did, and I get around approx 0.8% batt drain per hour on standby overnight. Not sure if that's actually "normal" drain or not though.
[Galaxy S II Themes and Apps] dryspuri:
today i got KE7 & got rid of o2 branding, used EU csc, rooted, reflashed ke7 kernel, using rootexplorer could not fing NWK_info.db in the said location, but to my sorrow, phone is still going on & on about fastdormancy in logcat in standby mode with wifi off & 3 g on!!! so deleting the file is definitely not an answer!!:(
[Galaxy S II Themes and Apps] dryspuri:
Ok nothing works, i am on KE7 followed this procedure, it is not working!!!
[Galaxy S II Themes and Apps] jonrwg:
How do i get fastdormancy logcat?
[Galaxy S II Themes and Apps] dryspuri:
turn usb debugging on

attach usb cable

go to adb folder on command prompt

type in adb logcat

turn wifi off

make sure your data is on

turn screen off

then you will just see fastdormancy going crazy!!:D:D
[Galaxy S II Themes and Apps] dryspuri:
solved I used sqlite editor app to change LCDONfdtime & off timing changed it to 60 sec, now will review battery life & will report
[Galaxy S II Themes and Apps] dryspuri:
hi, with sqlite editor market app I have achieved fastdormancy popping up every 60 sec, but battery drain is same, everything is same, even though, i used titanium backup to freeze many apps, no effect on battery, I think we will have to wait for 2.3.4

I will be trying setcpu for some time, as, if this bug is in all dual core phones setcpu should solve it!!
[Galaxy S II Themes and Apps] shaolin79:
Concerning the Fast Dormancy feature :

You must know that Fast Dormancy is a 3GPP release 8 feature.

It depends where you come from and which operator you are running, but most of networks didn't upgrade yet to 3GPP R8 or are partially pre-R8, so it is possible that this feature is not yet supported in your network ...

I know that my operator (where I work for) has activated this feature for iphone users but not over all radios suppliers of the network (depends of the suppliers roadmap...)

To conclude, I'm not surprise to see people raise they didn't see any change for their battery ... but when this feature will be supported in their network it will be a good thing for our battery juice !
[Galaxy S II Themes and Apps] sjaanjean:
Last night I charged up to 100%, turned wifi and screen off, kept data on. After 8h:15m battery drained to 85%, which is quite a lot I think.

Now I just did the tuturial in OP. Let's see if it gets any better.

Btw, before and after tutorial I did 'adb logcat' to check fastdormancy while wifi-off, data-on, screen-off. Before, it went nuts: constantly doing something. After, it all seemed fine. I've set the interval to 30s.
[Galaxy S II Themes and Apps] Miracle1980:
If the operator is not supporting Fast Dormancy do you suggest to disable it competely dialing that code on the phone and set it to OFF?
[Galaxy S II Themes and Apps] shaolin79:
Trying to get Test report in my network for this feature ...

The synoptic message is below

UE---------------------------------------------------RNC

UE Requested PS Data session end --->

If your network doesn't support Fast Dormancy, the UE can send this message periodically but it will not be interpreted by the RNC (silently discard). So if you disable the function or change the T323 timer, you should prevent unecessary signaling messages ... depends of the T323 timers ...

However, 3GPP R8 should be soon supported cause operators need to upgrade their network to LTE-EPC (4G) which is a network evolution (radio and paquet core) supported from... R8 release ...

source : 3GPP 25331 Rel8 or more (chapter 8.1.14) for people who want to have more infos ...
[Galaxy S II Themes and Apps] crypticc:
read op or mine just after that
[Galaxy S II Themes and Apps] crypticc:
Try setting to long period, say one minute or more
[Galaxy S II Themes and Apps] pulser_g2:
I noticed /system/etc/nwk_info.xml in XWKE7

<NetworkInfos version="6">
<!-- Canada -->
<DormPolicy plmn="302610"
nwkname="Bell"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="20404"
nwkname="Bell"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<!-- USA -->
<DormPolicy plmn="31026"
nwkname="T-Mobile"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310330"
nwkname="T-Mobile"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310490"
nwkname="T-Mobile"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310580"
nwkname="T-Mobile"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310660"
nwkname="T-Mobile"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="31038"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="31090"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310150"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310410"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310560"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="310680"
nwkname="Vodafone"
lcdonfdtime="0"
lcdofffdtime="0"
/>
</NetworkInfos>

Perhaps we should add our carriers into this list? Also, I disabled fast dormancy on mine via *#*#9900#*#* and it seems to have done the trick, though I also put in a db with 960 second interval between "checks" just in case :p
[Galaxy S II Themes and Apps] shaolin79:
Usually, the radio equipment should send to UE the list of the PLMN used and/or in roaming contract with your operator to avoid that the UE scans all frequency around (to save battery). In case your PLMN is seen by your UE, it should connect directly to the "favorite" PLMN.

I'm surprise that you don't have your PLMN in this list or maybe we are not talking about the same list ... and another file should save it ...

EDIT : wait for your feedback after turned off the feature .... tks !
[Galaxy S II Themes and Apps] rocketpaul:
Ive tried this, and my internet speed has more than doubled to 2mbps from 700kbps. Not sure about battery yet.
[Galaxy S II Themes and Apps] shaolin79:
Are you sure that your radio conditions were the same ? cause the fast dormancy feature doesn't concern the QoS parameters which are negociated with your profil into your HLR (Home Location Register) database and radios ressources availibilty (3G, HDSPA++).

I'm pretty sure there is no relationship ...
[Galaxy S II Themes and Apps] shaolin79:
I come back to you with more infos on my operator.

It seems that even if the fast dormancy is 3GPP R8, we forced radio suppliers to support it (not official) in R6/R7 release for all smartphone. So, contrary what I said before, it could be activated into your network.

By default, in my network, the recommanded value is 5 (cannot be changed for apple for iphone, 3s for android)

So if activated in your network i don't recommand to deactivate the feature in your rom ...
[Galaxy S II Themes and Apps] nbhadusia:
Does anybody know if T mobile UK supports fast dormancy? Tried googling, but couldnt find anything on this. Thanks
[Galaxy S II Themes and Apps] sheridan2000:
Not sure if they support it but can say they dont support this phone yet...think june its coming out on their network so if a rom gets released we will be able to see if its supported then.
[Galaxy S II Themes and Apps] Dreadsteel:
I'm following the instructions from the First Post.

when I get to " sqlite3 nwk_info.db"

I get an "unable to open database 'nwk_info.db': unable to open database file"

Any help would be appreciated

@uskr

I'm on AT&T also, so if you can upload your nwk_info.db file so I can just over ride mine. That would be appreciated =D

Thanks in advance!
[Galaxy S II Themes and Apps] ludow:
Thanks a lot uskr and other peeps! :)

My operator does not support fast dormancy, so I set polling to every 60 secs.

I still have fast dormancy disabled via dialpad command. Which is better option now, enable or disable fast dormancy via dialpad? Any ideas? Thanks.
[Galaxy S II Themes and Apps] MaTiCeK-:
Ok I started playing around with the FD settings as well.

My observations:

I'm from Slovenia and my provider is Mobitel, code 29341. I am using the latest KE7 firmware and did a hard reset after aplying the firmware. So the phone was clean.

In the nwk_info.db there was no mention of my provider and using the *#*#9900#*#* code and then disabling fast dormancy did absolutely nothing.

Even after changing the entries in the db file, I still get FD in my logcat more frequently than at the 30s I set the polling. So there must be something missing...

EDIT: OK, after rebooting the phone, it was set to 30s.

Maybe flashing my phone with the official non branded firmware wasn't such a bright idea. The phone originally came with KE2 and had 4 carrier apps installed. Nothing special, just some services they offer. It could however be that there were also some under the hood extra changes, which I had no idea of.
[Galaxy S II Themes and Apps] MaTiCeK-:
Ok, I really don't understand this. I was trying to test if my provider supports fast dormancy. So I set the fast dormancy to ON and left the polling to 0. And the interesting part is, that the phone enters fast dormancy, but then proceeds entering dormancy. Look at the log:

D/FastDormancy( 2836): before ======= ENTER DORMANCY =======

D/FastDormancy( 2836): [FD] ON default: true

E/FastDormancy( 2836): [FD] Dormant flag(true) from key string

D/FastDormancy( 2836): Before mDormFlag: true in getCapaDormancy()

D/FastDormancy( 2836): After mDormFlag: true in getCapaDormancy()

W/FastDormancy( 2836): ======= ENTER DORMANCY =======

D/FastDormancy( 2836): ======= FAST DORMANCY Already Entered ======

D/FastDormancy( 2836): before ======= ENTER DORMANCY =======

D/FastDormancy( 2836): before ======= ENTER DORMANCY =======

So what do you think, does this mean? Does entering into fast dormancy mean my carrier supports it and if it does, why does the enter dormancy command go on hammering?

My guess is, that it's not fully supported yet. I've also noticed that sometimes after a long sleep, my phone's data connection won't wake up until I reset the phone or put it into and out of airplane mode. That's why I had fast dormancy disabled via the *#*#9900#*#* command. But that did not have any effect on my logcat. Weird!
[Galaxy S II Themes and Apps] brandenk0:
I was having major battery drain issues and when I checked my logcat it showed Fast Dormancy appearing every second. After doing this fix Fast Dormancy is only popping up every 30 seconds! Thank you very much for this awesome fix!

Edit: Alright after using my phone for a little I've noticed something different. Usually my phone stays on 3G and when data is needed switches to H+. Now after doing this fix, I'm seeing instead of 3G, I'm getting H and it isn't switching to H+ when data is needed. My data rates are a lot slower now. I was getting an average of 3-4mbps down and now I'm getting 1-2mpbs down. I was in the same area as when I first tested it too. Anyone have an explanation for this? And does At&t support Fast Dormancy?
[Galaxy S II Themes and Apps] Rovman:
Is anyone still working on this? i'm looking for a way to completely disable FastDormancy.

I have an o2 sgs2 (debranded though, running KE7) and i know the network does no support fastdormancy.

Things i have tried:

"ro.ril.disable.fd.... etc" in the buil.prop - no effect

*#9900#*, Disable FastDormancy - no effect

editing the customer.xml file and changing <autofastdormancy>on</autofastdormancy> to "...>off<..." - no effect

(o2 is already set as off specifically in the customer.xml file, but that seems to be ignored).

o2 is also defaulted to off in "nwk_info.db".

I did notice there was multiple entries for "23410" though, o2 postpay, o2 prepay and tesco mobile (who shares o2's network). Tesco for some reason had Dormancy enabled so i thought i was onto something... maybe tescos settings was overriding the others. I deleted the record from the database but no dice.

I have modified it so it only checks every 60 seconds, but i really would like to just turn it off. It annoys me that it has been specifically defined that my network does no support fastdormancy, and yet it tries anyway.

I'm wondering if anyone still running stock o2 ROM has this issue where it tries to do fastdormancy? i was considering flashing back to the stock rom and checking out all the files i've mentioned above to see if theres a difference but if anybody is currently using o2's ROM it could save me a lot of time :P
[Galaxy S II Themes and Apps] MaTiCeK-:
Well I'd be more than interested to see what you find out, once you flash back to O2's stock rom. I don't know where to find the stock ROM for my provider, but I was thinking of doing the same. Reflash to my original ROM, check the settings & wait for any issues to pop up...
[Galaxy S II Themes and Apps] nobnut:
I disabled using 9900 but I created a DB poll of 960 seconds (16 minutes).

I have no issues now.
[Galaxy S II Themes and Apps] pulser_g2:
Exact same here :)
[Galaxy S II Themes and Apps] Rovman:
Well i flashed back to the o2 ROM but can't see no difference. I guess ill just have to stick with changing the polling period like you guys.

It still annoys me though that you can't just turn it off, even though it has settings to do so... it just ignores them.
[Galaxy S II Themes and Apps] paalkr:
Hi!

My device is rooted and I have installed busybox 1.18.something but I cant find sqlite3 on my device. Anyway I can install it easily?

Regards,

PK
[Galaxy S II Themes and Apps] brandenk0:
Just saying, it was mentioned a few pages ago how. But, an easy way is if you have Titanium Backup installed go into the TitaniumBackup.apk file (Root Explorer is a good app to do this) and into the assets folder. Copy or move the sqlite3 file into /system/xbin/ and your good to go.

Hope this helps.
[Galaxy S II Themes and Apps] Rovman:
Alternatively, there's an app on the market called SQLite editor. Makes it very simple to do this modification.

Its not free though.
[Galaxy S II Themes and Apps] mynameisjon:
using litening rom, and using *#*#9900#*#* to disable FD, then going back in to re-enable has led to my logs showing that my phone can finally enter FD without a "false" entry. All FD related entries show "true".

will report back on battery life.
[Galaxy S II Themes and Apps] dryspuri:
people, I just found out one thing, totally by accident

i was playing with *#*#9900#*#* first disabled then again reenabled fd, and the i noted one thing fast dormancy gets entered when phone is in 3g network but system still keeps querying fd, but when phone is in 2g then it does not enter fd,

i wonder something is broken in the underlying code & some great developer will be able to solve it!!
[Galaxy S II Themes and Apps] CandyAndy:
I tried the same thing but it seems that now the battery started to drain REALLY quickly.. :confused:

How is it going with you?
[Galaxy S II Themes and Apps] aussiebum:
Some people have reported success with setting the FD poll to really long (16min) intervals but that didn't really improve battery life for me much, so I just rename the nwk_info.db file instead. It doesn't disable the FD polling but somehow I get less battery drain compared to if I'd bothered setting the FD polling interval properly for my operator in that file.
[Galaxy S II Themes and Apps] darksideHELL:
How does the logcat output look like if FastDormancy is supported?
[Galaxy S II Themes and Apps] mofirouz:
I literally did everything that everyone posted on the forum. My result? Meh, judge for yourself:

Kernel: KE7

Current battery: 49%

4h 52m 57s on battery

Display: 41%

Android OS: 21%

Voice Calls: 9%

Cell Standby: 9%

Android system: 7%

and etc etc

I have 49% left!!!! Given 4 hours of VERY LIGHT usage! My friend who is on KE2, has 44% left after 17hrs of HEAVY usage!!!!!!

I am on T-Mobile Orange. I have added the appropriate key in nwk_info and have changed the polling frequency to 1min. No changed if not worse!

HELP!

Mo.
[Galaxy S II Themes and Apps] aussiebum:
If you really did everything that everyone posted on the forum, then you would have deleted the file instead :rolleyes:

Do you auto sync on? Automatic weather updates? stuff like that really drains the battery fast.

It also helps if you happen to live in a area with decent reception and the phone doesn't keep losing and searching for a signal.
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
i used code: *#*#9900#*#* to disable FD and reenabled it and I can confirm that the FastDormancy bug is gone! I get no errors now in catlog and my phone has been with 3G ON for the past hour and battery hasnt dropped at all!!! (phone on idle)... I was shocked :D

This is what i get in logcat:

W/FastDormancy( 2837): ======= ENTER DORMANCY =======

D/FastDormancy( 2837): ======= FAST DORMANCY Enter =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

D/FastDormancy( 2837): before ======= ENTER DORMANCY =======

ps: before I did this fix, the moment I turn on 3G the battery was going down with 1% every 5 min or less :X

Update: after 2h battery is down 3%
[Galaxy S II Themes and Apps] mofirouz:
Lol, yes I did delete, but I got the file from the forum again! Autosync is on, only google. No Automatic weather, no other stuff. The phone runs on 2G network (T-Mobile Orange is 2G, T-Mobile is H or 3G - I mostly use it on 2G).

The reception at my house and outside are solid full. Yes it get disconnected a few times but it is stable enough.

What you are saying about reception is absolutely true, but it is the 'Android OS' process that is making me go crazy. Sometimes it goes over my Display!!! And it is a lot of battery wasted because of this!

Could you possibly tell me what ROM (and version), and what kernel you are on? KE7?
[Galaxy S II Themes and Apps] crypticc:
Titanium. Read back a bit about where it has a copy saved