On Wed, Jan 27, 2010 at 05:14:21PM -0500, Vitaly Tsipris wrote: > Guys, > > > > I am trying to figure out how to stop SunRay DTU units from blanking out > after a certain time. I have a customer who wants it disabled (no idea > why he wants to spend more on power). > > He is running SRSS 4.2 and connects to Windows XP VMs using VMware View. > So the Kiosk session is using the Connector for VMware View 1.1
For our kiosked sessions (no RDP or Windows here), this Works For Us.
Allows "-b 600" to be passed to the kiosk script to set blanking to 600
seconds, or "-b 0" to turn it off altogether. Note that we don't run
screen savers or any other gubbins that might be trying to blank the
screen.
#!/bin/sh --
#
# $Id$
#
while getopts b: arg
do
case $arg in
# Screen blanking. 0 for off, a number of seconds to activate
# after otherwise.
b) _blank=${OPTARG}
;;
?) # Ignore unknown options
;;
esac
done
shift `expr $OPTIND - 1`
if [ ${_blank:-0} -eq 0 ]; then
# Turn off screen blanking.
# This should all fit on one line, but doesn't work that way
/usr/openwin/bin/xset -dpms
/usr/openwin/bin/xset s off
else
# Set screen blanking to the timeout given.
# "standby", "suspend" and "off" all seem to do the same thing
# with a Sun Ray 2 DTU, so just worry about the standby value.
/usr/openwin/bin/xset dpms ${_blank}
/usr/openwin/bin/xset s off
fi
#
# Non-screen blanking stuff (i.e., the rest of your kiosk script)
# goes here.
#
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
pgp5tRKe6XXUb.pgp
Description: PGP signature
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
