Date: Wed, 13 Jan 1999 19:34:36 +0900 From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> To: "Kenneth D. Merry" <ken@plutotech.com> Cc: guido@gvr.org (Guido van Rooij), des@flood.ping.uio.no, cvs-all@FreeBSD.ORG, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: cvs commit: src/sys/dev/fb splash.c splashreg.h Message-ID: <199901131034.TAA03238@zodiac.mech.utsunomiya-u.ac.jp> In-Reply-To: Your message of "Tue, 12 Jan 1999 14:57:12 MST." <199901122157.OAA47454@panzer.plutotech.com> References: <199901122157.OAA47454@panzer.plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here is a small patch to turn off splash/saver upon opening a vty, as suggested by Guido. It is for /sys/dev/syscons/syscons.c. Ken, when xdm starts, whether by a local rc script or via /etc/ttys, it is very soon after vtys are opened. So you shouldn't see text console for very long. Please try the patch and tell me if you still think the text console is exposed for too long for your environment. Kazu Index: syscons.c =================================================================== RCS file: /src/CVS/src/sys/dev/syscons/syscons.c,v retrieving revision 1.291 diff -u -r1.291 syscons.c --- syscons.c 1999/01/13 01:14:26 1.291 +++ syscons.c 1999/01/13 09:14:05 @@ -628,6 +647,7 @@ { struct tty *tp = scdevtotty(dev); keyarg_t key; + int s; if (!tp) return(ENXIO); @@ -651,6 +671,12 @@ (*linesw[tp->t_line].l_modem)(tp, 1); if (minor(dev) == SC_MOUSE) mouse_level = 0; /* XXX */ + if (minor(dev) < MAXCONS && console[minor(dev)] && scrn_blanked) { + s = spltty(); + sc_touch_scrn_saver(); + sc_clean_up(console[minor(dev)]); + splx(s); + } } else if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) >Guido van Rooij wrote... >> On Tue, Jan 12, 1999 at 01:34:01PM -0700, Kenneth D. Merry wrote: >> > Dag-Erling Smorgrav wrote... >> > > Guido van Rooij <guido@gvr.org> writes: >> > > > Wouldn't it be a good idea to automatically get rid of the splash scre >en >> > > > when /dev/ttyv0 is opened? Then it will vanish once a getty is started > on >> > > > it. >> > > >> > > Good idea. Kazu, want me to fix it while I'm working on the splash >> > > code? >> > >> > FWIW, I think the way it used to work is that the splash screen would stay >> > up until you either hit a key (numlock?) or until you crank up X. >> > >> > For machines that automatically start up X, it would be nice to have the >> > splash screen stay up until X starts. >> > >> >> Hmm..when a login prompt appears (or for that matter, anything either inputt >ing >> or outputting anything) on ttyv0 (apart for kernel stuff during booting), >> I would expect to see it *without* hitting a key. > >Well, I'd at least like it to be tuneable. The old splashscreen stuff, I >think, would keep the splash screen up until you either hit a key, or X >came up. I'm not sure how that was implemented. > >For an "idiot station" or other embedded system, you want to hide users >from the "evil Unix stuff" as much as possible. Having things go in this >order: > >- splash screen >- console login prompt >- X startup > >isn't as desireable (for unsophisticated users) as: > >- splash screen >- X startup > >I'd be happy with some kernel option, flag or whatever to enable the "old" >behavior, but I would like to be able to have things work the "old way" >one way or another. > >Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901131034.TAA03238>