From owner-freebsd-hackers Tue Jul 7 11:20:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10261 for freebsd-hackers-outgoing; Tue, 7 Jul 1998 11:20:52 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10240 for ; Tue, 7 Jul 1998 11:20:44 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id LAA01098; Tue, 7 Jul 1998 11:20:37 -0700 (PDT) Message-Id: <199807071820.LAA01098@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Graham Wheeler cc: hackers@FreeBSD.ORG, gram@gram.cdsec.com (Graham Wheeler) Subject: Re: Deactivating the screen saver In-reply-to: Your message of "Sat, 07 Jul 1998 15:23:38 +0200." <199807071323.PAA01453@cdsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 Jul 1998 11:20:37 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi all > > I was wondering if there was a way to deactivate the console screen saver > from within a program. By deactivate, I don't mean disable, but switch off > until the idle period elapses, when it can kick in again. A crude approach > may be to unload the module and then reload it, but perhaps there is a better > way (other than adding a new ioctl/sysctl to the kernel). Any ideas, anyone? You want to 'wake' the screen from within an application, correct? You could do a VT switch; this looks like it will unblank the screen even if you are switching to the current console. Use the VT_GETACTIVE ioctl to get the current console, then VT_ACTIVATE to switch to it. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message