How to prevent Windows from sleeping during VLC service video playback ?
Posted: 29 Jan 2021 07:05
Hello,
I launched the VLC Service :
"C:\Program Files (x86)\VLC\vlc.exe" -I ntservice --ntservice-install --ntservice-extraintf=http --video-on-top
Then I used a smartphone app called "VLC Remote" to launch videos remotely.
The problem is that the PC sleeps during VLC playback. How can I fix this ?
I have noticed that when I launch a video directly from the PC, it does not sleep, but when I launch it from the app, it does. I have noticed that a remote vlc launch is not a normal window, it has a minimalistic GUI with no icons & no menus and has the window title "VLC (DirectD9 output)".
I have the feeling that I must add a parameter to the VLC Service Command Line to prevent it from sleeping during playback (something like "--DontSleepDuringPlayback").
Please help.
EDIT : I added the parameter "--disable-screensaver" (as mentionned here https://wiki.videolan.org/VLC_command-line_help/) but it has no effect
I launched the VLC Service :
"C:\Program Files (x86)\VLC\vlc.exe" -I ntservice --ntservice-install --ntservice-extraintf=http --video-on-top
Then I used a smartphone app called "VLC Remote" to launch videos remotely.
The problem is that the PC sleeps during VLC playback. How can I fix this ?
I have noticed that when I launch a video directly from the PC, it does not sleep, but when I launch it from the app, it does. I have noticed that a remote vlc launch is not a normal window, it has a minimalistic GUI with no icons & no menus and has the window title "VLC (DirectD9 output)".
I have the feeling that I must add a parameter to the VLC Service Command Line to prevent it from sleeping during playback (something like "--DontSleepDuringPlayback").
Please help.
EDIT : I added the parameter "--disable-screensaver" (as mentionned here https://wiki.videolan.org/VLC_command-line_help/) but it has no effect