clearing screen during boot process

Mario Lobo lobo at bsd.com.br
Mon Jan 14 18:40:30 UTC 2019


Em seg, 14 de jan de 2019 às 14:45, Polytropon <freebsd at edvax.de> escreveu:

> On Mon, 14 Jan 2019 12:23:46 -0500, Steven Friedrich wrote:
> > When my system boots, it isues several messages, then clears the screen
> before
> > presenting the beastie menu.
> >
> > How can I prevent the screen clearing?
>
> You probably can't.
>
> The reason is that the initial messages ("pre-kernel") are
> printed during text mode, while the kernel switches to
> graphics mode (vt) soon. This clears the screen content
> and replaces the system's text mode output by a graphical
> output that "mimics" text mode.
>
> However, you could try the following: In /boot/loader.conf,
> set the following:
>
>         kern.vty="sc"
>
> Now you can read the initial messages in text mode (!)
> by pressing the Scroll Lock key and using the cursor
> and page keys to move the buffer up to its top where
> you can read the kernel and "pre-kernel" messages.
>
> Keep in mind "startx" (and X in general) won't work with
> sc anymore, it now _requires_ the use of vt!
>
> See "man 4 vt" for details.
>
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>

Here is what I have in /boot/loader.conf:

# This gives me verbose messages when loading kernel
# and modules before beatsie menu load
verbose_loading="YES"

# This will give me even more verbose messages
# that come AFTER beatsie menu, when needed. I leave it commented.
# Those can be checked with dmesg
# boot_verbose="YES"

# This will give me enough time to see the verbose messages
# before the screen is cleared for vt and
autoboot_delay="5"

# This disables the beatsie menu entirely (for day-to-day boots)
beastie_disable="YES"
kern.vty=vt

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]


More information about the freebsd-questions mailing list