Screen turns black when I quit an openGL program

When I do not quit a program gracefully (ie I kill it or I am debugging and I stop the debugger), my screen turns black for a few seconds. Is this normal behavior? Or is there something I can do to fix it?



I have never experienced such a thing on linux. Maybe more information about your distribution, hardware may be helpful. Are you using Compiz?
Is this happens when your program runs in windowed, fullscreen mode or both?
If you run another opengl program, it does not happen?

Most monitors are multiscanning (support variable horizontal/vertical scan-out frequencies). When the video signal changes frequencies (e.g. resolution change by app), the monitor often goes into a “trying to lock onto the signal” mode where it’s often black during the change-over time. I’ve seen this take a second or two. So that’s a possible cause.

Question is, why in the world when you abort a GL program is that happening? That’s never happened for me, and I develop for OpenGL on Linux every day for many years as well as use it at home, on KDE and NVidia hardware.

Like dletozeun, I’d suspect you might be using a window manager like Compiz versus something standard like KDE or Gnome, and that it might be responsible for reconfiguring your video card scan out frequencies on GL program abort for some strange reason. Try plugging in another monitor and see if it still happens (or happens differently). Or try switching to KDE.

Also, if the GL app you’re running implements full-screen mode, sometimes they’ll change resolutions and you could be getting a res-switch back to your native video mode. Though I’d expect that on normal or all exits not just abnormal ones…

Short of these things, I’ve never seen what you’re talking about.

Let’s see your:

  • graphics card
  • graphics driver version
  • window manager

Linux: Fedora 10
Window manager: gnome
Video card: nVidia Corporation NV41 [Quadro FX 3450/4000 SDI] (rev a2)
Video Card Driver: akmod-nvidia.i686 180.25-1.fc10

I am not using full screen mode.

I’m pretty sure this never used to happen - so maybe it is a driver thing?

Hmm. Your guess is what I’d suspect. May be driver-card pair specific as well. Try switching drivers.

Latest driver on is 180.22, so your 180.25 is a beta driver (?) I’m running 180.11.02 and haven’t seen this. I should update though.

Just wondering if this problem has been solved/identified yet?

The same thing happens to me. My details are:

Linux: Fedora 10
Window manager: kwin
Video card: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
Driver: akmod-nvidia-180.29-1.fc10.x86_64

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.