yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] vincent_smoox:
I have a xperia m dual c2005 and want to try your method, but i cant find ./etc/fast-dormancy/fd_custm_conf.txt on my phone, can you help me please?
[Sony Xperia S, Acro S, Ion] mirhl:
I will check the 4.2 rom system files soon

I hope they only moved the files, otherwise the only other solution is a custom kernel with fd disabled
[Sony Xperia S, Acro S, Ion] mirhl:
ok, i looked inside the rom files and i couldn't find something useful

anyway, i found this

you would need to root your phone and add

ro.semc.enable.fast_dormancy=false

to your build.prop

BE WARNED THOUGH

i fuc**ed up both my xperia s and my gs2 by trying that... so i can't grant for it
[Sony Xperia S, Acro S, Ion] someone755:
I suffer from Android OS wakelocks, but after doing this, the Phone app drains battery and doesn't let deep sleep happen...

KitKat is an intriguing beast...
[Sony Xperia S, Acro S, Ion] argonom:
You can also change the entry in build.prop: enable fast dormancy to Zero, instead of One.
[Sony Xperia S, Acro S, Ion] mirhl:
This bricked my xperia s..
[Sony Xperia S, Acro S, Ion] argonom:
Ok. You need to know how to edit build.prop. Use notepad+ instead of windows notepad or any text editor in linux.
[Sony Xperia S, Acro S, Ion] mirhl:
I used 920 text editor directly on the phone

And i bricked my gs2 too with this thing

Phone can't even offline charge then
[Sony Xperia S, Acro S, Ion] optimumpro:
There is only one reason you bricked your phone: you used a wrong text editor, which messed permissions or saved the file in a wrong format. And even in that case, it would only bootloop, which would allow you to use recovery to restore the phone. You probably pushed the wrong buttons when your phone bootlooped and it fell into coma. Now you will have to fully discharge the phone. Read forums...

Edit: in build.prop fast dormancy is disabled by changing the value from true to false, as opposed to 1 to 0, but that wouldn't brick the device if you editted the file properly...
[Sony Xperia S, Acro S, Ion] Gregz78:
Disabling fast dormancy in build.prop has done nothing for me.

Modifying ./etc/fast-dormancy/fd_custm_conf.txt was the good choice :p

Z1 Compact with french carrier ORANGE / SOSH
[Sony Xperia S, Acro S, Ion] FenrirMX:
Kind of a **** move, man, saying that and not pointing anyone in the right direction.
[Sony Xperia S, Acro S, Ion] Gregz78:
I'm just giving a feedback.... The right direction is the subject of the first post of this thread.... Don't call me **** or whatever please
[Sony Xperia S, Acro S, Ion] CrabbyCakes:
I flashed an Italian version of my ROM and Fast Dormancy disappeared from my battery usage :)
[Sony Xperia S, Acro S, Ion] mirhl:
battery usage? you mean the stats in the settings?

you can't be sure you had broken fast dormancy (thus wakelocks) from there.

The only way to be certain is to install betterbatterystats and check kernel/partial wakelocks
[Sony Xperia S, Acro S, Ion] CrabbyCakes:
No I can't be sure.... I flashed the generic Europe 4.3 and I had around 2500 wakelocks in 12 hours. After the last update .191 I no longer have that issue....?
[Sony Xperia S, Acro S, Ion] bsined:
Mate, you're a winner! Thanks a ton for this trick! I just did a 100% clean install of 4.3 on my TL and I couldn't believe my phone could do 4 hours of screen time while I was setting up everything. Once all apps and accounts were back up, it dropped again to 4%/hr drain in standby and 40-50%/hr drain with the screen on. BBS only told me that com.sonyericsson.android.wakeup alarm was keeping it awake. After some searching, I found out about Fast Dormancy and then set on to find the culprit calling the service. Instead, I found your tutorial and it's working great so far (a few hours of testing)! Although it doesn't look like I'll be able to get the same 1%/hr drain in standby and 15-17%/hr with screen on as the clean install provides, 2-3%/hr in standby, 20%/hr in active, and 0 wakelocks are just as great!
[Sony Xperia S, Acro S, Ion] danial.aw:
im kind of curious how to idenitfy if fast dormancy is actually enabled because my carrier does support it....

