yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S6] bigxie:
If you haven't noticed yet, rooting with either CF-Auto Root or installing TWRP may cause your device to no longer go into deep sleep.

However, we can gain deep sleep back by flashing the stock recovery and then using it to wipe cache (do it twice for good measure).

So, in order to have root + deep sleep, we will do the following:

1. Root with either CF-Auto Root or install TWRP and flash SuperSU

2. Download the stock G920T recovery here

3. Download Flashify and use it to flash the stock recovery

4. Reboot into stock recovery, press power+volume down to bring up the menu (you may have to do this several times, time them together as well as you can), and wipe cache

5. Reboot

Voila, now we have root and deep sleep

For those of you who want to keep TWRP, it should be safe to flash it again after wiping cache with the stock recovery.

CREDITS: info found in this S6 Edge thread adapted for us regular S6 users
[T-Mobile Samsung Galaxy S6] NJGSII:
My device is going into deep sleep just fine after rooting with cf auto root and even after flashing TWRP. Not saying there isn't an issue, its that I haven't experienced anything of the sort.
[T-Mobile Samsung Galaxy S6] airemid:
I'm able to substantiate that with my experience too.

I'm rooted and BBS says that I'm still entering deep sleep. Is BBS wrong, or does rooting only affect S6 Edge users?
[T-Mobile Samsung Galaxy S6] N-Forced:
It's just not the edge guys, I had the exact same problem with my regular s6 not going into deep sleep, flashing the stock recovery has seemed to fix it

sent from my pimped out phone
[T-Mobile Samsung Galaxy S6] mikeyinid:
Damn, you're right. My T-mo S6 hasn't been going into deep sleep. I wouldn't have even thought to look.
[T-Mobile Samsung Galaxy S6] DC2CA:
How do you check this? Is deep sleep below 400mhz?
[T-Mobile Samsung Galaxy S6] NJGSII:
Cpu Spy is also saying my phone has been in deep sleep. Battery life has been consistent for me. I wonder how some people are having issues and others aren't.

---------- Post added at 12:12 PM ---------- Previous post was at 12:11 PM ----------

Yes it's below 400mhz. Use an app like cpu spy and be rooted.
[T-Mobile Samsung Galaxy S6] airemid:
For what it's worth, I used the CF Auto Root tool and in the details of the post, he says that the stock recovery is restored at the end of the procedure, so this could be why I'm not seeing any difference in deep sleep.

I have no way of accounting for why people with TWRP + Root aren't affected, but I just wanted to update my anecdotal data so I'm not misleading :]
[T-Mobile Samsung Galaxy S6] bigxie:
It is quite strange, it seems there isn't a pattern based on rooting method. Some people have deep sleep, some don't.

I tried CF Auto Root and lost deep sleep. Restored stock firmware and got it back. Then flashed TWRP and SuperSU and lost deep sleep again. Then I flashed back the stock recovery and got deep sleep back.

I created a poll to let others document what happened to them. Unfortunately, I made a typo in my rush. It should say:

Did you have deep sleep immediately after rooting without additional steps required?
[T-Mobile Samsung Galaxy S6] DC2CA:
So basically I'm affected by this? I did cf autoroot through Odin.
[T-Mobile Samsung Galaxy S6] glensta:
Thank you [MENTION=3183886]bigxie[/MENTION], working nicely. I was getting so frustrated with my brand new bad ass S6 and that ****ty battery life lol. :good:
[T-Mobile Samsung Galaxy S6] ledvedder:
I can confirm. I wasn't aware of this issue last week when I used CF-root via Odin to root my S6. I did flash TWRP this morning, and then came across this thread. When I opened CPU Spy, I noticed my phone was only dropping down to 400MHz. So, I flashed the stock recovery. Now, I've got deep sleep back.

Therefore, I'm not sure if rooting or flashing TWRP caused the issue.
[T-Mobile Samsung Galaxy S6] DC2CA:
Got deep sleep back!! Thanks bud. When I first booted up I had no data and freaked out because there's no toggle anymore (thread on it in apps though, next stop) but after getting into settings and toggling it I was back on 4G.
[T-Mobile Samsung Galaxy S6] drksilenc:
question is 400mhz deep sleep?
[T-Mobile Samsung Galaxy S6] ledvedder:
No. View attachment 3260854
[T-Mobile Samsung Galaxy S6] drksilenc:
ok then i have never had deep sleep... I have powermanagerservice.wakelocks keeping me awake.
[T-Mobile Samsung Galaxy S6] B1aze:
Can confirm also my deep sleep is back! Noticed the other day it only got to 400, flashed root with Chainfire a little over a week ago, battery life hasn't been the best. Will see tomorrow with a full charge what difference this makes.
[T-Mobile Samsung Galaxy S6] Fenny:
The only step I did to get deep sleep back was to wipe cache, but then I only just put TWRP on today, and even still I didn't lose deep sleep from doing that either.
[T-Mobile Samsung Galaxy S6] ledvedder:
Hmm, I'll have to try that when I get a chance. Then again, I really don't need TWRP until some roms become available.
[T-Mobile Samsung Galaxy S6] Alarand:
Should deep sleep show up automatically in cpu spy when it's functioning correctly? Apparently I lost deep sleep also because CPU spy lists 400 mhz as the lowest it's been.

edit: nvm flashed stock recovery and deep sleep started showing up in cpu spy. Strange
[T-Mobile Samsung Galaxy S6] cpufrost:
How many of you are using wireless charging?

Not sure if this applies but my Nexus 6 had the bug in 5.02 where when the device was taken off a wireless charger it would never go into deep sleep until it was rebooted. If charged with the USB cable this was a non issue.

Not sure if this is happening on this device. I use a 3 coil TYLT (works excellent) and will check with better battery status to verify.
[T-Mobile Samsung Galaxy S6] kalapa:
I followed this guide now my phone won't restart. Flashed the file using Flashify, rebooted, and it keeps coming up with "Installing system update..." then it takes me to recovery. When I choose to reboot from there the same process happens. What can I do?

*edit* Shoot. come to think of it.. when I flashed it in flashify, I believe it flashed the file to boot, NOT recovery.. because I still have TWRP recovery when I do vol up+power+home

Can someone set me up with the factory boot?
[T-Mobile Samsung Galaxy S6] AJ:
My battery life is very low ,

Now I know why .
[T-Mobile Samsung Galaxy S6] charlie.s:
It is puzzling that there seems to be no pattern to this, but I am sure it will eventually surface. My experience FWIW:

- Rooted 920T with CF-Auto-Root and determined that I had no deep sleep. (I had not checked it before root.)

- Re-flashed recovery using Flashify and deep sleep was back.

- Flashed TWRP using Flashify and deep sleep was still present.
[T-Mobile Samsung Galaxy S6] Alarand:
This is interesting. I just flashed TWRP using flashify instead of odin and now my deep sleep is working again.

I rooted and installed TWRP with odin, noticed deep sleep wasn't working, flashed the stock recovery (this fixed deep sleep), and now flashed twrp again and it seems to be working fine.

US Tmobile g920t
[T-Mobile Samsung Galaxy S6] mikeyinid:
Guys, when you install TWRP boot into it and wipe cache. Problem solved. No need to go back to stock recovery.
[T-Mobile Samsung Galaxy S6] Exel:
Was going to say the same. Wiping cache works just fine.

I'm rooted + TWRP and wiped cache and I can get to deep sleep just fine.
[T-Mobile Samsung Galaxy S6] N-Forced:
That didn’t seem to work for me when I did that Sunday night, flashed TWRP through odin Sunday night after discovering my phone was not going into deep sleep. Once installed I wiped cache and restarted the phone and still didn't get deep sleep back till I flashed stock recovery through flashify yesterday. Will try to flash TWRP through flashify and see if deep sleep remains.
[T-Mobile Samsung Galaxy S6] bigxie:
Thanks Mikey, this worked for me.

I flashed TWRP using Flashify, rebooted into it, Wipe -> Advanced -> check cache only, wiped, rebooted, and still had deep sleep.

