LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2010, 11:12 AM   #1
erick.brown
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Rep: Reputation: 0
Fullscreen GLUT app, display blanks after approx 30 minutes


I'm running a fullscreen display app which shows a 3D scene in OpenGL. The app runs continiously throughout the day unattended.

Here's the sequence of events in how it's loaded:

1) The computer is turned on, and boots into F11 (x86_64)
2) A non-privileged user is automatically logged on
3) The gnome startup applications list contains an entry for a loading script
4) The loading script waits for the network interface (eth0) to ccome up, then starts the display program

This all works just fine, except that about 30 minutes after the computer is turned on and the app starts running, the screen blanks out. Attaching a mouse to the system and moving it around a bit brings the screen back to life. Likewise, SSHing into the machine and killing / restarting the application works as well. Once either of these fixes has been performed, it runs flawlessly for the rest of the day.

I have turned off the screen saver, and set the power settings for monitor shutdown to 'never'.

Any other thoughts or suggestions would be greatly appreciated.
 
Old 04-06-2010, 08:13 PM   #2
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
Code:
xset q
Then:
Code:
xset -dpms
xset q
and compare output with first one. My system shows:

Code:
DPMS (Energy Star):
  Standby: 600    Suspend: 1200    Off: 1800
  DPMS is Enabled
  Monitor is On
and after xset -dpms
Code:
DPMS (Energy Star):
  Standby: 600    Suspend: 1200    Off: 1800
  DPMS is Disabled
Or simply disable Option "DPMS" in your Monitor section in xorg.conf. Or have your app developer disable DPMS on startup and execute 'killall xscreensaver' - just in case.
 
Old 04-08-2010, 01:20 PM   #3
erick.brown
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the info. Looks like we're on the right track. I'm seeing something kind of interesting now though:

xset -dpms works like a charm, but it appears that there's something else turning it back on. If I check back in after a while (I haven't taken specific measurements yet - 20 minutes maybe?) it seems to have turned itself back on. I edited the xorg.conf to disable DPMS permanently.

Any thoughts on what might be the cause?
 
  


Reply

Tags
f11, fullscreen, glut, opengl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LCD on arm-linux blanks after 10 minutes knighttof3 Linux - Embedded & Single-board computer 1 02-06-2010 03:19 AM
[SOLVED] Monitor blanks out when accessing Display Properties in KDE rrrssssss Gentoo 1 11-01-2009 12:19 PM
X app without a window manager not true fullscreen Onyx^ Linux - Software 16 01-14-2009 04:17 AM
Fullscreen console app with C or C++ scottbrown4b Programming 3 05-10-2004 06:03 PM
nvidia+UXGA+XF86config -- display error after screen blanks jagmandan Linux - Laptop and Netbook 3 07-28-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration