Saturday 17 November 2018

windows 7 - Is it possible to prevent the win7 sleep state while using spotify?


Does anyone know if there is a way to prevent windows 7 to go to sleep while using Spotify?


I have read the answers in this question but if it's possible I'd rather not resort to start a third party program like insomnia every time I want to listen to music.


So are there a setting or a registry entry buried somewhere deep in windows that allows you to do this? Either for a group like "all audio" or for specific programs?



Answer



you could create a batch file to launch spotify:


powercfg -change -standby-timeout-ac 0
start /wait "C:\Program Files\Spotify\spotify.exe"
powercfg -change -standby-timeout-ac 30

and launch it with hstart to hide the console window: hstart /NOCONSOLE "launch spotify.bat"


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...