I'm glad that it seems to be a much simpler issue and not some sort of protection built into the stock ROM requiring the stock recovery!
[T-Mobile Samsung Galaxy S6] lilmikey201:
anybody do this for the s6 edge?

what were your exact steps that worked?

getting the edge tomorrow and im seeing a bunch of diff steps, someone told me to

1- use smartswitch and get the phone updated to 5.0.2

2- root the phone using the 920t root file not the 925....

3- flash the stock 925 recovery

thats the steps to acquire deep sleep ?
[T-Mobile Samsung Galaxy S6] lilmikey201:
Anyone?
[T-Mobile Samsung Galaxy S6] MaliceOmega:
According to CPU spy my phone still isn't going into deep sleep. Rooted device, installed twrp and wipe cache. Still not showing deep sleep.
[T-Mobile Samsung Galaxy S6] bigxie:
Did you get my reply to your PM? Just wipe cache after running CF-Auto Root and you should be getting deep sleep.

How long did you wait? Do you have any other wakelocks keeping your device awake (using BBS or some other tool to check)?
[T-Mobile Samsung Galaxy S6] MaliceOmega:
Been sitting for about an hour or so. And only using CPU spy. Does android wear cause it not to go into deep sleep? I do have my moto 360 connected
[T-Mobile Samsung Galaxy S6] Exel:
I'm rooted and have a custom recovery..
[T-Mobile Samsung Galaxy S6] MaliceOmega:
Mine doesn't seem to like to sleep lol
[T-Mobile Samsung Galaxy S6] scorpio_bpl86:
i rooted with cf auto root

no twrp

still does not have deep sleep enabled

do i need to wipe cache in stock recovery ?
[T-Mobile Samsung Galaxy S6] dotson817:
Yes.
[T-Mobile Samsung Galaxy S6] bigxie:
I have a 360 also. The phone will deep sleep with a Wear device paired.

You could try wiping cache again or reverting to stock recovery. Or using BBS to track down what's causing the wake lock (or if there isn't one).

Sent from my SM-G920T
[T-Mobile Samsung Galaxy S6] MaliceOmega:
Tried wiping cache multiple times and the going to the stock recovery

and wiping cache there to no avail. Can anyone tell me what powermanager is doing?

EDIT: Did a fresh wipe and rooted and device gets deep sleep with stock recovery. Gonna hold off on twrp for now lol
[T-Mobile Samsung Galaxy S6] Thijssie909:
Wiping cache doesn't work for me. Tried several things, flashing stock recovery and TWRP, wiping cache, but I can't get deep sleep to work.
[T-Mobile Samsung Galaxy S6] benjmiester:
Confirmed fixed my phone:s insomnia on my T-Mobile s6 after cfroot. Ironically, I had been using resolution changer to run 1920 x 1080 (and even low ones just for kicks) to see how it helps with battery life/performance so the life was pretty good still. But I was suspicious when I noticed the standby sucked that there was a deep sleep issue. Sorted!
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
Rooted Sprint S6 with cfautoroot. Rooted successfully. Flashed TWRP but wouldn't work once in recovery. Kept freezing. So I flashed G920T Stock recovery because that was the only stock recovery I could find. After flashing, I've wiped cache several times in recovery and rebooted and phone continues to go no lower then 400. It will not deep sleep at all. Any recommendations because I would like my battery to be where it was when I first got the phone?
[T-Mobile Samsung Galaxy S6] MaliceOmega:
try flashing the auto root file again. it restores stock recovery. worked for me
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
Ok I'll give that a shot. Thank you
[T-Mobile Samsung Galaxy S6] Thijssie909:
Tried it. Doesn't work here...
[T-Mobile Samsung Galaxy S6] MaliceOmega:
only other thing i can say is start from scratch. do a full wipe, odin the cf auto root and pass on twrp for now.
[T-Mobile Samsung Galaxy S6] Gootah:
My Experience

Rooted>TWRP = No Deep Sleep

Flashed stock recovery = Deep Sleep Back

Although it's not really that great imo.

It falls into deep sleep much too late, the timer is too long.

