cancel
Showing results for 
Search instead for 
Did you mean: 

Rift preventing Computer from going to sleep

Nibre
Level 5
I was trying to setup 'Put the computer to sleep' in my Power Options, but noticed that something is preventing it from actually kicking in. 

By running powercfg -requests in Powershell, I get this;
DISPLAY:
None.

SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1000\5&1e493937&0&0001)
An audio stream is currently in use.
[DRIVER] Oculus VR Headset (USB\VID_2833&PID_0330&MI_00\9&3a680418&2&0000)
An audio stream is currently in use.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.
So it looks like it may be the Rift keeping it awake. If I manually put the Computer to sleep, it works fine (other than the Headset alert), but timed sleep just refuses to kick in on its own. I don't have any games running or anything, and the headset is put away (still plugged in, but asleep with the Amber light). For reference, I am on Windows 10 1607, and Oculus 1.12.0.347531.

Testing;
If go into Devices->Rift, and change my Audio Output to Rift only (instead of Mirroring), the Realtek entry disappears from 
powercfg -requests. So that is definitely causing that one. Then, if I close the Oculus app, the Oculus entry disapears too. Timed sleep then starts to work correctly, until the App is opened again.

If I instead leave Audio Mirroring enabled, neither of the entries disappear when I close the Oculus App. In fact, the only thing that seems removes them at that point is manually Stopping the OVRService, or just turning off Audio Mirroring and closing the Oculus App.

Conclusion;
So it appears that there are 2 issues here, due to Audio Streams.
  • Issue 1 - Having the Oculus App running, while the Headset is dormant and no VR is active, prevents timed sleep until the App is closed. (This may be intentional, but can be pretty annoying. It should let it sleep if nothing's currently happening, and prevent it when it needs to)
  • Issue 2 - Having Audio Mirroring enabled prevents timed sleep from happening whatsoever, until the OVRService is Stopped or Mirroring is disabled. (Seems to be because Mirroring continues to work after the App is closed. It'd be nice if it still allowed sleep to work somehow. Maybe add an option to only Mirror if VR things are happening, instead of 24/7?)
Partial Fix;
I've had mixed luck getting powercfg -requestsoverride to make it ignore the Audio Streams.
By using this, it will sometimes work after a Reboot, but doesn't seem to consistently work after that. Very hit and miss for me.
powercfg -requestsoverride DRIVER "Realtek High Definition Audio" SYSTEM
powercfg -requestsoverride DRIVER "Oculus VR Headset" SYSTEM


Figured I'd post this here to give you guys a heads up, or see if I'm missing something. Thanks!
10 REPLIES 10

I would rather see Oculus fix a problem that's been reported five years ago than suggest all sorts of workaround to users.