Wake a Windows PC and start recording (Task Scheduler how-to)
|
17-04-2024, 05:19
Post: #3
|
|||
|
|||
Improvements in scheduled recording to deal with Windows sleep
Using Task Scheduler to wake up a Windows 10 PC and start Ministreamer recording proved to be a delicate thing. Recording often did not start, or it stopped on its own after a couple of minutes – until I discovered a key sleep parameter in Windows. In addition to the settings in the original post, I suggest the following.
* Lengthen the Windows setting for "System unattended sleep timeout." The Task Scheduler task will wake the computer in order to execute the action. Your usual PC power plan settings for staying awake do not govern how long this wake state lasts. Instead, Windows has an _unattended_ timeout after which it goes to sleep. The default is only two minutes. This probably explains why, as I played with different settings, sometimes recording would start then end after two minutes or so. Set the timeout long enough to record the entire program of interest to you, or long enough that you will come to the computer and log on, at which moment the computer is no longer "unattended." Windows normally hides the unattended parameter from the user! There is a simple set of steps to make it visible and set it at https://superuser.com/questions/1560453/...-task-runs * Use the Minimserver + parameter in the recording command, for example, KCSM+0600. Trigger the task to begin a minute before this time, 5:59 a.m. in this example. * The TS setting Run with highest privileges can be left unchecked. * Recording works whether TS is set for Run whether user logged on or not, or Run only when user is logged on. However, this setting might be involved with certain situations (which I cannot specify precisely yet) in which Minimserver is not found by BubbleUPnP Server nor the BubbleUPnP Android app. It must be relaunched from its desktop icon. While experimenting, before the Windows sleep problem was solved, I sometimes ran into failure to record. The log described: > MinimStreamer: scheduled recording task KCSM MinimStreamer: started recording task KCSM MinimStreamer: recording task KCSM has completed MinimStreamer: removed recording task KCSM MinimServer: exception while processing HTTP request: java.net.SocketException: Software caused connection abort: socket write error java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at org.jminim.lib.HTTPContext.sendResponse(HTTPContext.java:184) at org.jminim.lib.HTTPContext.errorResponse(HTTPContext.java:136) at com.minimserver.ServerConfigHandler.writeResource(ServerConfigHandler.java:3027) at com.minimserver.ServerConfigHandler.processRequest(ServerConfigHandler.java:314) at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:475) at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:430) < |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Wake a Windows PC and start recording (Task Scheduler how-to) - Charles7 - 11-03-2024, 05:23
RE: Wake a Windows PC and start recording (Task Scheduler how-to) - simoncn - 11-03-2024, 08:28
Improvements in scheduled recording to deal with Windows sleep - Charles7 - 17-04-2024 05:19
|
User(s) browsing this thread: 1 Guest(s)