would changing the two zeros to my carriers numbers enable it? or is it enabled by default?
[Sony Xperia S, Acro S, Ion] bsined:
If your carrier supports it, you won't see the battery drain. The file settings disable FD when connected to the network matching the settings.
[Sony Xperia S, Acro S, Ion] D.Ar:
The surest way - ask your mobile network operator. I contacted customer support and the operator confirmed that the Technology Network Controlled Fast Dormancy supported. Mobile operator VELCOM (Belarus).
[Sony Xperia S, Acro S, Ion] danial.aw:
im aware that my carrier does support it... I was wondering how to know if the phone is using it or not... but it seems to be working fine just by looking at the signals so its all good i think
[Sony Xperia S, Acro S, Ion] thez3ro:
i tried this on my rooted 4.4.2 z1 compact and it says the system is read only O.o

i have root and all apps have root access(titanium, root checker, xposed i...)

how to fix this?
[Sony Xperia S, Acro S, Ion] mirhl:
fast dormancy is enabled by default. this is required in order to disable it

and sometimes asking the carriers couldn't even be sufficient. First, because you could always be talking with a telephone operator that know at most the company's tariff plans

And second, because carriers' will might not be enough. In my country I know at least an operator (Wind if you were asking) that has lots of different antennas' models.. made by different manufacturers with different specifications

I know there was an hidden menu in older galaxy phones to check your actual network cell FD status.. but I don't actually know any "modern" method, other than checking wakelocks

[MENTION=3961565]thez3ro[/MENTION]

check if in your file manager/text editor there's a setting like "mount R/W" or similar
[Sony Xperia S, Acro S, Ion] thez3ro:
I tried. I have to try and flash su update, maybe it will fix it.

But after a backup :)

Edit: i coverted root explorer to a system app and it worked...

Im a dumbass :P
[Sony Xperia S, Acro S, Ion] cosminnn:
I did the change for Xperia Z C6603, on a carrier without FD. I check results and return with feedback.
[Sony Xperia S, Acro S, Ion] kumbangdesa:
Hi friend..Is it for branded phone (I mean lock with carrier) or for unbranded phone too?..Thanks..
[Sony Xperia S, Acro S, Ion] mirhl:
Should work on any rooted phone
[Sony Xperia S, Acro S, Ion] cosminnn:
Working on Orange Romania for Xperia Z C6603
[Sony Xperia S, Acro S, Ion] belluaire:
hello

do as you said and this service is missing from my betterbateerystats which shows thousands alarms before.:good:

but adroid os drains battery as fast as before.:mad::confused:
[Sony Xperia S, Acro S, Ion] mirhl:
Well, there should be some kernel or partial wakelocks then... Isn't it?
[Sony Xperia S, Acro S, Ion] danielalarcon:
First of all thanks for this awesome fix.

Tried on the Xperia Z1 4.4.2 rooted, and worked perfectly, I didn't noticed this drain before rooting, but once I did and installed BetterBatteryStats I could see like 8K wakelocks because of this, obviously, not supported by my carrier.

Awesome! Thanks!
[Sony Xperia S, Acro S, Ion] charleston2378:
thanks for this
[Sony Xperia S, Acro S, Ion] F308:
I did change today when found this thread pissed off on battery discharging.

Question pop-ups, though:

Hence it is UMTS feature - does anyone know behavior when I am on LTE ?

Is it extended on LTE, too ?

Could not find anything during search.
[Sony Xperia S, Acro S, Ion] mirhl:
It doesn't seem LTE still has fast dormancy

Anyway, I'm not really aware of what the usual lte power requirement is..

So if you really think there's something wrong give still this a try even if you pass 100% of the day with 4G coverage
[Sony Xperia S, Acro S, Ion] F308:
Surely I will. Not wrong but I had better digits on potential powed prediction.

Of course in the meantime i loaded into phone more apps, this has it's price.

A thing is that it takes time counted in days to collect statistics and draw conclusions.

What I would like to know is how to activate fast dormancy.

I mean - what variable should be defined.

I see:

fdmDisabledForMCC value

fdmDisabledForMNC value

In case if I learn my carrier has FD active - what should I put into /system/etc/fast-dormancy/fd_custm_conf.txt ?

fdmEnabledForMCC ?

fdmEnabledForMNC ?
[Sony Xperia S, Acro S, Ion] mirhl:
Fast dormancy is already enabled by default.

And if you would really like to be accurate, use betterbatterystats.

With that, no matter how many apps you have, fd wakelocks will be always separately reported (kernel wakelocks if i'm not wrong)
[Sony Xperia S, Acro S, Ion] HyperClocker:
Hey Guys,

The problem was severe for me so much so that i rooted my phone mainly so that i could edit the fast dormancy files. I edited them, saved and rebooted. I will report in battery stats later. Device Xperia ZL C6502 network (network is BSNL lol no need to even ask if it has fast dormancy)
[Sony Xperia S, Acro S, Ion] marocsphinix:
battery is already good in custom roms like carbon and PA
[Sony Xperia S, Acro S, Ion] mirhl:
At least on 4.4 XS custom roms I never needes to tweak aFD (it should be already disabled)

Anyway, you can't take this for granted for every rom of every phone
[Sony Xperia S, Acro S, Ion] user822:
"ls -l /"

shows you /etc is actually /system/etc

to make it writeable execute:

"mount -o remount,rw /system"
[Sony Xperia S, Acro S, Ion] Prem_remy:
Working great in Z1(c6902)
[Sony Xperia S, Acro S, Ion] AnrgKrshn:
Are you on Airtel?
[Sony Xperia S, Acro S, Ion] Meloferz:
Working great on Z1 Compact using Tigo Paraguay, there's no more alarms from com.sonyericsson.android.wakeup :D

Enviado desde mi Z1 Compact
[Sony Xperia S, Acro S, Ion] munjeni:
I think this is wrong! For example dormancy thing is totaly diferent than MCC and MNC thing! MNC mean: mobile network code ; MCC mean: mobile country code, for reference you can look here https://developer.android.com/reference/android/provider/Telephony.Carriers.html

So I think your setting is wrong for fast dormancy! Allso enabling this you can see that logcat is very very spamed with fastdormancy log messages which mean it draining your battery more than hawing values 0 0. In any way I realy have no idea how to get real values for fastormancy. Instead I think you have enabled fastdormancy after changing 0 0 values (see logcat!) !
[Sony Xperia S, Acro S, Ion] mirhl:
Indeed, MCC edit may not be needed (although most of times it will just be redundant)

Thogh this absolutely work. Wakelock completely disappeared (at least on stock-based roms, on custom ones I never had this problem)

And 200 logcat info entries are still better (and shouldn't be worrying) than 20 logcat error entries. Correct me if I'm wrong

Spoiler content hidden.
[Sony Xperia S, Acro S, Ion] munjeni:
I have made a small program which will do the job. Just put it to /system/bin and chmod to 755 and with command "dormancy_patcher" all things gone patched automatically with correct value. :) Allso it can be used on boot time for example trought install_recovery.sh . I not going to change dormancy values in my phone since I think it is wrong, but you can use my program if you like :)
[Sony Xperia S, Acro S, Ion] munjeni:
Spoiler content hidden.
[Sony Xperia S, Acro S, Ion] _mysiak_:
What exactly does this app do please? Why do you think that adding MCC and MNC values to fd_custm_conf.txt is wrong?
[Sony Xperia S, Acro S, Ion] SzczYpior_n1:
What do you mean? What value type instead of zeros? I have nothing above. "1" doesn't work...
[Sony Xperia S, Acro S, Ion] munjeni:
removed message
[Sony Xperia S, Acro S, Ion] _mysiak_:
From my understanding, you disable fast dormancy for carrier which you define in fd_custm_conf.txt by putting MCC and MNC code there. After I put my carrier values in the file, I do not have fast dormancy alarms anymore (had several per minute before). Unfortunately I have no idea how to confirm if the fast dormancy has been really disabled, but disappearance of alarms suggest that it works.
[Sony Xperia S, Acro S, Ion] mirhl:
There should be two lines ending two zeros.

