how to change freebsd15.1 shutdown_splash or disable it. ?

hi. all:
i have configured
splash="xxx.png"
boot_mute="yes"
shutdown_splash"xxx.png"
in /boot/loader.conf.
just freebsd boot start splash was working. ... when i shutdown freebsd15.1. the shutdown_splash was not xxx.png , just freebsd-logo-rev ........how to change it. or disable shutdown splash. thanks.

even i delete /boot/images/freebsd-logo-revxxx.png file . freebsd15.1 shutdown still display a freebsd-logo-rev picture..... what is hiding in shutdown process ? thanks.
 
Dear T-Daemon :
thanks for your help. my shutdown_splash="xxx.png" . it's not work. i am sure the configuration was right... i just want to freebsd15.1 boot splash and disable shutdown splash . what vm version you have used ? i am using freebsd15.1 .thanks.
 
vt(4) driver has a built-in logo image, AFAICS.
It's used as a fallback if loader did not load any other shutdown splash image.

Maybe try to follow the defaults/loader.conf example and use a full path to your image file (if you are not doing that already)?
 
vt(4) driver has a built-in logo image, AFAICS.
It's used as a fallback if loader did not load any other shutdown splash image.

Maybe try to follow the defaults/loader.conf example and use a full path to your image file (if you are not doing that already)?
hi Andriy :
thanks. i have read /boot/default/loader.conf .
# Set boot_mute=YES to load these
splash="/boot/images/freebsd-logo-rev.png"
shutdown_splash="/boot/images/freebsd-logo-rev.png"

but when i changed shutdown_splash="xxx.png" in /boot/loader.conf . system poweroff will display freebsd-logo-rev.png . nothing change ...i think that is the bug ,or something hiden ... thanks.
 
fff2024g, as mentioned earlier, if loader cannot load shutdown_splash, which I assume it can't, then the built-in logo is shown.
I guess that the built-in logo is the same as /boot/images/freebsd-logo-rev.png.
 
my shutdown_splash="xxx.png" . it's not work.
Make sure the PNG image has the following properties:
  • The image must have the same size or smaller than the VT efi framebuffer resolution. Example:
    Rich (BB code):
    % dmesg | grep VT\(
    VT(efifb): resolution 1920x1080
  • The PNG must have 8bpc RGBA color space.

i just want to freebsd15.1 boot splash and disable shutdown splash .
I believe disabling the shutdown splash is not possible, as far I can tell [1].

If boot_mute is enabled, even when /boot/defaults/loader.conf shutdown_splash="/boot/images/freebsd-logo-rev.png" is disabled, some built-in splash image [2] is displayed during shutdown as Andriy suspects.

You could open a bug report, asking for an option to disable any shutdown splash image (enabled by default in /boot/defaults/loader.conf or built-in), when boot_mute is enabled.

what vm version you have used
FreeBSD-15.1-RELEASE-amd64.iso installer image, installed in a VirtualBox VM.


[1] https://cgit.freebsd.org/src/commit/?h=releng/15.1&id=0bd9b26d19e256c1ef0de57b0fe7d1627e07f6dc

[2]
vt-shutdown_splash.png
In
 
Dear T-Daemon :
thanks. if we cannot disable shutdown_splash when boot_mute="yes" . can we change the shutdown_splash to custom png ? thanks. i think that was not.
 
fff2024g you might want to open a problem report about that.
Shutdown splash image should be possible to individually disable (without any obscure tricks).
The fallback to the built-in logo, which is not possible to disable in any way, seems to be a questionable choice.

Also, from a developer perspective, the shutdown splash logic should not check whether boot_mute was configured.
Instead, it should check whether the console is currently muted.
It's possible to boot with console muted and then unmute it with conscontrol mute off.
And if the console is not muted during shutdown then there should be no splash.
 
T-Daemon, fwiw, looking at the code I see that it wants image depth to be 4.
And currently that seems to be the only trick to disable shutdown splash: configure it to be an otherwise completely valid splash image but with with depth (bits per pixel) different from 4.
The code will bail out at a very late step without falling back to the built-in logo.
C:
if (si->si_depth != 4)
        return;

UPDATE/EDIT:

Hmm, I misinterpreted depth/bpp as bits per pixel while it is actually bytes per pixel.
So, it seems that for vt a PNG splash image should be true color with alpha (32 bits per pixel).

splash(4) seems to be quite confusing.
It talks in detail about things like BMP and PCX, never mentions PNG, but boot/shutdown examples refer to PNG images.
 
Back
Top