From owner-freebsd-questions@FreeBSD.ORG Wed Aug 10 21:10:59 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AAFC1065670 for ; Wed, 10 Aug 2011 21:10:59 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 37AE98FC13 for ; Wed, 10 Aug 2011 21:10:58 +0000 (UTC) Received: by iye7 with SMTP id 7so1874960iye.17 for ; Wed, 10 Aug 2011 14:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=LK/oropSHslAuV67X7wpYXNpuVM21AL+gkALIHh4elI=; b=dcemHeGDmbdc3mIqdUTdVsDwBsNmyeDvJmKrXsg5+2q2eZPEN/cLPEBS5t+CRXL9fQ DfwuH/q4acVZx+X2qY2kE10Lx7FS35wJTdrS7BgEkPD/Q+sswWc4hE0mMGFwnaBNAKsH EuQynsBEoeHyCgcZS6THsz0/OCxc3+qNmexdk= MIME-Version: 1.0 Received: by 10.42.82.75 with SMTP id c11mr8518266icl.92.1313010658490; Wed, 10 Aug 2011 14:10:58 -0700 (PDT) Received: by 10.42.169.134 with HTTP; Wed, 10 Aug 2011 14:10:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Aug 2011 16:10:58 -0500 Message-ID: From: Antonio Olivares To: Aryeh Friedman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailing List Subject: Re: How to turn off screen blanking X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2011 21:10:59 -0000 > 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= ot > 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: /***************************************************************/ #!/bin/sh 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 :) Regards, Antonio