Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Off screen rendering when laptop shuts screen down?

I have a lengthy number-crunching process which takes advantage of quite abit of OpenGL off-screen rendering. It all works well but when I leave it to work on its own while I go make a sandwich I would usually find that it crashed while I was away.
I was able to determine that the crash occurs very close to the moment The laptop I'm using decides to turn off the screen to conserve energy. The crash itself is well inside the NVIDIA dlls so there is no hope to know what's going on.

The obvious solution is to turn off the power management feature that turns the screen and video card off but I'm looking for something more user friendly. Is there a way to do this programatically?
I know there's a SETI@home implementation which takes advantage of GPU processing. How does it keep the video card from going to sleep?

like image 854
shoosh Avatar asked Dec 26 '08 20:12

shoosh


People also ask

Can I turn my laptop screen off but keep everything running?

From the left panel, click on the Choose what closing the lid does option. Under the Power button and lid settings, you can find the When I close the lid option. Here, expand the drop-down and select Do Nothing for both On Battery and Plugged In.

How do I turn off display without sleep?

Press the Windows logo key + I to open the Settings app, then click System. Select Power & sleep on the left side. Under the Screen section on the right side, you can set Windows 10 to automatically turn off display after 5 or 10 minutes of inactivity.

How can I turn off my laptop without closing the lid?

You can achieve this in one of two ways. Firstly, you can right-click the battery icon on your taskbar and click Power Options. Then, click Choose what the power button does. Secondly, you can right-click the Start button and select Power Options.

How do you turn off a laptop screen?

Close the Lid You can adjust your machine's power settings so that when you close the lid, only your screen is turned off and nothing else. Head to Settings > System > Power and Sleep > Additional Power Settings.


1 Answers

I'm not sure what OS you're on, but windows sends a message that it is about to enter a new power state. You can listen for that and then either start processing on the CPU or deny the request to enter a lower-power state.

like image 196
Eclipse Avatar answered Oct 03 '22 16:10

Eclipse