13.12. How to Disable Screen Blanking on a Sun Ray Client

13.12.1. How to Disable Screen Blanking for All Sun Ray Sessions

There may be times when you do not want your Sun Ray Client in power saving mode, during which the screen goes blank after a specific period of nonuse.

Power management is a feature of the Sun Ray Software and it is enabled by default. There are a couple of ways to disable power saving mode.

To Disable Power Saving Mode...


At the desktop environment level,

Refer to your desktop documentation about how to disable the power management feature or the screensaver feature.

Here are some examples:

  • Use the xset s noblank;xset s 0 0;xset s off command.

  • For Oracle Solaris, make sure that xscreensaver (JDS) or dtsession (CDE) is disabled or configured to not blank or lock the screen. If active, xscreensaver overrides any settings you have made using the xset command. See the xscreensaver(1) man page for details.

  • For Oracle Linux, make sure that gnome-screensaver is disabled or configured to not blank or lock the screen. See the gnome-screensaver-command(1) man page for details.

From the Sun Ray Client level,

Set the Advanced->Video->Blanking parameter to 0 in the Configuration GUI, if enabled. For more details, see Section 14.5, “How to Modify a Sun Ray Client's Local Configuration (Configuration GUI)”.

13.12.1. How to Disable Screen Blanking for All Sun Ray Sessions

The following procedure describes how to disable screen blanking for all Sun Ray sessions.


This configuration works for all kiosk sessions, but it does not work for sessions using the Gnome Display Manager through a regular session mode.

  1. Become superuser on the Sun Ray server.

  2. Change directory to the session initialization directory.

    • Oracle Solaris:

      # cd /usr/dt/config/Xsession.d
    • Oracle Linux:

      # cd /etc/X11/xinit/xinitrc.d
  3. Create the following customized script (the script is called 0050.utblank.sh in this procedure).

    # This script disables the X Server from blanking
    # For both Oracle Solaris and Oracle Linux
    # Check for OS and add the path to xset for Oracle Solaris
    if [ "$TheOS" = "SunOS" ];then
    PATH=$PATH:/usr/openwin/bin;export PATH
    # Disable the Xserver from screen blanking
    xset s noblank;xset s 0 0;xset s off

    The script name should have the 0050. prefix to make sure it is run at the appropriate time.


    For Oracle Linux, the script name must have the .sh extension, otherwise the script will not get sourced.

  4. Save the script and make the script executable for everyone.

    # chmod 775 0050.utblank.sh
  5. Start a new session, so the script gets sourced.