From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 07:11:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFEB916A4CE for ; Wed, 12 Nov 2003 07:11:07 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB59C43FD7 for ; Wed, 12 Nov 2003 07:11:05 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hACFAUkr023443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Nov 2003 15:11:00 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hACFATRq023438; Wed, 12 Nov 2003 15:10:29 GMT (envelope-from matthew) Date: Wed, 12 Nov 2003 15:10:29 +0000 From: Matthew Seaman To: Malcolm Kay Message-ID: <20031112151029.GB22738@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Malcolm Kay , freebsd-questions@freebsd.org References: <200311122333.07674.malcolm.kay@internode.on.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3lcZGd9BuhuYXNfi" Content-Disposition: inline In-Reply-To: <200311122333.07674.malcolm.kay@internode.on.net> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Programmatic control of screen-saver X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 15:11:07 -0000 --3lcZGd9BuhuYXNfi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 12, 2003 at 11:33:07PM +1030, Malcolm Kay wrote: > I have a machine controlling a tester. Tester control and display is via = a=20 > virtual console terminal. (X is not installed on the machine) >=20 > I need to blank the screen (screen saver style) when there is no terminal > activity for some time -- much the same as as normal screen-saver=20 > operation except that screen output as well as keyboard input should > inhibit the screen-saver taking over or cause the normal terminal display > to be restored if the saver is already in effect. >=20 > I would hope that there might be some ioctl call to the terminal which=20 > could be used from within the tester control software to wake up the=20 > terminal or prevent the screen saver taking over until a further timeout > has elapsed. I've not been able to find such an ioctl call parameter. >=20 >=20 > Does anyone have any ideas or a solution please? See vidcontrol(1): # vidcontrol -t 30 sets the console screensaver timeout to 30s, and # vidcontrol -t off turns off the console screensaver. This does indeed operate using the CONS_BLANKTIME ioctl -- see the code in the set_screensaver_timeout() function in /usr/src/usr.sbin/vidcontrol/vidcontrol.c and the header file. I think that ioctl should do what you want, although I'm not sure that setting the blanking time to zero would actually cancel a running screen saver. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --3lcZGd9BuhuYXNfi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/sk1ldtESqEQa7a0RAp7mAJ4+yuzkHT0BJ4UZkK15z6ncdKjKjgCdGs2+ OG+ZUpw/47CLR84wy0Ik5wo= =MT2E -----END PGP SIGNATURE----- --3lcZGd9BuhuYXNfi--