Page 1 of 1

Windows 7 prevent sleep not working as expected

Posted: Thu Feb 12, 2015 4:56 am
by cristidb
Hello, I use UMS 5 on Windows 7 64bit. If Prevent windows from sleep is checked, the computer won't go to sleep at all. I expected this to prevent windows from sleep while streaming.
As a workaround, I disabled the feature and use coffee to prevent sleep while upload speed is at least 128k
http://coffee-sc.sourceforge.net/

Re: Windows 7 prevent sleep not working as expected

Posted: Tue Mar 10, 2015 3:14 am
by cristidb
Since nobody answered on this topic for one month, I fixed it myself. Now UMS prevents windows from sleeping only when streaming.
The problem was in the WinUtils class.
The fix only works when HTTP V2 is unchecked. If I have time, I will look in the HTTP V2 code.

Re: Windows 7 prevent sleep not working as expected

Posted: Mon Mar 30, 2015 7:22 am
by andycoo
Hi cristidb

Thanks very much for fixing this obvious limitation.
I'm not clear on whether you have committed this change and it's included in a new release, or you attached the file so we can rebuild ourselves.
Please could you clarify?

Thanks

Andy

Re: Windows 7 prevent sleep not working as expected

Posted: Fri Apr 03, 2015 5:04 pm
by cristidb
The fix is not committed. I've only attached the modified class to this topic. Please review the fix and include it in the next build.