Jump to content

[Feature Request] Usage of a function like SetThreadExecutionState to tell server not to go in Standby with active streams


Recommended Posts

sh0rty
Posted (edited)

My Windows Machine is not running 24/7, it goes to standby depending on activity at 23:30. The task scheduler sets the PC into sleep except there is e.g. a stream transcoding for a user. Since the usage of transcoding got heavily minimized in the last months (thx @@Luke ) the Windows task scheduler does not recognize anymore if someone is using the server since there is no heavy activiy when e.g. direct playing is happening. So the server goes to standby except transcoding is happening.

 

I read around resetting the system idle timer by calling SetThreadExecutionState with ES_SYSTEM_REQUIRED as execution requirement and was asking myself if this could be implemented into the server for the use case of active streams (remux, driect play, transcode)?

 

https://msdn.microsoft.com/en-us/library/aa373208(VS.85).aspx

Edited by shorty1483
Posted

We're actually already doing this

  • Like 1
sh0rty
Posted

We're actually already doing this

 

Then it doesn't seem to work on my system :( Nevermind I try to find another solution. Thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...