Windows 8 does not go to sleep - how to identify the device/app preventing sleep

Hello,
I have a quite new Windows 8 Pro installation upgraded from Windows 7, but as a clean install. It is running on a Asus K53E laptop bought almost a year ago but I ran into a problem with going to standby mode. The laptop successfully dims the display and
then turns it off at the set time but it never reaches the sleep mode.
I followed the steps from http://support.microsoft.com/kb/976877 but to no avail. The command
Powercfg - devicequery wake_armed shows only keyboard and mouse but I don't suspect the mouse as it is Microsoft Wireless Mouse and I turn it off before trying to induce sleep. I have made sure to turn off iTunes media sharing and Windows Media
Player Network Sharing service. The drivers are from Microsoft or the newest I could get from Asus.
The command
Powercfg -energy showed some errors - mostly with USB devices/hubs and with one of the system drivers:
System Availability Requests:System Required Request
The device or driver has made a request to prevent the system from automatically entering sleep.
Driver Name
\FileSystem\srvnet
I rather suspect some incompatible driver but to press Asus support for some update I would need to know what to blame. I reviewed system logs in Event Viewer but can't find any useful entries around the time when the computer should go to sleep, but there
are so many logs that I might have missed the right one. So my question is if somebody could introduce me to a tool that would help to pinpoint the problem.
I see the subject is quite ubiquitous for Windows 7 so I would be grateful to anyone who could suggest any options other than mentioned above.
Thanks in advance,
Chris

Hi luke, I tried your script. However, it seems that once in a while srvnet crashes during the restart. Can you help me on this? Chris
Hi Chris
Not sure why that would be but - you could add some error-checking logic to the script to test whether srvnet has successfully started, and then if it hasn't - attempt to restart it again. I haven't tested this code because I haven't had that issue, but something
along the lines of:
@echo off
set logfile="%TMP%\srvlog.txt"
if exist %logfile% goto begin
echo [%date:~4,10% %time%] logfile created>%logfile%
:begin
echo -->>%logfile%
echo [%date:~4,10% %time%] srvnet check triggered>>%logfile%
openfiles /Query 2>NUL | FIND /C "INFO: No shared open files found" >NUL
if errorlevel 1 goto yes_opens
echo [%date:~4,10% %time%] no open files, proceeding to check for srvnet driver block>>%logfile%
powercfg -requests | find /C "[DRIVER] \FileSystem\srvnet" >NUL
if errorlevel 1 goto no_srvnet_block
echo [%date:~4,10% %time%] **block detected, restarting srv**>>%logfile%
net stop /y srv >NUL 2>NUL
ping -n 5 -w 1000 127.0.0.1>NUL
sc query srv | find "RUNNING" >NUL 2>&1
if errorlevel 1 goto SrvNotRunning
goto :eof
:SrvNotRunning
echo [%date:~4,10% %time%] **srv did not autostart, attempting manual start**>>%logfile%
set cnt=0
:wait1
if %cnt% GEQ 5 goto SrvCantStart
set /A cnt+=1
echo [%date:~4,10% %time%] **waiting for SRV service to start [%cnt%]**>>%logfile%
sc start srv >NUL 2>&1
ping -n 2 -w 1000 127.0.0.1>NUL
sc query srv | find "RUNNING" >NUL 2>&1
if errorlevel 1 goto wait1
echo [%date:~4,10% %time%] **SRV service is now running**>>%logfile%
goto :eof
:SrvCantStart
echo [%date:~4,10% %time%] **Tried 5 times to start SRV but failed**>>%logfile%
goto :eof
:yes_opens
echo [%date:~4,10% %time%] open files detected, not restarting srv>>%logfile%
goto :eof
:no_srvnet_block
echo [%date:~4,10% %time%] no srvnet block detected, not restarting srv>>%logfile%
goto :eof
Let me know if that works better for you!