You'll have to replace those zero with MCC and MNC number (munjeni claims that only the latest should be enough, so try just that first)

[MENTION=4120742]munjeni[/MENTION]

Nice program you have there. Though.. I guess that chmod would be too much for some people...

Anyway I tested that init.d script.. but nothing changed.. I'm on Paranoid 4.4 however, not stock rom

EDIT: again, after this fix logcat is spammed by INFO (or debug, can't remember). Those are not harmful.

And the battery improvement was

tangible

, no sheet here
[Sony Xperia S, Acro S, Ion] Meloferz:
When was configured like this

fdmDisabledForMCC 0

fdmDisabledForMNC 0

I've had a lot of battery drain, using BBS I found that was for com.sonyericsson.android.wakeups

When I changed to

fdmDisabledForMCC 744

fdmDisabledForMNC 04

According to the op, it's gone the alarm, and there's no more battery drain

Enviado desde mi Z1 Compact
[Sony Xperia S, Acro S, Ion] munjeni:
Yes, seems you are right! If you setup it corectly you must see in logcat something like "fdm match excluded list"
[Sony Xperia S, Acro S, Ion] munjeni:
Yes, its working! Sorry for alarm! I can see now in logcat that "fdm match exclude list", its working! :)

About program... if you modified them it will not work! Call them from init-recovery.rc or call them directly from android terminal emulator (better idea if you want to see whats happening)!

Principe of the program:

It will work only one time if you have configured apn list! If you have not configured apn settings you can run program many times because program will exit if there is no apn settings, but when program see your apn settings than he will use mnc and mcc value and patch your dormancy file, after that program will write an status file (which mean that have finished his job) and after that program will not work anymore since he done his things allready :)
[Sony Xperia S, Acro S, Ion] munjeni:
If you need you can make flashable file and just write tut for how to call the program trought terminal emulator
[Sony Xperia S, Acro S, Ion] mirhl:
I meant: the script for wlan_rx wakelock didn't have effects.

This could be cool, indeed.

I'll check that when I'll have time
[Sony Xperia S, Acro S, Ion] michuroztocz:
My carrier uses national roaming for better signal coverage in my country. Does this fix work when I'm logged to network Y, if MMC/MNC is set to network X (which is my 'native' network)? Or should I duplicate these lines for every network my phone connects to? Will this solution work when I will have four lines with fdmDisabledForMMC and four lines with fdmDisabledForMNC for different values?

Thanks in advance.
[Sony Xperia S, Acro S, Ion] mirhl:
You should first understand whether your carrier or the roaming carrier support FD

Besides, your APN setting should still be the same, even in roaming afaik
[Sony Xperia S, Acro S, Ion] michuroztocz:
My native carrier which I'm connected to most often doesn't support FD, but one of roaming networks does support it. APN stays the same, but I am not sure how phone and FD behaves in this configuration...
[Sony Xperia S, Acro S, Ion] mirhl:
I don't actually know if FD check compares with APN setting or actual network transmitted codes..

But this would be a nice way to find it out.

Ideally, you should try to measure expected battery life variations (in areas with that roaming carrier) respectively first with MCC and MNC of your original one on the FD blacklist file, and then with MNC of just the roaming one.

If in the second case phone uses more energy, then blacklist certainly compares against network
[Sony Xperia S, Acro S, Ion] michuroztocz:
Well, until now I was getting a lot of com.sonyericsson.android.wakeup wakups, but I've disabled Fast Dormancy for my native carrier. I will manually choose one of roaming carriers which doesn't support Fast Dormancy, and I will check if wakeups are still there. I'm going to post if I find something out.

EDIT:

Two hours after leaving the house, I have 670 wake ups from fast dormancy service. I have been connected to roaming network which doesn't support FD, with my native network blacklisted in fd_custm_conf.txt file.