But I need to do an overnight test and see how much time it really spends in Deep Sleep.
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
Yeah didn't bring back deep sleep for me. Not really too many reasons to have root right now. Think I'm gonna go back to complete Stock and unroot and see if that gets deep sleep back
[T-Mobile Samsung Galaxy S6] PrOpANe84:
Thought I'd put in my experience as well in case it helps somebody.

Got my t-mobile S6 and instantly applied OTA update.

Rooted with CF Auto Root.

Did NOT install TWRP, but noticed I was not going below 400 mhz, so no deep sleep.

After reading this thread, I decided to install TWRP since I figured I could wipe cache from that and fix the problem.

Installing TWRP and wiping cache several times did not resolve deep sleep issue.

Re-flashed stock recovery, wiped cache (wiped twice in a row, just to be sure)... BOOM! Problem solved.
[T-Mobile Samsung Galaxy S6] nflwideout86:
If you have the sprint s6, download the ocf firmware samsung just released today.

pull the recovery img from that and flash using flashify and youll get deep sleep back. i just tried it and now my device enters deep sleep while rooted.

http://www.sammobile.com/firmwares/database/SM-G920P/
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
Awesome! That worked for me. Still got root and got deep sleep back. Back to good battery life again lol. Thank you
[T-Mobile Samsung Galaxy S6] guyd:
Confirmed. Like many of you, my device was not deep sleeping.

1. Flashed TWRP using Odin (no deep sleep).

2. Flashed the Stock Recovery using flashify.

3. Booted into the stock recovery.

4. Wiped Cache (twice) from the menu option.

5. Booted back into the (stock rooted) ROM (deep sleep works).

6. Flashed TWRP using Flashify, and deep sleep still working!
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
For some reason when I go to download the Sprint stock firmware on Sammy Mobile, it's taking way too long. Can someone please post the stock recovery image for the Sprint S6?

Never mind, I've got it
[T-Mobile Samsung Galaxy S6] Calnyx:
First post should really be edited, had TWRP, no deep sleep. Wiping cache on its own did nothing to solve the issue.

Had to flash stock recovery, wiped cache twice in a row. Then I had deep sleep again.
[T-Mobile Samsung Galaxy S6] ktetreault14:
Lmao Messed up.
[T-Mobile Samsung Galaxy S6] bigxie:
Interesting. I have TWRP and deep sleep, but in between that, I did flash back the stock recovery and wipe cache. So you're saying that if you forgo that step altogether, you still won't have deep sleep? That in order to use TWRP and have deep sleep, you still need to flash the stock recovery and wipe cache first?

Can anybody else confirm?

That's simply not true.
[T-Mobile Samsung Galaxy S6] guyd:
Yes, Confirmed. And then Flash TWRP using Flashify.

Read my post 4 above yours.
[T-Mobile Samsung Galaxy S6] lilmikey201:
will the Twrp in flashify work on the s6 edge?
[T-Mobile Samsung Galaxy S6] MaliceOmega:
In case you mofos need anymore confirmation. Wiped cache in stock recovery (deep sleep confirmed), flashed twrp via flashify then immediately rebooted and wiped dalvik/cache (deep sleep not working), wiped dalvik/cache a second time, rebooted deep sleep and Illuminati confirmed lol

EDIT: I am using DS Battery Saver. But it still seems to go into deep sleep without it
[T-Mobile Samsung Galaxy S6] mantff:
Hi, I'm in G920FXXU1AOCZ with TWRP and no deep sleep...

In order to flash the stock recovery, can I flash the recovery of G920FXXU1AOD9?

