Generic X question

This has nothing to do with SDL, but does anybody know how to turn of screen
blanking within X under Linux? Within a console (mostly fbcon for games :wink:
its easy with setterm -blank 0, but this doesn’t help in an xterm.

Thanks for your replies
Thomas

This has nothing to do with SDL, but does anybody know how to turn of screen
blanking within X under Linux? Within a console (mostly fbcon for games :wink:
its easy with setterm -blank 0, but this doesn’t help in an xterm.

Sure, here’s an example…

Section "Screen"
Driver "svga"
Device "My Video Card"
Monitor “CTX 1765”

OffTime      0                         # THESE 3 LINES TURN OFF
BlankTime    0                         # BLANKING SCREEN
SuspendTime  0                         # IN X SESSIONS

Subsection   "Display"
    Depth       16
    Modes       "1024x768" "800x600" "640x480" "320x240"
    ViewPort    0 0
EndSubsection

EndSection

Bye

Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.interfree.it

In article <20000613115036.B2254 at tiscalinet.it>,
Enzo <enzo.gupi at tiscalinet.it> writes:

This has nothing to do with SDL, but does anybody know how to turn of screen
blanking within X under Linux? Within a console (mostly fbcon for games :wink:
its easy with setterm -blank 0, but this doesn’t help in an xterm.

Sure, here’s an example…

Section "Screen"
Driver "svga"
Device "My Video Card"
Monitor “CTX 1765”

OffTime      0                         # THESE 3 LINES TURN OFF
BlankTime    0                         # BLANKING SCREEN
SuspendTime  0                         # IN X SESSIONS

Subsection   "Display"
    Depth       16
    Modes       "1024x768" "800x600" "640x480" "320x240"
    ViewPort    0 0
EndSubsection

EndSection

Without changing your X11 configuration, you can just use the ‘xset’ command.
It supports the following options :

For screen-saver control:
     s [timeout [cycle]]  s default    s on
     s blank              s noblank    s off
     s expose             s noexpose
     s activate           s reset

So do an ‘xset s off’ to turn off the screen saver (blanking).–
Stephane Peter
Programmer
Loki Entertainment Software

“Microsoft has done to computers what McDonald’s has done to gastronomy”

Yes it should, but it won’t work very well.
10 Machines in my company are running the whole day.
I must have written a script which turns every 5 minutes
the screen on.

Greetings