Question / Help Can't put monitor into standby -- OBS interferes with DPMS/screensaver

Julian McAuley

New Member
I have a 24/7 cast that I run from my office, just a webcam+screengrab (cseweb.ucsd.edu/~jmcauley/ if you're curious). Setup seems to work great and has been running for a few weeks now.

However, I can't put my monitor into standby mode while the cast is running, since OBS (presumably deliberately) disables the screensaver and DPMS settings. I can try to go into standby manually (i.e., "xset dpms force off"), but the screen turns back on after a few seconds. I've tried various solutions to manipulate the dpms setting, but whenever the monitor goes into standby it just turns itself back on again 1-10 seconds later.

Is there any way to stop OBS from disabling the screensaver, or at least allowing me to manually put the monitor into standby mode?

Thanks!
 
I have a 24/7 cast that I run from my office, just a webcam+screengrab (cseweb.ucsd.edu/~jmcauley/ if you're curious). Setup seems to work great and has been running for a few weeks now.

However, I can't put my monitor into standby mode while the cast is running, since OBS (presumably deliberately) disables the screensaver and DPMS settings. I can try to go into standby manually (i.e., "xset dpms force off"), but the screen turns back on after a few seconds. I've tried various solutions to manipulate the dpms setting, but whenever the monitor goes into standby it just turns itself back on again 1-10 seconds later.

Is there any way to stop OBS from disabling the screensaver, or at least allowing me to manually put the monitor into standby mode?

Thanks!

I am curious why you want it to go into standby vs just turning off the monitor?
 

Julian McAuley

New Member
I could, but on a dual-monitor setup all of my windows get re-arranged once one monitor is turned off. And it'd be nice to have something that works automatically, or can be done remotely, so that I don't have to remember to shut off my monitors (in other words I just want the screensaver/DPMS to function normally while OBS is running).
 

davesf

New Member
You can tell windows to override a program's away prevention.. run CMD.EXE as administrator, and do something similar to this:


C:\WINDOWS\system32>powercfg -requestsoverride process "\Device\HarddiskVolume5\Program Files (x86)\obs-studio\bin\64bit\obs64.exe"

C:\WINDOWS\system32>powercfg -requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume5\Program Files (x86)\obs-studio\bin\64bit\obs64.exe

SYSTEM:
[DRIVER] VB-Audio Virtual Cable (ROOT\MEDIA\0002)
An audio stream is currently in use.
[DRIVER] Screaming Bee Audio (ROOT\MEDIA\0003)
An audio stream is currently in use.
[DRIVER] USB Audio 2.0 (USB\VID_1235&PID_8202&MI_00\6&30873fb6&1&0000)
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume5\Program Files (x86)\obs-studio\bin\64bit\obs64.exe
[PROCESS] \Device\HarddiskVolume5\Program Files (x86)\Backblaze\x64\bztransmit64.exe

AWAYMODE:
[PROCESS] \Device\HarddiskVolume5\Program Files (x86)\obs-studio\bin\64bit\obs64.exe

EXECUTION:
[PROCESS] \Device\HarddiskVolume5\Users\david\AppData\Roaming\Spotify\Spotify.exe
Background Audio Playback

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.
 

shaolin

Member
Hey @davesf i believe he is on Linux so those instructions won't work =(


I am curious why you want it to go into standby vs just turning off the monitor?
It was designed like this ages ago just because it was probably the use case at the time and nobody has raised questions about it.
Pretty much 100% of the linux code on OBS is contributed by people testing only on their machines besides the graphics subsystem.

I can't custom compile to you right now but i think commenting out this line would prevent OBS from poking the system to maintain the screen active.

https://github.com/obsproject/obs-s...dfba211daec9eb203ea4bea0/UI/obs-app.cpp#L1082

Also, for better discussion, i'll ask you to create that request at our https://ideas.obsproject.com/ page so others could upvote and discuss the ways to implement some UI options maybe!
 

shaolin

Member
I have a 24/7 cast that I run from my office, just a webcam+screengrab (cseweb.ucsd.edu/~jmcauley/ if you're curious). Setup seems to work great and has been running for a few weeks now.

However, I can't put my monitor into standby mode while the cast is running, since OBS (presumably deliberately) disables the screensaver and DPMS settings. I can try to go into standby manually (i.e., "xset dpms force off"), but the screen turns back on after a few seconds. I've tried various solutions to manipulate the dpms setting, but whenever the monitor goes into standby it just turns itself back on again 1-10 seconds later.

Is there any way to stop OBS from disabling the screensaver, or at least allowing me to manually put the monitor into standby mode?

Thanks!
Ohh, i replied to the wrong person, please check the message above
 
Top