Is there a way to globally disable FD?
[Sony Xperia S, Acro S, Ion] munjeni:
Probably replace /system/bin/fast-dormancy with an shell script wich will only do dummy echo :)
[Sony Xperia S, Acro S, Ion] mirhl:
What munjeni said... Or try to put a comma(or hyphen) after your MCC, and then write there the other MCC
[Sony Xperia S, Acro S, Ion] michuroztocz:
Can't I just delete/rename /system/bin/fast-dormancy file?
[Sony Xperia S, Acro S, Ion] mirhl:
You might try, but I believe it's a bit too rude
[Sony Xperia S, Acro S, Ion] michuroztocz:
I renamed this file in the morning, and so far so good - no more wakeups :) Unfortunately specifying coma-delimited values didn't work.
[Sony Xperia S, Acro S, Ion] munjeni:
Do not "only" rename since its system file! Just rename them (or delete) and make an emty file, call them "fast-dormancy" and write inside:

#!/system/bin/sh

exit 0

Give perms to these file "rwx rx rx" or aka 755, reboot and you are done.
[Sony Xperia S, Acro S, Ion] Gjole86:
great simple find!

simply works. for my network i had to switch to 2G to not have battery drain, or put airplane mode.

now im rocking the wifi on overnight with 3G connection and lost 7% battery in 8 overnight hours.

that's pretty great considering i have wifi on, stamina mode on and 7 apps on the white-list to operate even in stamina mode.
[Sony Xperia S, Acro S, Ion] Gold_Phenix:
On xperia S works fine thanks. ?

Wysłane z mojego LT26i
[Sony Xperia S, Acro S, Ion] maximuscesar:
Done on my Z2. I will try it for a few days and see if it's worth.
[Sony Xperia S, Acro S, Ion] webwude:
Does not seem to work on a Z3 Compact - I added the numbers from my APN - alarms remain (approx 3K after a day)...

I might have to delete something...

Update: I had to two sets of numbers due to MVNO. No it will be ignored...
[Sony Xperia S, Acro S, Ion] Dr Grato:
can i use this on xperia L?
[Sony Xperia S, Acro S, Ion] mirhl:
You might want to check this. I'm not sure if it's safe though.
[Sony Xperia S, Acro S, Ion] BLu-RaymOn:
thanks. for solution.:D
[Sony Xperia S, Acro S, Ion] jianwei87:
How about if we change sim card with different carrier network?
[Sony Xperia S, Acro S, Ion] Meloferz:
You have to change values again with the new carrier

Enviado desde mi D6503
[Sony Xperia S, Acro S, Ion] RAM LILA:
Good:silly::mad:
[Sony Xperia S, Acro S, Ion] gizaha:
It's strange that no one having the same problem, but the ./etc/fast-dormancy/fd_custm_conf.txt

does not exist in my phone (xperia m2, 4.3 rooted).

More specific, the fast-dormancy folder is missing. Can i disable fast dormancy in M2?

Also on betterbatterystats, on alarms, i have on top the com.android.phone with many wakeups.

When i press, it shows me com.android.settings.PowerManagementService.action.DEVICE_FASTDORMANCY

from my knowledge this is a receiver, right? If i disable this receiver do i solve the problem?
[Sony Xperia S, Acro S, Ion] mirhl:
The other trick is this.

http://xdaforums.com/xperia-l/general/tut-disable-fast-dormancy-battery-life-t2348597
[Sony Xperia S, Acro S, Ion] gizaha:
I did it and it worked. Now i don't have serious kernel wakeups
[Sony Xperia S, Acro S, Ion] C0D3FR34K:
thanks a lot guys. this is awesome stuff
[Sony Xperia S, Acro S, Ion] kuebk:
How many of com.sonyericsson.android.wakeup wakeups might mean problems with FD?
[Sony Xperia S, Acro S, Ion] mirhl:
As much as you check for wakelocks and after some time fd isn't just a couple of mimutes.

I don't remember the exact rate, but definitively north of hundreds per hour.
[Sony Xperia S, Acro S, Ion] Rajkumar-RK:
How to disable in lollipop 5.1,micromamax
[Sony Xperia S, Acro S, Ion] webwude:
Over 1h wakelocks...

Gesendet von meinem D5803 mit Tapatalk
[Sony Xperia S, Acro S, Ion] mirhl:
[MENTION=3110191]webwude[/MENTION]

Well, that's definitively what this guide is about.
[Sony Xperia S, Acro S, Ion] Rajkumar-RK:
Are you gonna say anything about in lollipop 5.1,micromax...about fast demornacy

Or

This thread is only for xperia,
[Sony Xperia S, Acro S, Ion] mirhl:
I'm no wizard.

Just the phone I own.

For as much as perhaps the other guide linked in the FAQ might say something.
[Sony Xperia S, Acro S, Ion] ssceddie:
@ Z3 compact it doesent work with german Provider O2, the wakelocks still alive, or isn't it a real wakelock?
[Sony Xperia S, Acro S, Ion] mirhl:
Your problem isn't with fast dormancy.

I'd say 11m after a day is fine.

Check that bam wakelock.
[Sony Xperia S, Acro S, Ion] ssceddie:
How i can check this? ^^
[Sony Xperia S, Acro S, Ion] mirhl:
https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/bam_dmux_wakelock

Bugreport > /sdcard/report.txt perhaps could give some clue?
[Sony Xperia S, Acro S, Ion] Bewildered Wolf:
will it work on xperia z2

and can someone explain this

Change those zeros with the codes you look earlier and save

which codes to be replaced?
[Sony Xperia S, Acro S, Ion] mirhl:
Change the 0 in the file with those you can see in the Wikipedia page.
[Sony Xperia S, Acro S, Ion] Bewildered Wolf:
i still dont get it :/
[Sony Xperia S, Acro S, Ion] mirhl:
You live in india, your operator is idea (hopefully Delhi) thus you have

fsmDisabledForMCC 404
fdmDisabledForMNC 04
[Sony Xperia S, Acro S, Ion] MajinJoko:
Hi all,

I set the correct values in the ./etc/fast-dormancy/fd_custm_conf.txt file.

I'm using a Z1 compact with Lollipop 5.1.1.

With this setup, I get *a lot* of Awake (screen off) time due to:

- RILJ partial wakelock

- com.android.phone alarm

(thanks to BetterBatteryStats).

I'm wondering whether this is still a FD related problem, or should I look for another culprit.

As per the battery report (in system settings) it seems that the network signal quality is overall good.

Any help is much appreciated :)
[Sony Xperia S, Acro S, Ion] Bewildered Wolf:
You can use amplify to block RILJ and other wakelocks.
[Sony Xperia S, Acro S, Ion] MajinJoko:
[ot]Is it safe to limit RILJ?[/ot]
[Sony Xperia S, Acro S, Ion] Bewildered Wolf:
I have limited it to 800secs no issues.

Use this thread for settings up amplify

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884/post60425051

Hit thanks. :)
[Sony Xperia S, Acro S, Ion] mirhl:
You shouldn't just fix the symptom you know.

Some older ideas are here, and if bbs wasn't enough to track down the issue, you can always try battery historian.
[Sony Xperia S, Acro S, Ion] Matt_Welsh:
I'm positive someone has hacked the hack put of me. So severely that I lagit thought I was crazy. If there's a way to take all the stuff that doesn't belong on my phone anymore and find out exactly what is going on than I'd pay for answers. My name is mart #9712175729 if you can help in anyway I'd appreciate it. Literally this is killing me and my relationship. Thanks for listening
[Galaxy S 4 Q&A, Help & Troubleshooting] yurividal:
Hey guys. I know that CM and CM-Based Roms have the ability to use power button as Camera Shutter. My question is: is it possible to have power button as Camera Shutter on Samsung-Based Roms? It is the feature i miss the most, from CM.

Thanks
[Galaxy S 4 Q&A, Help & Troubleshooting] AMoosa:
No. But you can use the volume button as the shutter. It's in the settings of stock Samsung camera.
[Galaxy S 4 Q&A, Help & Troubleshooting] offdotba:
i would like to see that on stock rom :)