SPLASH(4)

πŸ’– SPLASH(4) πŸ’–

okay bestie, welcome to the Kernel Interfaces Manual ✨ and today's main character is the splash pseudo device driver. she's giving screen saver energy, she's giving welcome banner, she's giving iconic. 🫢


✨ NAME ✨

splash β€” splash screen / screen saver interface πŸ’…


🌈 SYNOPSIS 🌈

device splash

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so the splash pseudo device driver is the one that adds support for the splash screen and the screen savers to the kernel. like, both. at once. πŸ’–

and you need this driver if you want a splash bitmap image to be loaded, or if you want literally any screen saver to be used. no driver = no vibe. periodt.

πŸŽ€ Splash screen πŸŽ€

so you can load and display an arbitrary bitmap image file as a welcome banner on the screen when the system is about to start. that image just chills there on your screen during the whole kernel initialization process β€” until the login prompt shows up, or until a screen saver gets loaded and initialized. it'll also disappear if you hit any key, tho ngl that might not work immediately if the kernel is still out here probing devices. 😭

if you specify the -c or -v boot option when loading the kernel, the splash image will not appear. but bestie, it's still loaded! and it can still be used as a screen saver later β€” see below. πŸ’…

in order to display the bitmap, the bitmap file itself and the matching splash image decoder module must be loaded by the boot loader. currently these decoder modules are available:

  • splash_bmp.ko β€” Windows BMP file decoder. and like, yeah, the BMP file format allows images of various color depths, but this decoder currently only handles 256 color bitmaps. bitmaps of other color depths will not be displayed. πŸ’€
  • splash_pcx.ko β€” ZSoft PCX decoder. this decoder currently only supports version 5 8-bpp single-plane images.
  • splash_txt.ko β€” TheDraw binary ASCII drawing file decoder. displays a text-mode 80x25 ASCII drawing, like the kind produced by the Binary save format in TheDraw. this format is a sequence of two byte pairs representing the 80x25 display, where the first byte is the ASCII character to draw and the second byte indicates the colors/attributes to use when drawing the character. 🎨

the β€œEXAMPLES” section illustrates how to set up the splash screen, so like, scroll down bestie.

if the standard VGA video mode is used, the size of the bitmap must be 320x200 or less. if you enable the VESA mode support in the kernel β€” either by statically linking the VESA module or by loading the VESA module (see vga(4)) β€” 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. πŸ”₯

πŸ¦‹ Screen saver πŸ¦‹

the screen saver will activate when the system is considered idle: i.e. when the user has not typed a key or moved the mouse for a specified period of time. since the screen saver is an optional module, it must be explicitly loaded into memory. currently these screen saver modules are available:

  • blank_saver.ko β€” this screen saver simply blanks the screen.
  • beastie_saver.ko β€” animated graphical BSD Daemon. πŸ‘Ή
  • daemon_saver.ko β€” animated BSD Daemon screen saver.
  • dragon_saver.ko β€” draws a random dragon curve. πŸ‰
  • fade_saver.ko β€” the screen will gradually fade away.
  • fire_saver.ko β€” a fire which becomes higher as load increases. πŸ”₯
  • green_saver.ko β€” the screen will be blanked, similar to blank_saver.ko. if the monitor and the video card's BIOS support it, the screen will also be powered off.
  • logo_saver.ko β€” animated graphical FreeBSD logo.
  • plasma_saver.ko β€” draws an animated interference pattern.
  • rain_saver.ko β€” draws a shower on the screen. 🌧️
  • snake_saver.ko β€” draws a snake of string.
  • star_saver.ko β€” twinkling stars. ⭐
  • warp_saver.ko β€” streaking stars.

screen saver modules can be loaded using kldload(8):

kldload logo_saver

the timeout value in seconds can be specified as follows:

vidcontrol -t N

alternatively, you can set the saver variable in the /etc/rc.conf to the screen saver of your choice, and the timeout value to the blanktime variable, so that the screen saver is automatically loaded and the timeout value is set when the system starts. automation slay. πŸ’…

the screen saver may be instantly activated by hitting the saver key: the defaults are Shift-Pause on the AT enhanced keyboard and Shift-Ctrl-NumLock/Pause on the AT 84 keyboard. you can change the saver key by modifying the keymap (see kbdcontrol(1), keymap(5)), and assign the saver function to a key of your preference. make it yours. ✨

🚨 heads up: the screen saver will not run if the screen is not in text mode.

🧚 Splash screen as a screen saver 🧚

if you load a splash image but do not load a screen saver, you can continue using the splash module as a screen saver. the screen blanking interval can be specified as described in the β€œScreen saver” section above. reusing the same module for a whole new purpose? that's main character energy. πŸ‘‘


πŸ“ FILES πŸ“

  • /boot/defaults/loader.conf β€” boot loader configuration defaults
  • /etc/rc.conf β€” system configuration information
  • /boot/kernel/splash_*.ko β€” splash image decoder modules
  • /boot/kernel/*_saver.ko β€” screen saver modules
  • /boot/kernel/vesa.ko β€” the VESA support module

πŸ’œ EXAMPLES πŸ’œ

in order to load the splash screen or the screen saver, you must have the following line in the kernel configuration file.

device splash

next, edit /boot/loader.conf (see loader.conf(5)) and include the following lines:

splash_bmp_load="YES"
bitmap_load="YES"
bitmap_name="/boot/chuck.bmp"

in the above example, the file /boot/chuck.bmp is loaded. πŸ“Έ in the following example, the VESA module is loaded so that a bitmap file which cannot be displayed in standard VGA modes may be shown using one of the VESA video modes.

splash_pcx_load="YES"
vesa_load="YES"
bitmap_load="YES"
bitmap_name="/boot/chuck.pcx"

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. 🫢

to load a binary ASCII drawing and display this while booting, include the following into your /boot/loader.conf:

splash_txt_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash.bin"

🌟 SEE ALSO 🌟

vidcontrol(1), syscons(4), vga(4), loader.conf(5), rc.conf(5), kldload(8), kldunload(8)


πŸ“œ HISTORY πŸ“œ

the splash driver first appeared in FreeBSD 3.1. a true legend since day one. πŸ‘‘


🌸 AUTHORS 🌸

the splash driver and this manual page were written by Kazutaka Yokota <yokota@FreeBSD.org>. the splash_bmp module was written by Michael Smith <msmith@FreeBSD.org> and Kazutaka Yokota. the splash_pcx module was written by Dag-Erling Smørgrav <des@FreeBSD.org> based on the splash_bmp code. the splash_txt module was written by Antony Mawer <antony@mawer.org> based on the splash_bmp code, with some additional inspiration from the daemon_saver code. the logo_saver, plasma_saver, rain_saver and warp_saver modules were written by Dag-Erling Smørgrav <des@FreeBSD.org>. absolute icons, all of them. 🫢✨


⚠️ CAVEATS ⚠️

both the splash screen and the screen saver work with syscons(4) only. no syscons, no vibes. 😭

πŸ’€ BUGS πŸ’€

if you load a screen saver while another screen saver has already been loaded, the first screen saver will not be automatically unloaded and will remain in memory, wasting kernel memory space. so like… double-check before you stack savers, bestie. πŸ™ˆ


and that's the whole page fr fr πŸ’– this was the splash(4) page from the Kernel Interfaces Manual, signed off by Debian, dated December 31, 2015. bye babes, go load a bitmap πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from