Forum Discussion
RaveTZ
11 years agoProtege
Help needed. Prevent OS sleep.
Any advice on how to prevent an OS from going to sleep for any of that make VR games that don't require input from a keyboard / mouse / controller. I can't exactly tell the player to change their power profile.
5 Replies
Replies have been turned off for this discussion
- raidho36ExplorerWell you should, because there's no easy way for that. Not in unity.
- cyberealityGrand ChampionThat's a good point. Let me see what I can find out.
- drashHeroic ExplorerOn Windows, the solution I think is to send some bogus mouse input using SendInput, but I have no idea how to do this in a cross-platform way. Really good question!
- cyberealityGrand ChampionI just tested this on Winodws 7, and there seems to be no problem. I set sleep to kick in after 1 minute. Then I opened Tuscany Unity and left my desk. Even after a few minutes, the machine did not go to sleep. It appears having a full-screen game running prevents sleep mode.
- RaveTZProtege
"cybereality" wrote:
I just tested this on Winodws 7, and there seems to be no problem. I set sleep to kick in after 1 minute. Then I opened Tuscany Unity and left my desk. Even after a few minutes, the machine did not go to sleep. It appears having a full-screen game running prevents sleep mode.
Windows is giving me a completely different issue. Any notification (updates for Java, steam, anything) minimizes the Unity build (always freaks me out).
I'm still diving into how to address these oddities.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago