1999-02-07 05:40:14 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999
|
|
|
|
.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer as
|
|
|
|
.\" the first lines of this file unmodified.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1999-02-07 05:40:14 +00:00
|
|
|
.\"
|
1999-02-10 14:25:03 +00:00
|
|
|
.Dd February 9, 1999
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt SPLASH 4
|
2000-08-23 09:05:19 +00:00
|
|
|
.Os
|
1999-02-07 05:40:14 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm splash
|
2000-08-23 09:05:19 +00:00
|
|
|
.Nd splash screen / screen saver interface
|
1999-02-07 05:40:14 +00:00
|
|
|
.Sh SYNOPSIS
|
2001-05-01 09:15:30 +00:00
|
|
|
.Cd "device splash"
|
1999-02-07 05:40:14 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2001-05-01 09:15:30 +00:00
|
|
|
pseudo device driver adds support for the splash screen and screen
|
1999-02-07 05:40:14 +00:00
|
|
|
savers to the kernel.
|
|
|
|
This driver is required if the splash bitmap image is to be loaded or
|
|
|
|
any screen saver is to be used.
|
2000-08-23 09:05:19 +00:00
|
|
|
.Ss Splash screen
|
2000-07-11 22:39:48 +00:00
|
|
|
You can load and display an arbitrary bitmap image file as a welcome banner
|
2000-08-23 08:57:59 +00:00
|
|
|
on the screen when the system is about to start.
|
|
|
|
This image will remain on the screen
|
|
|
|
during kernel initialization process
|
2000-08-23 09:05:19 +00:00
|
|
|
until the login prompt appears on the screen
|
2001-05-01 09:15:30 +00:00
|
|
|
or until a screen saver is loaded and initialized.
|
2000-08-23 08:57:59 +00:00
|
|
|
The image will also disappear if you hit any key,
|
|
|
|
although this may not work immediately
|
|
|
|
if the kernel is still probing devices.
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
If you specify the
|
1999-02-07 05:40:14 +00:00
|
|
|
.Fl c
|
|
|
|
or
|
|
|
|
.Fl v
|
2000-07-11 22:39:48 +00:00
|
|
|
boot option when loading the kernel, the splash image will not appear.
|
2000-03-01 14:50:24 +00:00
|
|
|
However, it
|
1999-02-10 14:25:03 +00:00
|
|
|
is still loaded and can be used as a screen saver later: see below.
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
In order to display the bitmap, the bitmap file itself and the
|
|
|
|
matching splash image decoder module must be loaded by the boot loader.
|
1999-12-30 13:01:07 +00:00
|
|
|
Currently the following decoder modules are available:
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
.Bl -tag -width splash_decoder -compact
|
|
|
|
.It Pa splash_bmp.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
W*ndows BMP file decoder.
|
1999-02-10 14:25:03 +00:00
|
|
|
While the BMP file format allows images of various color depths, this
|
2000-08-23 08:57:59 +00:00
|
|
|
decoder currently only handles 256 color bitmaps.
|
|
|
|
Bitmaps of other color depths will not be displayed.
|
1999-04-12 18:56:51 +00:00
|
|
|
.It Pa splash_pcx.ko
|
|
|
|
ZSoft PCX decoder.
|
|
|
|
This decoder currently only supports version 5 8-bpp single-plane
|
|
|
|
images.
|
1999-02-07 05:40:14 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section illustrates how to set up the splash screen.
|
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
If the standard VGA video mode is used,
|
|
|
|
the size of the bitmap must be 320x200 or less.
|
1999-02-07 05:40:14 +00:00
|
|
|
If you enable the VESA mode support in the kernel,
|
|
|
|
either by statically linking the VESA module or by loading the VESA module
|
2001-08-07 15:48:51 +00:00
|
|
|
(see
|
|
|
|
.Xr vga 4 ) ,
|
1999-02-10 14:25:03 +00:00
|
|
|
you can load bitmaps up to a resolution of 1024x768, depending on the VESA
|
|
|
|
BIOS and the amount of video memory on the video card.
|
2000-08-23 09:05:19 +00:00
|
|
|
.Ss Screen saver
|
2001-08-10 13:45:36 +00:00
|
|
|
The screen saver will activate when the system is considered idle: i.e.\&
|
1999-02-10 14:25:03 +00:00
|
|
|
when the user has not typed a key or moved the mouse for a specified period
|
2000-08-23 08:57:59 +00:00
|
|
|
of time.
|
|
|
|
As the screen saver is an optional module,
|
|
|
|
it must be explicitly loaded into memory.
|
|
|
|
Currently the following screen saver modules are available:
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width splash_module.ko -compact
|
|
|
|
.It Pa blank_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
This screen saver simply blanks the screen.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa daemon_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
Animated BSD Daemon screen saver.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa fade_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
The screen will gradually fade away.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa green_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
If the monitor supports power saving mode, it will be turned off.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa logo_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
Animated graphical BSD Daemon.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa rain_saver.ko
|
2000-07-11 22:39:48 +00:00
|
|
|
Draws a shower on the screen.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa snake_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
Draws a snake of string.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa star_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
Twinkling stars.
|
1999-02-10 14:25:03 +00:00
|
|
|
.It Pa warp_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
Streaking stars.
|
|
|
|
.El
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
Screen saver modules can be loaded using
|
1999-08-14 20:51:13 +00:00
|
|
|
.Xr kldload 8 :
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
|
|
|
.Dl kldload logo_saver
|
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
The timeout value in seconds can be specified as follows:
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
.Dl vidcontrol -t N
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pp
|
|
|
|
Alternatively, you can set the
|
|
|
|
.Ar saver
|
|
|
|
variable in the
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
to the screen saver of your choice and
|
|
|
|
the timeout value to the
|
|
|
|
.Ar blanktime
|
2001-05-01 09:15:30 +00:00
|
|
|
variable so that the screen saver is automatically loaded
|
1999-02-07 05:40:14 +00:00
|
|
|
and the timeout value is set when the system starts.
|
|
|
|
.Pp
|
|
|
|
The screen saver may be instantly activated by hitting the
|
|
|
|
.Ar saver
|
2001-05-01 09:15:30 +00:00
|
|
|
key: the defaults are
|
1999-02-10 14:25:03 +00:00
|
|
|
.Em Shift-Pause
|
2001-01-19 14:15:40 +00:00
|
|
|
on the AT enhanced keyboard and
|
1999-02-10 14:25:03 +00:00
|
|
|
.Em Shift-Ctrl-NumLock/Pause
|
2000-03-01 14:50:24 +00:00
|
|
|
on the AT 84 keyboard.
|
|
|
|
You can change the
|
1999-02-07 05:40:14 +00:00
|
|
|
.Ar saver
|
1999-02-10 14:25:03 +00:00
|
|
|
key by modifying the keymap
|
2001-08-07 15:48:51 +00:00
|
|
|
(see
|
|
|
|
.Xr kbdcontrol 1 ,
|
|
|
|
.Xr keymap 5 ) ,
|
1999-02-07 05:40:14 +00:00
|
|
|
and assign the
|
|
|
|
.Ar saver
|
|
|
|
function to a key of your preference.
|
|
|
|
.Pp
|
1999-02-10 14:25:03 +00:00
|
|
|
The screen saver will not run if the screen is not in text mode.
|
2000-08-23 09:05:19 +00:00
|
|
|
.Ss Splash screen as a screen saver
|
2001-05-01 09:15:30 +00:00
|
|
|
If you load a splash image but do not load a screen saver,
|
1999-02-07 05:40:14 +00:00
|
|
|
you can continue using the splash module as a screen saver.
|
1999-02-10 14:25:03 +00:00
|
|
|
The screen blanking interval can be specified as described in the
|
2000-08-23 09:05:19 +00:00
|
|
|
.Sx Screen saver
|
1999-02-10 14:25:03 +00:00
|
|
|
section above.
|
1999-02-07 05:40:14 +00:00
|
|
|
.\".Sh DRIVER CONFIGURATION
|
|
|
|
.Sh FILES
|
2000-09-29 01:53:39 +00:00
|
|
|
.Bl -tag -width /boot/kernel/splash_xxxx.ko -compact
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /boot/defaults/loader.conf
|
1999-10-02 12:49:43 +00:00
|
|
|
boot loader configuration defaults
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /etc/rc.conf
|
1999-02-07 05:40:14 +00:00
|
|
|
system configuration information
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /boot/kernel/splash_*.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
splash image decoder modules
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /boot/kernel/*_saver.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
screen saver modules
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /boot/kernel/vesa.ko
|
1999-02-07 05:40:14 +00:00
|
|
|
the VESA support module
|
|
|
|
.El
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sh EXAMPLES
|
2001-05-01 09:15:30 +00:00
|
|
|
In order to load the splash screen or the screen saver, you must
|
1999-02-10 14:25:03 +00:00
|
|
|
have the following line in the kernel configuration file.
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
.Dl device splash
|
1999-02-10 14:25:03 +00:00
|
|
|
.Pp
|
1999-10-02 12:49:43 +00:00
|
|
|
Next, edit
|
|
|
|
.Pa /boot/loader.conf
|
2001-08-07 15:48:51 +00:00
|
|
|
(see
|
|
|
|
.Xr loader.conf 5 )
|
1999-10-02 12:49:43 +00:00
|
|
|
and include the following lines:
|
1999-02-07 05:40:14 +00:00
|
|
|
.Bd -literal -offset indent
|
1999-10-02 12:49:43 +00:00
|
|
|
splash_bmp_load="YES"
|
|
|
|
bitmap_load="YES"
|
|
|
|
bitmap_name="chuck.bmp"
|
1999-02-07 05:40:14 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2001-05-01 09:15:30 +00:00
|
|
|
In the above example, the file
|
1999-02-07 05:40:14 +00:00
|
|
|
.Pa chuck.bmp
|
|
|
|
is loaded.
|
|
|
|
In the following example, the VESA module
|
|
|
|
is loaded so that a bitmap file which cannot be displayed in standard
|
1999-02-10 14:25:03 +00:00
|
|
|
VGA modes may be shown using one of the VESA video modes.
|
1999-02-07 05:40:14 +00:00
|
|
|
.Bd -literal -offset indent
|
1999-10-02 12:49:43 +00:00
|
|
|
splash_pcx_load="YES"
|
|
|
|
vesa_load="YES"
|
|
|
|
bitmap_load="YES"
|
|
|
|
bitmap_name="chuck.pcx"
|
1999-02-07 05:40:14 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
If the VESA support is statically linked to the kernel, it is not
|
|
|
|
necessary to load the VESA module.
|
|
|
|
Just load the bitmap file and the splash decoder module as in the
|
|
|
|
first example above.
|
|
|
|
.\".Sh DIAGNOSTICS
|
|
|
|
.Sh CAVEATS
|
|
|
|
Both the splash screen and the screen saver work with
|
|
|
|
.Xr syscons 4
|
2000-08-23 08:57:59 +00:00
|
|
|
only.
|
|
|
|
They are not available for the alternative console driver
|
1999-02-07 05:40:14 +00:00
|
|
|
.Xr pcvt 4 .
|
|
|
|
.Sh BUGS
|
|
|
|
If you load a screen saver while another screen saver has already
|
1999-02-10 14:25:03 +00:00
|
|
|
been loaded, the first screen saver will not be automatically unloaded
|
|
|
|
and will remain in memory, wasting kernel memory space.
|
1999-02-07 05:40:14 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr vidcontrol 1 ,
|
1999-02-10 14:25:03 +00:00
|
|
|
.Xr syscons 4 ,
|
1999-02-07 05:40:14 +00:00
|
|
|
.Xr vga 4 ,
|
1999-10-02 12:49:43 +00:00
|
|
|
.Xr loader.conf 5 ,
|
1999-02-07 05:40:14 +00:00
|
|
|
.Xr rc.conf 5 ,
|
|
|
|
.Xr kldload 8 ,
|
2000-11-15 16:00:07 +00:00
|
|
|
.Xr kldunload 8
|
1999-02-07 05:40:14 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Fx 3.1 .
|
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
1999-02-07 05:40:14 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver and this manual page were written by
|
|
|
|
.An Kazutaka Yokota Aq yokota@FreeBSD.org .
|
1999-02-10 14:25:03 +00:00
|
|
|
The
|
|
|
|
.Pa splash_bmp
|
|
|
|
module was written by
|
|
|
|
.An Michael Smith Aq msmith@FreeBSD.org
|
|
|
|
and
|
|
|
|
.An Kazutaka Yokota .
|
1999-04-12 18:56:51 +00:00
|
|
|
The
|
|
|
|
.Pa splash_pcx
|
|
|
|
module was written by
|
2000-11-14 13:19:26 +00:00
|
|
|
.An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org
|
1999-04-12 18:56:51 +00:00
|
|
|
based on the
|
|
|
|
.Pa splash_bmp
|
1999-08-14 20:51:13 +00:00
|
|
|
code.
|