Re: blanktime ?

New Message Reply Date view Thread view Subject view Author view

Simon Bennett (simonb++at++wormald.com.au)
Fri, 29 Mar 1996 21:09:15 +1000 (EST)


>
> In a performer program over IrisGL (so, I can post this e-mail in this mailing
> list), I would like to :
> - save the current blank time with ??? and disable screen blanking with
> blanktime(0) at the beginning,
> - restore the saved blank time with blanktime(n) at the end
>
> Does anybody know how to get the current blank time ???

Well.. not quite sure why you'd want to do this (reset the exact
blanktime) the default value is around 10-14 minutes...

The "time" n is actually in graphics timer events, the speed of which you
can get with getgdesc(GD_TIMERHZ) not seconds.

I don't know of any way of getting the "blanktime" from GL but...

blanktime and the X screensaver extension interact which each other
(it's the implementation of the "preferred hardware blanking") so you
can get the value through X - use XGetScreenSaver() (3X11) from within your
application (it's talking to the server, so it doesn't matter that
you're running a GL program - you will need a handle to your display
however) or you can do it from the shell with "xset q"

+----------------------------------------------------------------------------+
  Simon Bennett simonb++at++wormald.com.au
  Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0611 (x512)

                        Common Sense doesn't seem to be


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:36 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.