PDA

View Full Version : Screen turns black when I quit an openGL program



David Doria
02-09-2009, 05:24 PM
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?

Thanks,

Dave

dletozeun
02-09-2009, 05:59 PM
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?

Dark Photon
02-10-2009, 06:15 AM
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?

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

David Doria
02-10-2009, 07:34 AM
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?

Dark Photon
02-11-2009, 06:03 AM
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 nvidia.com 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.

skimming
03-03-2009, 11:33 PM
Just wondering if this problem has been solved/identified yet?

The same thing happens to me. My details are:

Linux: Fedora 10
Kernel: 2.6.27.19-170.2.35.fc10.x86_64
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