Windows 8 and 8.1 Forums


Windows 8.1 refuses to sleep

  1. #2021


    Posts : 59
    Windows 8.1


    Quote Originally Posted by EnricoS View Post
    Hi everyone,

    I've been reading this thread and searched the net for long about this problem, but nothing worked completely for me; Anyway In the past few days I came to a possible solution, I hope.

    The problem I had regarding the auto-sleep was only due to "srvnet" driver that sometimes (randomly) keeps the power request stuck even with no network activity at all (eg disconnecting LAN cable or disabling NIC); when working correctly, srvnet request disappear after about 3 min.

    So I thought that this behavior was caused by a bug in the srvnet driver that doesn't remove the request sometime; in fact when it happens, stopping and restarting the server with "net stop /y srv" and "net start /y srv" commands solves the problem, temporarily.
    I also read that some users started to have sleep problems when they upgraded from Windows 8 to Windows 8.1, and that Windows 10 Tech Preview seemed to auto-sleep properly; this gave me an idea.

    Since I have Windows 10 TP installed in another PC to test it, I thought to swap the W8.1 srvnet.sys driver with the W10 one.

    When I found "srvnet.sys" in "C:\Windows\System32\drivers" folder, I noticed that there are another 2 files regarding network and sharing: srv.sys (Server driver) and srv2.sys.

    First I swapped srvnet.sys files, but when I restarted the system the server didn't start at all and the sharing was not working, so I restored the original srvnet.sys;
    then I swapped srv2.sys and the result was the same so I restored the original one;
    at the end I swapped srv.sys driver and... finally everything seemed to work well!

    I kept this configuration for about a week and srvnet never got stuck in power request;
    so I decided to do a countercheck, swapping srv.sys with original W8.1 driver and I didn't had to wait too much before the srvnet power request got stuck forever, again.

    In a nutshell, all you have to do to try this solution is to swap the W8.1 "srv.sys" file located in "C:\Windows\System32\drivers" directory with the W10 TP one.

    I attached a zip containing the one I took from my W10 system.
    Note that to do this you have to take ownership of the file and be sure that you have the full control (read and write) of it (there are thousands guides on how to do this).


    Attachment 58865

    Also, would be interesting doing the same with the "srv.sys" from Windows 8, but i couldn't find it.

    I hope this could help someone.

    Bye!
    This is a good find. I always had problems with that driver keeping the PC awake for a very long time but replacing the file solved it. I always knew there was a bug but never understood why it was never fixed.

    I switched my HTPC to a local account and turned off file sharing and did not have any issues with sleep. I wonder if I use a online account and replace srv driver and turn on file sharing if it will solve the sleep issues? I can do without an online account on my HTPC. When I used an online account on the HTPC sometimes the PC wouldn't sleep even though nothing was requested.

      My System SpecsSystem Spec

  2. #2022


    Posts : 9
    Windows 8.1 x64


    Quote Originally Posted by Deihmos View Post
    Quote Originally Posted by EnricoS View Post
    Hi everyone,

    I've been reading this thread and searched the net for long about this problem, but nothing worked completely for me; Anyway In the past few days I came to a possible solution, I hope.

    The problem I had regarding the auto-sleep was only due to "srvnet" driver that sometimes (randomly) keeps the power request stuck even with no network activity at all (eg disconnecting LAN cable or disabling NIC); when working correctly, srvnet request disappear after about 3 min.

    So I thought that this behavior was caused by a bug in the srvnet driver that doesn't remove the request sometime; in fact when it happens, stopping and restarting the server with "net stop /y srv" and "net start /y srv" commands solves the problem, temporarily.
    I also read that some users started to have sleep problems when they upgraded from Windows 8 to Windows 8.1, and that Windows 10 Tech Preview seemed to auto-sleep properly; this gave me an idea.

    Since I have Windows 10 TP installed in another PC to test it, I thought to swap the W8.1 srvnet.sys driver with the W10 one.

    When I found "srvnet.sys" in "C:\Windows\System32\drivers" folder, I noticed that there are another 2 files regarding network and sharing: srv.sys (Server driver) and srv2.sys.

    First I swapped srvnet.sys files, but when I restarted the system the server didn't start at all and the sharing was not working, so I restored the original srvnet.sys;
    then I swapped srv2.sys and the result was the same so I restored the original one;
    at the end I swapped srv.sys driver and... finally everything seemed to work well!

    I kept this configuration for about a week and srvnet never got stuck in power request;
    so I decided to do a countercheck, swapping srv.sys with original W8.1 driver and I didn't had to wait too much before the srvnet power request got stuck forever, again.

    In a nutshell, all you have to do to try this solution is to swap the W8.1 "srv.sys" file located in "C:\Windows\System32\drivers" directory with the W10 TP one.

    I attached a zip containing the one I took from my W10 system.
    Note that to do this you have to take ownership of the file and be sure that you have the full control (read and write) of it (there are thousands guides on how to do this).


    Attachment 58865

    Also, would be interesting doing the same with the "srv.sys" from Windows 8, but i couldn't find it.

    I hope this could help someone.

    Bye!
    This is a good find. I always had problems with that driver keeping the PC awake for a very long time but replacing the file solved it. I always knew there was a bug but never understood why it was never fixed.

    I switched my HTPC to a local account and turned off file sharing and did not have any issues with sleep. I wonder if I use a online account and replace srv driver and turn on file sharing if it will solve the sleep issues? I can do without an online account on my HTPC. When I used an online account on the HTPC sometimes the PC wouldn't sleep even though nothing was requested.
    Hi Deihmos, this seems good, is everything else working fine after replacing the file on you PC? And for how long are you testing it?

    About your HTPC, you should try, you can always revert back.

    Regarding the case in which nothing appears in power requests but the system doesn't sleep anyway, it happened to me too, but I found out that it was due to some maintenance tasks that the system starts when idle or due to syncing tasks (especially when using online account);
    anyway I simply have let end these tasks and the system sleeped fine, very rarely they could take some time but nothing to worry about.
      My System SpecsSystem Spec

  3. #2023


    Posts : 59
    Windows 8.1


    How much time? I have left it for over 48 hrs and it does not end. Using a local account has solved it.

    Changing the file did not cause any problems and does not solve the problem with sleeping with online accounts. I have tried it.
    Last edited by Deihmos; 29 Mar 2015 at 16:54.
      My System SpecsSystem Spec

  4. #2024


    Posts : 149
    Windows 7 Home Premium on 2 Windows 8.1 on 1


    Seems as if Win 8.1 is extremely sensitive when it comes to sleep.

    After some tweaks my Win 8.1 laptop has been sleeping reliably. I started using Chrome as my browser and I noticed right away the computer would not sleep. A check of powercfg -requests showed Chrome.exe as the culprit. I set an override and of course the computer now sleeps. On my Win 7 machines Chrome doesn't cause a sleep issue.

    Googling I saw a few reports of Chrome.exe causing this issue on various systems, but it did not seem widespread. Wondering why it caused an issue for me?
      My System SpecsSystem Spec

  5. #2025


    Posts : 286
    W8.1 Pro 64


    Quote Originally Posted by bru View Post
    Seems as if Win 8.1 is extremely sensitive when it comes to sleep.

    After some tweaks my Win 8.1 laptop has been sleeping reliably. I started using Chrome as my browser and I noticed right away the computer would not sleep. A check of powercfg -requests showed Chrome.exe as the culprit. I set an override and of course the computer now sleeps. On my Win 7 machines Chrome doesn't cause a sleep issue.

    Googling I saw a few reports of Chrome.exe causing this issue on various systems, but it did not seem widespread. Wondering why it caused an issue for me?
    Are you by any chance hosting a google cloud printer on that pc?
      My System SpecsSystem Spec

  6. #2026


    Posts : 149
    Windows 7 Home Premium on 2 Windows 8.1 on 1


    Quote Originally Posted by NCguy View Post
    Are you by any chance hosting a google cloud printer on that pc?
    No. Not even signed in to my Google account.

    Under power requests it specifically shows:

    EXECUTION:
    [PROCESS] \Device\HarddiskVolume4\Program Files (x86)\Google\Chrome\Application\
    chrome.exe
    Uploading data.

    Even when I just have one Chrome tab open, on Yahoo or whatever.
      My System SpecsSystem Spec

  7. #2027


    Posts : 286
    W8.1 Pro 64


    Quote Originally Posted by bru View Post
    Quote Originally Posted by NCguy View Post
    Are you by any chance hosting a google cloud printer on that pc?
    No. Not even signed in to my Google account.

    Under power requests it specifically shows:

    EXECUTION:
    [PROCESS] \Device\HarddiskVolume4\Program Files (x86)\Google\Chrome\Application\
    chrome.exe
    Uploading data.

    Even when I just have one Chrome tab open, on Yahoo or whatever.
    I know chrome changed a while back and now there's a piece that stays resident and in the tray. I'm not sure though if it does this for all configurations. Maybe that has something to do with it?
      My System SpecsSystem Spec

  8. #2028


    Posts : 6
    Windows 8.1


    Quote Originally Posted by EnricoS View Post
    In a nutshell, all you have to do to try this solution is to swap the W8.1 "srv.sys" file located in "C:\Windows\System32\drivers" directory with the W10 TP one.
    I just wanted to take a minute to thank you for this. My situation was actually a bit unique, as compared to what I had read elsewhere. My computer had absolutely no issues sleeping, but because it had been operating for well over a year, I began to see some performance issues. It's at this point I usually reinstall the OS. I was "smart enough" to have created a clean-install image so I could do this rapidly. Oddly, sleep was an issue from the get-go once the image was up and running.

    srvnet was an issue, but the powercfg override was not working (I recall that fixed it in the past). Disabling IPv6 got me half-way there, as it would sleep, but only the first time. After a wakeup, it would not go back to sleep again. I happened upon this post and tried the netstop/start on the service. Shocker! It fell back to sleep on its own. I figured that was enough to try your replacement driver.

    I did so, tested, and everything continued to work as expected. I then began adding items back into the mix (keyboard, mouse, background apps, foreground apps) one at a time and each time, sleep continued.

    What I don't understand is why, with the same code base/install, this became a problem now, when it was not before, particularly when using the same configuration, software and hardware. I'm not sure I'll ever know, but very happy that this is finally working the way it should. Thanks again for the information and the replacement driver.
      My System SpecsSystem Spec

  9. #2029


    Posts : 9
    Windows 8.1 x64


    Quote Originally Posted by ACraigL View Post
    Quote Originally Posted by EnricoS View Post
    In a nutshell, all you have to do to try this solution is to swap the W8.1 "srv.sys" file located in "C:\Windows\System32\drivers" directory with the W10 TP one.
    I just wanted to take a minute to thank you for this. My situation was actually a bit unique, as compared to what I had read elsewhere. My computer had absolutely no issues sleeping, but because it had been operating for well over a year, I began to see some performance issues. It's at this point I usually reinstall the OS. I was "smart enough" to have created a clean-install image so I could do this rapidly. Oddly, sleep was an issue from the get-go once the image was up and running.

    srvnet was an issue, but the powercfg override was not working (I recall that fixed it in the past). Disabling IPv6 got me half-way there, as it would sleep, but only the first time. After a wakeup, it would not go back to sleep again. I happened upon this post and tried the netstop/start on the service. Shocker! It fell back to sleep on its own. I figured that was enough to try your replacement driver.

    I did so, tested, and everything continued to work as expected. I then began adding items back into the mix (keyboard, mouse, background apps, foreground apps) one at a time and each time, sleep continued.

    What I don't understand is why, with the same code base/install, this became a problem now, when it was not before, particularly when using the same configuration, software and hardware. I'm not sure I'll ever know, but very happy that this is finally working the way it should. Thanks again for the information and the replacement driver.
    Hi,
    I'm happy that my solution helped you too (so far)!

    Although it is very strange that the srvnet issue started only after you reinstalled the OS, it is more or less what happened to me; everything was working fine for about a year since W8.1 installation, then srvnet suddenly started to prevent the auto sleep, and that without any HW or SW changes. I think this is going to remain a mystery.
      My System SpecsSystem Spec

  10. #2030


    Tucson, Arizona
    Posts : 23
    Windows 8.1


    Ok, I had same problem. What i did is disable hibernation.-seems like power off.
    Here is a microsoft fixit: https://support.microsoft.com/en-us/kb/920730
      My System SpecsSystem Spec

