From owner-freebsd-hackers Tue Jan 27 07:20:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02590 for hackers-outgoing; Tue, 27 Jan 1998 07:20:58 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (router1.portal.net.au [202.12.71.250] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02538 for ; Tue, 27 Jan 1998 07:20:48 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.8/8.8.5) with ESMTP id BAA00461; Wed, 28 Jan 1998 01:42:49 +1030 (CST) Message-Id: <199801271512.BAA00461@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: dag-erli@ifi.uio.no (Dag-Erling Coidan Sm rgrav) cc: joelh@gnu.org, hackers@FreeBSD.ORG Subject: Re: File I/O in kernel land (was: Re: 2nd warning: 2.2.6 BETA begins in 10 days!) In-reply-to: Your message of "27 Jan 1998 13:21:31 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Wed, 28 Jan 1998 01:42:49 +1030 From: Mike Smith Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA02550 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > When I uncomment the VGA code (which was taken from splashkit), > logo_saver() is called only twice: once when the screen saver hits in, > and once when it is unloaded. The console responds to keypresses, and > I can type commands at the shell prompt, but the screen saver never > gets the message to switch back to text mode. The kernel log shows > only two messages. You're setting the UNKNOWN_MODE flag in scp->status; right at the top of scrn_timer() it bails out if that's set. There are a couple of things you can do: 1 not set the flag (that's probably a bad idea, as it's what tells syscons not to futz with anything) 2 hack scrn_timer to call you regardless (also bad, as it means that text screensavers behaviour changes) 3 establish/disestablish your own timer routine when you are activated/deactivated (bad again because the remove-saver option is hidden behind the UNKNOWN_MODE test in scrn_timer()). I would actually combine 3 above with moving the "should we stop the screensaver" test to before the UNKNOWN_MODE bailout in scrn_timer(). -- \\ 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. \\