SUMMARY: /bin/screenblank equivalent in Solaris v1.3

Date: Fri Jul 29 1994 - 04:40:11 CDT

> Hi all,
> We have two SparcStation LX running Solaris v1.3, and we find that there
> is no more /bin/screenblank come bundled with the OS anymore as in SunOS 4.1.3.
> However, we still want to achieve the automatice screen blank function in
> Solaris. Any solution and suggestions, or help are much appreciated.
> Thanks

Thanks to all of you who responded to my above question. First of all, I
have to apologize for the mistake that the Solaris version should be 2.3
instead of 1.3

Here is a summary of the resopnses:
Run xdm, or copy the screenblank command from a Sunos4 machine.
  "screenblank" is not "yet" provided with Solaris, but you can copy
  it over from one of your SunOS machines and add a script to /etc/init.d
  to start it (it will run under binary compatiblity). The script we use
  is below (/etc/init.d/screenblank):

#ident "@(#)ANNOUNCE 1.6 92/07/14 SMI" /* SVr4.0 1.1 */

echo 'starting screenblank.'

  Note: you will have to have a link from /etc/rc3.d to this file,
        i.e. /etc/rc3.d/S50scnblk --> /etc/init.d/screenblank
No, there is no such command on solaris OS, but I get the source code.
The following two emails contain C source code and manpage.
How about the generic xlock program that comes with the X11 windows system?
It is not quite a screenblank but it blank the screen and in addition lock
the console from being used by someone else.
Use the SunOS 4.1.3 scrennblank. It works fine under Solaris 2.x.
Attached is a tar file containing screenblank. It has been working fine for
me under Solaris-2.3. I got it over the network a while back. Hope it helps.
Many people will probably suggest xautolock.

You can probably find it with gopher or archie.

Here is what I got:

                    Search of archive sites on the internet: xautolock

 --> 1.
check out the manpage on xset with the -s parameter:

     s The s option lets you set the screen saver parame-
             ters. This option accepts up to two numerical
             parameters, a 'blank/noblank' flag, an
             'expose/noexpose' flag, an 'on/off' flag, or the
             'default' flag. If no parameters or the 'default'
             flag is used, the system will be set to its default
             screen saver characteristics. The 'on/off' flags
             simply turn the screen saver functions on or off.
             The 'blank' flag sets the preference to blank the
             video (if the hardware can do so) rather than
             display a background pattern, while 'noblank' sets
             the preference to display a pattern rather than
             blank the video. The 'expose' flag sets the prefer-
             ence to allow window exposures (the server can
             freely discard window contents), while 'noexpose'
             sets the preference to disable screen saver unless
             the server can regenerate the screens without caus-
             ing exposure events. The length and period
             parameters for the screen saver function determines
             how long the server must be inactive for screen sav-
             ing to activate, and the period to change the back-
             ground pattern to avoid burn in. The arguments are
             specified in seconds. If only one numerical parame-
             ter is given, it will be used for the length.

I run a SunOS 4.1.3 /bin/screenblank on my Solaris 2.3 SLC in BCP mode
Works ok!

Solaris FAQ:
72) Where is the Solaris2.x screenblank?

      You can either run the 4.1.x screenblank in compatabilty
      mode or you can compile you own from sources available
      on Get the file /pub/sun-faq/screenblank_21dec93.tar.Z.
        With the openwindows running, look at the workspace properties. Each
user can set the screensaver option under category miscellaneous.

I prefer the solution suggested by, BTW, I really should check
up the Solaris FAQ first before posting this simple question. Sorry again, and
thanks for your patience and still many quick responses. Thanks a lot.

Mr C.M. Fung				| Internet:
Electronic Engineering Department	| BITNET:
The Chinese University of Hong Kong	| Tel. No: (852) 609 8286
Shatin, N.T., Hong Kong			| FAX  No: (852) 603 5558

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:06 CDT