Bug Report OBS exits when laptop lid is closed

ZeroLabs

Member
Guys (and gals?), there has been tremendous improvements to OBS MP lately that I will be applauding in an upcoming YouTube video. There is one minor bug I run into that I'm almost embarrassed to even mention but here goes. I have power settings on my Asus 1215n configured to "Do nothing" when the lid is closed. Most other apps like GUVC View will continue to run with the lid closed and display on-screen when I reopen the lid.

Previous versions of OBS would crash and hang. The task bar icon would disappear but the process would still be running. The only way to terminate was to Kill the process. With newer versions of OBS the problem still persists but it now seems to just exit gracefully rather than hanging. Still, I would like to be able to close the lid and have the recording and/or streaming continue.

Might this be a simple fix? Or can you suggest any possible work-arounds? Here is the pertinent log file output. It happens as soon as I close the lid.

info: [flv output: 'simple_file_output'] Writing FLV file '/home/username/Videos/dashcam/2015-04-02 08-58-35.flv'...
error: Failed to fetch parent window geometry!
~$
 
If the laptop dispay turns off/black when you close it; it basicly doesn't generate any images and so obs won't have anything to capture.
The same thing happens when you minimise a window while recording/streaming with obs. No images are genereated and thus obs can't pick anything up.

Just a suggestion but look at those power saving options and perhaps even in the driver or bios for to see if it can be changed. But if that behaviour can't be changed , you basicly stuck with it as far as i can see.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Until we can find a way to block that sleep functionality you may have to keep the laptop open.
 

ZeroLabs

Member
If the laptop dispay turns off/black when you close it; it basicly doesn't generate any images and so obs won't have anything to capture.
The same thing happens when you minimise a window while recording/streaming with obs. No images are genereated and thus obs can't pick anything up.

Just a suggestion but look at those power saving options and perhaps even in the driver or bios for to see if it can be changed. But if that behaviour can't be changed , you basicly stuck with it as far as i can see.
I can minimize and restore while recording/streaming without any problems. It's only when the screen goes black on lid close that I run into this problem. I mentioned it only because I might have been missing a simple workaround. No big deal. Thanks for the replies.
 

admalledd

Member
If your computer is not going to sleep, just turning off the display check if the GPU is going into low power mode or such. If that is the case you could probably find the kernel /sys/ devices (or some such) end point that is triggered on lid close and disable it (this would probably leave your screen on though).

Another thing to check possibly is the misc setting that "xset" reports. I know that my nvidia-primus GPU goes to low power mode when the display goes to dpms sleep. This for me does not cause any crashing in any programs, but maybe something to look at as well?

Just some general shot in the dark-ish guessing...
 
Top