Windows 8.1 refuses to sleep
Related Threads
For some reason, Windows refuses to let any program (utorrent, iexplore, firefox...) connect to animetorrents.me (reporting that it cannot locate the server in Firefox and telling the me machine actively refused the connection in uTorrent) I can access the site through a proxy (eg: by going to...
When trying to boot Windows 8, it gets stuck at a black screen. I tried automatic repair and refreshing my pc. I need a dvd to refresh my pc which I don't have. I tried bcdboot but apparently the problem is not with the boot process. It seems that the only option left is to reinstall Windows 8...
I don't know if this is a software problem or not, so forgive me if this is the wrong forum to post it on. My Asus Q301LA refuses to wake from sleep mode if the charger is plugged in and the battery is fully charged. To elaborate, all that happens is the light on the power button comes on, but my...
After much trouble getting Windows Media Player to "see" several music files, I finally was able to burn a CD for use on a common stereo player. All tracks are short because they are simply sound effects for use on stage. I create a burn list of 1Music, 2Music, etc., through 25Music. I end up...
It will sleep when told, as far as I can tell... and it will hibernate if I manually right click and tell it too, So I've enabled hibernate, went into advanced setting under sleep to tell the computer when to hibernate. I set it to what ever time. It refuses to hibernate at the allotted time...
Amazing... I searched for "sleep" here and found the "Windows 8.1 refuses to sleep" thread, which is still going strong after almost 800 posts, talking about the exact opposite problem to the one I'm having! (Now, needless to say, I haven't read the entirety of that thread - yet; could someone...
I bought a new Dell 5 weeks ago (my old one of 9 years died) sadly it came with Wiin 8 installed? I wish I hadn't? The accounts and Passwords are atrocious. I have been locked out Twice using the same password I have used for 5 years and had used the night before and then had to wait a week for a...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook