Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2011 16:10:58 -0500
From:      Antonio Olivares <>
To:        Aryeh Friedman <>
Cc:        FreeBSD Mailing List <>
Subject:   Re: How to turn off screen blanking
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> I have a kiosk system I am almost done building and the last snag is
> attempting to make it so idle time (no keyboard or mouse attached) does n=
> blank the screen. =A0 I have already tried the following:
> vidcontrol -S off
> disabling acpi and apmd from the kernel config
> enabling dpms via the kernel config and then running xset -dpms
> Any other ideas?

I had a similar situation, but I had a monitor with built in speakers
and it turned off automatically(screen saver/dpms), and I had to wake
it up in order to play some songs and I could hear them :)  The
monitor was in sleep mode.  I had a script that powered it back up:


export DISPLAY=3D:0
/usr/local/bin/xset dpms force on;
/usr/local/bin/xterm -display :0 -bg white \
-e /usr/local/bin/mplayer --really-quiet -shuffle -playlist
~/.playlist -stop-xscreensaver & PID=3D$! > /dev/null 2>&1
sleep 1800
kill $PID
/usr/local/bin/xset +dpms

The line that should do it is this one :

/usr/local/bin/xset dpms force on;

The rest was for playing music at a certain time :) [via crontab
entry], several kind members of this list suggested the $PID=3D$! trick
and then kill $PID.  I was trying to use killall -9
/usr/local/bin/mplayer to stop mplayer from playing, then I found that
pkill /usr/local/bin/mplayer to do it.  But that was not optimal.
Hope you test it and that it would work for what you intend to use it
for :)



Want to link to this message? Use this URL: <>