Similar Messages

  • HT4623 my computer does not recognizes my ipod. how to fix the problem?

    my windows xp does not recognizes my ipod anymore. how do i fix this?

    iOS: Device not recognized in iTunes for Windows
    I would start with
    Another cable
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Run this to help if it identifies the cause
    iTunes for Windows: Device Sync Tests
    Have you tried on another computer to help determine if you have a computer or iPod problem?

  • How to identify the device is locked or not?

    how to identify the iphone is locked or not

    Call AppleCare, give them the model and serial number and ask them if it is locked and if yes, which cell carrier it is locked with.

  • Windows 7 does not wake from sleep to renew DHCP Lease

    I am having trouble with DHCP and sleeping Windows 7 systems.  My Windows 7 systems go to sleep after an hour or so.  The Intel and Broadcom NICs we have use ARP offloading so they continue to respond to ARP while the machine is sleeping. 
    The problem is that after the DHCP lease expires, the NIC continues to respond to the ARP requests and that causes IP conflicts on the network because the computer is responding to ARP requests for an IP address the computer has lost its lease on.  Any
    time a computer is asleep for longer than the DHCP lease time then when a new computer gets the IP from the lost lease, an IP conflict is reported because the new leasee does an ARP to see if the IP is in use and the sleeping computers NIC responds to the
    ARP and this results in an IP conflict for the new leasee.
    I opened a ticket with the Hardware Vendor, which is Dell in this case, and they opened an engineering case with Intel - the NIC OEM.  The outcome of this case what that this is Windows fault.  Windows is supposed to wake up from sleep and renew
    its DHCP lease at the lease half life and then go back to sleep.  My computers are not doing this.  They let the lease expire while they are sleeping.
    Is there a problem with Windows 7 that prevents it from waking up and renewing its lease periodically?  It is supposed to maintain the lease according to Dell and Intel, but in my case it it not. 

    Extending the lease time is a bandage on the problem, and it is what we have done while I attempt to resolve the issue.
    The network group would like the lease time set to 4 hours.
    Extending the lease time doesn't resolve the issue because it only makes the problem occur less freqently.  With a 2 week lease, a machine needs to be asleep for 2 weeks before it causes a problem.  Machines are not likely to be asleep for 2 weeks
    very often.
    The resolution would be to figure out why a sleeping Windows OS is not maintaining its IP address.  If it is not going to renew the DHCP lease while it is asleep, it is still responsible for updating the TCP stack (and the NIC) to let it know that it
    no longer has a lease to that IP address.  The OS has offloaded ARP to the NIC, which continues to respond to ARP while the computer is asleep.  If the OS lets the lease expire, then it needs to notify the NIC to stop responding to ARP requests for
    that address.

  • How to import iDVD app from Time Capsule to my new iMac 21" that does not have iDVD?  I can find the iDVD app in the Time Capsule, then what?

    I have a new 21" iMac to replace a 6-year old iMac 24.  My Time Capsule has the iDVD app saved (?) and I can find it, but I can't figure out how to move it to my new iMac that does not have the app.  How to do this?

    You are probably better to install it from ilife disk.
    Can't Find a update or latest Version of iDVD to Download or a Compatibility to Yosemite

  • How do I add an app to my location services when it does not come up automatically, How do I add an app to my location services when it does not come up automatically

    How do I add an app to location services when it does not appear automatically

    Have you tried Settings>Privacy>Location Services and see if you can turn it on in there?
    Obviously it has to be an app that works with location services so if it is and nothing else works, delete the app and download it again to make it ask again if you want to allow your location to be used with it.

  • My home button does not work, anyone know how to fix the problem?

    My home screen bottom does not work the only way I can get back to home screen is to bookmark and save to home page then the ho
    E menu appears total pain kinda mad cause phone us new???

    i have had that one with my ipad2
    still do not know if it is the button or if it is a software issue.
    you might try this one.
    push and hold the top power  button until the switch off slide appears.
    after it appears let go of the power button, push and hold the home button until the slider disappears.
    ofcourse this is tricky because the button needs to react
    if it does not work the first time try again and the hold the homebutton and move your finger around the sides of the button(eg if the contact is bad this might force it to make contact somewhere)
    i will wait for ios5 and see if it will fix my ipad2
    i kow other people who did send back their devices but i only want to do that if i am 100% sure it is a hw issue

  • IPAD 1 problems after ios 5.1.1 update, itunes does not recognize IPAD.. I check the device manager, it identifies an unknown device (My ipad) but unable to use it.

    I am using the generation 1 IPAD.
    I recently updated my ios from ios 4 to ios 5.1.1, I did the restore after the update and all seemed fine as it was detected the first time.
    I tried connecting the IPAD again but it shows that the computer, itunes is not able to detect the IPAD.
    I checked on the device manager, it identifies an unknown device (IPAD) and says no software for the driver. I am using windows 7 on my laptop. I never had any such problem with the iso 4. Any suggestions as to how this can be solved?
    Thanks,
    Vinay

    Thank you, I tried uninstalling the device driver to reinstall again. After doing the scan for hardware changes, nothing flashes on the device manager. I dont see anything related to the IPAD or any other device for which driver shows unidentified device. It is as though the device is not being seen by the computer at all..
    I even tried flashing the home/sleep buttons together but that doesnt seem to identify any device either.
    Anything else I am missing?

  • Error 'window SRID does not match layer SRID' despite using Index MBR

    Hey!
    I'm trying to run the following query:
    SELECT count(*)
    FROM mytable
    WHERE SDO_FILTER(geom, (SELECT sdo_root_mbr FROM user_sdo_index_metadata WHERE sdo_index_name='IDX_GEOM_MYTABLE') ,'querytype = WINDOW') = 'TRUE';
    The index I'm querying in the Subquery is the geometry index for mytable.geom, i.e. I'm doing a spatial query on IDX_GEOM_MYTABLE with it's own geometry index'es MBR. And I get this:
    "window SRID does not match layer SRID"
    How can that happen?
    Regards,
    Christian

    John's right. If I see correctly what you're trying to do you could also do this:
    SELECT count(*)
    FROM mytable
    WHERE SDO_FILTER(geom, SDO_TUNE.EXTENT_OF(mytable,my_SDO_column) ,'querytype = WINDOW') = 'TRUE';
    If the Index was built correctly and is not partitioned this should give you the same result.

  • HT4859 every time I try to restore my ipod it does not work...how come?

    every time I try to restore my ipod it does not work...how come?

    The only way to clear off the passcode is to restore the device.  You could always try the restore process on another computer that has iTunes just to get the iPod working again, then you could plug it back into your comptuer to sync all of his content back on the iPod.

  • Windows 8.1 does not go to sleep reliably anymore

    I recently did a clean install of Windows 8.1 Pro x64 (final version). Before doing the clean install, all hardware being identical, my Windows 8 was ran smoothly and went to sleep fine automatically after the set time.
    Now, after the clean install, although I believe I have installed and set up everything as before, the computer does not reach standby automatically anymore most of the time. To be precise, when I reboot or log off and on the PC, the sleep functionality
    is re-established for a while, but after 1 or 2 hours of work it invariably gets lost.
    However, as soon as I disable the Ethernet adapter, the PC sleeps as expected.
    I do not seem to be able to figure out why this is, or how my configuration is different than before.
    Here are a few specs about my hardware: ASRock Z77E-ITX mainboard (http://www.asrock.com/mb/Intel/Z77E-ITX/, has the Windows 8.1 compatibility sticker), Intel Core i7-3770, 4x 3.40GHz including Intel HD 4000 integrated graphics (no external graphics installed),
    Intel 530 Series SSD, Intel 520 Series SSD, WD HDD. I have use a wired Ethernet connection, my Ethernet chip is from Broadcom. Wifi chip is disabled.
    Since this has been a pervasive issue with all Windows versions, the internet is full of suggestions how to resolve this matter. Why I am not convinced that the old advice still has any bearing as I tend to think Windows 8.1 introduced new issues (bugs?),
    for the sake of covering all bases, I tried almost every tip I could find on the net and will list my fruitless attempts in the following. It might also be useful as reference for other people trying to tackle such issues.
    1) Installed latest Windows 8.1 drivers from Asrock's homepage. I also tried chip manufacturer's like Intel's own drivers, did not make any difference (so far).
    2) Left the homegroup and disabled homegroup functionality as for example in these threads it has been argued that this is a new issue with Windows 8.1: http://www.eightforums.com/general-support/28226-windows-8-1-refuses-sleep-2.html
    http://www.eightforums.com/general-support/33221-windows-8-1-does-not-go-sleep-standby-automatically.html
    3) In the Ethernet adapter's settings, I unchecked ipv6. I also made sure the device cannot be awaken through the network.
    4) I even went so far to disable network discovery as
    file and printer sharing (both in private and public profiles) and disable
    public folders.
    5) Even though sharing is disabled, I also made sure that within the energy options the computer is
    allowed to sleep when sharing media.
    6) powercfg /requests returns "none".
    7) ran powercfg /energy duration 300 from an elevated command prompt while the ethernet adapter was enabled. It found 9 errors, mostly related to USB hubs, but the same errors were also recorded when I repeated the exercise having the ethernet
    adapter disabled. So these errors are probably not relevant for the problem at hand.
    8) powercfg /devicequery wake_armed : just the mouse and keyboard appear
    9) I tried netstat which shows many connections but do not know how to interpret them or what to look for. Same for
    Wireshark. If anybody can guide me on how to use these tools, I am happy to learn about it.
    10) powercfg -requestsoverride DRIVER \FileSystem\srvnet SYSTEM
    did not help, reverted it.
    11) Uninstalled software some would find suspicious: Cisco Anyconnect VPN Client, Shadowprotect Desktop backup software, VMware player. Did not help.
    12) I also have a MySQL server installed, which I did NOT uninstall because it would be too much point reinstalling and reconfiguring it. However, I doubt this is the culprit as with Windows 8 it did not prevent any sleep. Even when I stop the server the
    PC does not go to sleep.
    This is more or less it. I am out of ideas and welcome any feedback.
    Again, when the Ethernet adapter is disabled, the PC sleeps as programmed, but I cannot figure out what communication is responsible for keeping it awake.
    Thanks,
    Steve

    Hi Steve,
    I don't know if you'll feel better but - You are not alone facing the same problems, I am sure that all the power handling in 8.1 is a mess. If I force the comp. to go to sleep mode, after a while it is
    not staying in the sleep mode but shutting down autonomously. I suppose there is more hidden bugs.  
    Tazlam
    Isn't your computer just switching from sleep mode to hibernation mode after the amount of time set in your power management settings? This sounds like it, as in hibernation the computer is effectively shut off. This is also intended behaviour.
    As you guys, I hope MS releases a fix soon.

  • HT3986 I installed windows 7 successfull, but when I start the mac in windows I does not see the wifi, and others things. How do I get the drivers?

    I installed windows 7 successfull, but when I start the mac in windows I does not see the wifi, and others things. How do I get the drivers?
    I remember that with Snow Leopard you could download them from the Apple website.
    Cheers!

    Read the Boot Camp Documentation while you run Boot Camp Assistant to download the Windows Support Software which was the first step in the Boot Camp Setup procedure.

  • Hi, I have downloaded itunes on windows 7,when I click on the itunes icon on my desktop nothing happens,it does not open itunes,can anyone help me with why it does not open or know how I can open itunes,thanks.

    Hi, I have downloaded itunes on windows 7,when I click the icon on my desktop nothing happens,does anyone know why itunes does not open?

    If you only changed the name of your ID rather than creating a new ID, just go to Settins>iCloud and tap Delete Account then sign back in with the new name.  (Deleting the account from your phone does not delete it from iCloud.  Your data will be synced back to your phone when you sign back in.)
    If you created a new ID, you'll have to go to Settings>iCloud on your phone and turn all data you are syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on your iPhone.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your phone.)  After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using your other ID, then turn syncing for your data (contacts, etc.) back to On.  When prompted, choose Merge.  This will upload the data to your new account.
    You won't lose any photos in your camera roll or photo library.  If you have any photos in your photo stream that are over 30 days old that are not in your camera roll or saved on your computer, be sure to save these to the camera roll before deleting the account.  To do so, open the photo stream album on your iPhone in the thumbnail view, tap Edit, tap all the photos you need to save to select them, tap Share, then tap Save to Camera Roll.

  • Satellite P845t-10G does not go to sleep closing lid after Win 8.1 upgrade

    Hi,
    I own a P845t-10g and since I upgraded to Win 8.1 the laptop does not go to sleep (or shut down) when closing the lid.
    However, when opening the lid, it wakes from sleep mode.
    I tried installing latest Toshiba systems settings utility and all updates on the support site.
    Any ideas how to fix this?
    Thanks!

    Did you check the option called: What closing the lid does?
    Click on the 'Power Options' icon in taskbar (or in control panel).
    Then click 'More power options'. Now a new windows will open. On the left side panel click on 'What closing the lid does'.
    Now you will see two possible mode: battery and plugged in. For each mode you can set the action for closing the lid.
    BUT one question: did you upgrade the Win 8.1 following the instruction from Toshiba?
    http://www.toshiba.eu/innovation/generic/windows8_1-message/ Did you install all the Toshiba Windows 8.1 drivers and utilities in the right order!?

  • USB device does not work after sleep

    The problem in the following:
    X230t in tablet mode,
    connect to the USB port of the adapter USB to COM Port (ftdi232) all works fine,
    but if not disconnect the adapter from the USB port and put the laptop into sleep (or hibernation) the following inclusion is not determined USB adapter (or other device) and does not work pen (stylus)
    until you restart the laptop.
    What to do?
    How to fix it?
    Please help, this is terribly annoying. 

    Thank you friend, I do not work and a stylus. Since he is also on usb!
     Lenovo and for some reason does not want to fix it.

Maybe you are looking for

  • Skillbuilders modal from chart link

    I'm at a loss as to how to call the skillbuilders modal from a chart link (click on point in series). I'm able to call a classic report residing in another page but I can't figure out how to get it to appear in a modal. I created examples on apex.ora

  • "instead of" trigger on a view with a condition

    I'm trying to create an instead-of trigger on a view but I want it all such that: 1. It fires only for a certain condition. 2. When the condition isn't met, I want the normal DML on the view to continue as it normally would. 3. I want to avoid writin

  • OSR 2way SSL client configuration in Weblogic

    We've implemented 2way SSL in our Weblogic domains that host endpoints for use by OSB and OSR, using signed ( not self-signed! ) certificates. OSB works great and invokes the endpoints successfully over 2way SSL. The problem is that OSR doesn't use t

  • How do I set CFBundleVersion in AIR

    Hello, I am making an AIR app for my client. When my client upload the iTunes Connect to submit their app again( because it have some error at the first time), they received an error. It said ERROR ITMS-9000: "Redundant Binary Upload. There already e

  • Transfering iTunes

    I'm getting a new computer and would like to transfer my iTunes library onto that computer. Is that possible? And if so, how would I go about doing that?