Date: Tue, 07 Jul 1998 11:20:37 -0700 From: Mike Smith <mike@smith.net.au> To: Graham Wheeler <gram@cdsec.com> Cc: hackers@FreeBSD.ORG, gram@gram.cdsec.com (Graham Wheeler) Subject: Re: Deactivating the screen saver Message-ID: <199807071820.LAA01098@dingo.cdrom.com> In-Reply-To: Your message of "Sat, 07 Jul 1998 15:23:38 %2B0200." <199807071323.PAA01453@cdsec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807071820.LAA01098>