It's because I don't have my own stock recovery and I don't known where can I get it
[T-Mobile Samsung Galaxy S6] 92drls:
Wheres everyone getting the stock recovery for 920T? I extracted the stock tar with winrar and 7zip but there's still no recovery.img in the options while trying to choose it in Odin?
[T-Mobile Samsung Galaxy S6] jonahtriangle:
The file is in the OP. It is an imiage file. Use flashify. Go to the option flash recoveries. When prompted the first choice is to choose file. Then look fo4 the image file you downloaded and flash.
[T-Mobile Samsung Galaxy S6] ktetreault14:
Can someone help me out. Ever since I flashed a boot.img from TWRP Image flasher I cant boot into my system. I even Restored a backup and odined a kernel. Still cant make it to sammy logo. Dont really feel like odin stock rom :{
[T-Mobile Samsung Galaxy S6] guyd:
I think that's your only choice at this point, if you want to actually use your phone...
[T-Mobile Samsung Galaxy S6] ktetreault14:
I really just didn't want to erase my memory and I couldn't move it to my PC and TWRP kept failing so after I odined it still didn't work had to reset anyway. Dang
[T-Mobile Samsung Galaxy S6] 92drls:
I think maybe we should change the first post a bit. The file we need for the factory recovery is actually crossed out and misleading... FYI
[T-Mobile Samsung Galaxy S6] bigxie:
Thanks. I've updated it to reflect the latest info contributed in this thread.

Basically, you need to flash the stock recovery and wipe cache to get deep sleep back. After that, it should be safe to flash TWRP and retain deep sleep.
[T-Mobile Samsung Galaxy S6] guaneet:
we actually have our first custom kernel in the development thread. no need to FLASH STOCK RECOVERY EVER AGAIN!

everything works perfect. deep sleep. wifi calling. volte.
[T-Mobile Samsung Galaxy S6] Wacky2bakky:
Where is the custom kernel? And will it work for the Sprint S6?
[T-Mobile Samsung Galaxy S6] twoeleven99:
I flashed ktoon kernel and still didn't have deep sleep. Bbs says i lost 7% an hour last night while i was asleep and 0 deep aleep. now I'm going to flash back to stock recovery and see how that goes
[T-Mobile Samsung Galaxy S6] androidddaaron:
HERE'S A CPU SPY SCREENSHOT

OK I DON'T UNDERSTAND A LOT TO DO WITH READING DEEP SLEEP STATS OR UNDERSTANDING WHAT I'M SEEING

SO HERE'S A SCREEN SHOT

AM I GOOD TO GO? I DID THE DEEP SLEEP MOD FLASHED STOCK REC WIPED CACHE 2 TIMES
[T-Mobile Samsung Galaxy S6] seanyuan62:
It's argued that booting into safe mode and leaving it for a while does the exact same thing of clearing app cache without need to flash anything
[T-Mobile Samsung Galaxy S6] jonahtriangle:
If you see deep sleep show up anywhere on the screen your good. If not then it is not going in to deep sleep.
[T-Mobile Samsung Galaxy S6] euklid:
Does the stock recovery posted in OP work if I took the OTA update on my S6?
[T-Mobile Samsung Galaxy S6] freebee269:
just got my gs6 today. i came home and flashed root with CF and odin. booted back up and noticed my phone wouldnt go into deep sleep. i then rebooted to the stock recovery and wiped cache. after reboot i waited 5min and my phone still wouldnt go into deep sleep. i then flashed twrp and wiped cache in that. i then rebooted and waited another 5min and i still get no deep sleep. any other ideas on what i'm doing wrong? i get 75% 400mhz but deep sleep is an unused state.
[T-Mobile Samsung Galaxy S6] euklid:
Read the OP, you have to flash the stock recovery.
[T-Mobile Samsung Galaxy S6] freebee269:
i said i flashed the stock recovery. you must have miss that part. but i got deep sleep back after going back into twrp and wiping cache again for a second time.
[T-Mobile Samsung Galaxy S6] euklid:
oh ok sorry :). I'm glad you got it working.
[T-Mobile Samsung Galaxy S6] Neosepia:
It's greentext time story

> Debloatwared, running smooth with very very nice battery life

> get like 5% battery drop from 8 hours sleep, which I consider good, most of the time phone is deep-sleeping.

> Using touchwiz as launcher, everything just works great. (only samsung apps - touchwiz, samsung themes and samsung account 2.1.075 (for themes to work)).

> Started unconfiguring some uneeded google stuff (cards, device track, etc.)

> Heck, remove Google app and google launcher. clear cache, reboot.

> Everything works fine.exe

Lost deep sleep.

> wtf.jpg

> wait for some hours. All locks seem valid, see nothing that should prevent the phone from deep sleeping. Phone functions just fine, but deep sleep is entirely lost.

> get 5% down in an hour now.

> Start wondering what the hell did I do, what did I change.

> Cannot be google

> CANNOT be google

> go google play, reinstall google and google launcher. Configure both, remove whatever unnecessary **** I don't want them to update.

Deep sleep is back.

what is this I don't even
[T-Mobile Samsung Galaxy S6] frodoboy:
I already have a pretty streamlined phone after rooting, TWRP and a lot of tweaks. Got rid of a LOT of unnecessary apps. Battery still drained up to 10% overnight. Then I read this thread. Didn't even realize I had lost Deep sleep! So I flashed stock recovery from Flashify and cleared the cache 3 times just to be sure. I noticed on the 3rd run it had a lot more information than the first two times...interesting. Then I rebooted and Deep Sleep was back! Then I Flashified TWRP and rebooted. Didn't clear cache this time. Waited about 5 minutes and Deep Sleep was still there! So I looked at the CPU Spy stats before I called it a night. The battery was at 78%. I woke up this morning 7 hours later and the battery was STILL at 78%!!! Is this impressive or what??? I am a very happy camper now. Oh, plus I love the new camera! Thanks guys for all the discussions in this thread. Really helped a lot. Makes coming from the HTC M7 a lot easier.
[T-Mobile Samsung Galaxy S6] hunnypooh:
How do you get the .tar.md5 file? All I'm seeing are 2 folders (META-INF & System) and a boot.img.

Adding the .zip file to a .tar doesn't work, it just " tars " the zip file;

Resulting in: " filename.tar *Open* Filename.zip *open* 2 Folders/ boot.img

Appreciate all the assistance!
[T-Mobile Samsung Galaxy S6] ktetreault14:
Deep Sleep Fixed for anyone having issues http://xdaforums.com/showthread.php?t=3079705
[T-Mobile Samsung Galaxy S6] Slicktune:
This says 6 edge forum and hardwares are different... do we flash the patch how does this work ive been reading and reading and i feel like such a noob.
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
Use this one, its fine for all models

http://xdaforums.com/attachment.php?attachmentid=3284719&d=1430149074
[T-Mobile Samsung Galaxy S6] Slicktune:
Thanks bro, do i flash this via twrp/stock recovery? On any rom?... thanks in advance!
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
Yes Via TWRP
[T-Mobile Samsung Galaxy S6] Slicktune:
Thanks, will i have to flash this everything i flash a rom or a factory reset/full wipe?

Thanks in advance!
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
It sounds like it has something to do with twrp it self so and long as twrp is still on the phone and you flashed this, it should be fine.
[T-Mobile Samsung Galaxy S6] Slicktune:
Thanks a bunch bro!!

---------- Post added at 03:52 AM ---------- Previous post was at 03:30 AM ----------

---------- Post added at 04:02 AM ---------- Previous post was at 03:52 AM ----------

I had this phone with its screen off for 10 mins and this was the result (havent flashed the update yet) so judging by this screen shot i need the deep sleep fix correct? How fast should a phone start deep sleep after the phone's screen is off??

And thats the last question of the day! Thanks again for your quick replies [emoji106]
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
I dont know exactly the time frame but I know for sure that it is less then 10 min. So yours isnt sleeping.
[T-Mobile Samsung Galaxy S6] Slicktune:
Just flashed the provided fix, wiped cache, rebooted reset timer on "cpu spy" app left the phone off again for 12 mins and that fix is a no go...

[emoji20] [emoji20] [emoji20] [emoji107] [emoji107] [emoji107]

---------- Post added at 05:04 AM ---------- Previous post was at 04:33 AM ----------

Removed the whole rom (wiped cache, system, partition)and reflashed it, and im back up and these are my results.. thanks[emoji5]
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
What Rom?
[T-Mobile Samsung Galaxy S6] Slicktune:
XtreStoLite rom 1.0c [emoji5] could it be that it wasnt working because i had flashed the ktoonz kernel before the fix?

Thanks in advance!
[T-Mobile Samsung Galaxy S6] Fightoffyoredeamons:
I have this same exact set up and mine sleeps like a nyquil coma.