What is blocking my PC from sleeping after recording?
-
- Posts: 60
- Joined: Tue Mar 18, 2014 10:01 pm
- Location:
- HTPC Specs:
What is blocking my PC from sleeping after recording?
I've had a hell of a time trying to figure this one out on my own, so I come to the forums. My machine wakes up to record just fine, but then never goes back to sleep. I don't think I have anything else running, but may be I'm missing something. Any ideas?
Thanks!
https://imgur.com/a/5Zrg7gh
edit: I am aware the RDP session is active, but that is only to take screenshots.
Thanks!
https://imgur.com/a/5Zrg7gh
edit: I am aware the RDP session is active, but that is only to take screenshots.
-
- Posts: 722
- Joined: Mon Nov 05, 2012 8:05 pm
- Location: Longmont, CO
- HTPC Specs:
When it's in that state bring up a command prompt with administrator priviliges and type: powercfg -requests
It should tell you what is keeping you from sleeping.
It should tell you what is keeping you from sleeping.
-
- Posts: 2839
- Joined: Sun Jun 02, 2013 9:44 pm
- Location:
- HTPC Specs:
The output you attached shows that there are three things preventing the machine from sleeping (unless you used the /requestsoverride to override them).
One of them is that WMC is recording, if that is not the case, then you have a problem with WMC.
The other two are the RDP (remote desktop) service and file sharing (srvnet).
I've had problems on my system with the file sharing keeping the system awake, even if I haven't connected to a share in a while, so I used the "powercfg /requestsoverride" command to make the machine ignore the fact that file sharing is asking the PC to stay awake.
Assuming the WMC recording and the RDP (remote desktop) are valid (you really are recording and using remote desktop at the time you ran this command) then I am guessing your problem is the same as mine, the file sharing.
To make it ignore the file sharing request to stay awake:
Run in an "Administrator" command prompt (run cmd.exe as Administrator):
Note that this change is "permanent" in that it survives reboots. If you want to remove this override, you need to run this command (leave off the last (REQUEST) parameter):
Beware that this will allow the system to go to sleep even if you are doing remote file sharing at the time. I think this should only be a real problem if you are writing to a file when the system goes to sleep (which may cause file corruption). If you are only reading a file, then you will just get a read error and be unable to continue until you wake the system again.
One of them is that WMC is recording, if that is not the case, then you have a problem with WMC.
The other two are the RDP (remote desktop) service and file sharing (srvnet).
I've had problems on my system with the file sharing keeping the system awake, even if I haven't connected to a share in a while, so I used the "powercfg /requestsoverride" command to make the machine ignore the fact that file sharing is asking the PC to stay awake.
Assuming the WMC recording and the RDP (remote desktop) are valid (you really are recording and using remote desktop at the time you ran this command) then I am guessing your problem is the same as mine, the file sharing.
To make it ignore the file sharing request to stay awake:
Run in an "Administrator" command prompt (run cmd.exe as Administrator):
Code: Select all
powercfg /requestsoverride DRIVER "srvnet" SYSTEM
Code: Select all
powercfg /requestsoverride DRIVER "srvnet"
-
- Posts: 60
- Joined: Tue Mar 18, 2014 10:01 pm
- Location:
- HTPC Specs:
Thanks I'll give that a shot today.
-
- Posts: 60
- Joined: Tue Mar 18, 2014 10:01 pm
- Location:
- HTPC Specs:
Ok that seemed to work. Will it prevent playback of files on Plex, or will that part at least keep it awake?
-
- Posts: 60
- Joined: Tue Mar 18, 2014 10:01 pm
- Location:
- HTPC Specs:
Nevermind, I tested it and it seemed to stay on while streaming, then went back to sleep as soon as it ended.
Thanks again!
Thanks again!
-
- Posts: 60
- Joined: Tue Mar 18, 2014 10:01 pm
- Location:
- HTPC Specs:
And just to completely close the loop I had a recording scheduled today, it finished and went to sleep.
Yay!
Yay!
-
- Posts: 2839
- Joined: Sun Jun 02, 2013 9:44 pm
- Location:
- HTPC Specs: