The Ur Project

Documenting the craft of stacking things so they remain stacked. For a very long time.

lowerthird(8)

NAME

lowerthird - text under the firmware logo, at boot and at shutdown

SYNOPSIS

lowerthird boot

lowerthird stop

lowerthird font

lowerthird shutdown target

lowerthird --version

DESCRIPTION

Your machine boots with the firmware's logo on screen, and with systemd-boot's logo-text turned on it says "Booting <title>..." under it. The kernel keeps that picture until the login screen replaces it. Nothing moves, nothing flickers.

Shutting down used to undo all of that. When the login screen exits, the kernel puts back whatever buffer it kept. Depending on the graphics driver that's a black screen, or the logo with "Booting..." still under it, which is worse. Neither says the machine is going down.

lowerthird shutdown fixes that end. It paints the logo where the firmware put it, and "Shutting down..." or "Restarting..." under it, in the same spot, font and colors systemd-boot used. Then it holds the screen until the power goes off.

When does it run?

Once per shutdown, from lowerthird-shutdown@target.service. The package links an instance into each of poweroff.target, reboot.target, halt.target and kexec.target, so there's nothing to enable. The unit is ordered after display-manager.service, so it starts the moment the login screen or session is gone.

You don't run it by hand. If you do, from a text console, it takes over the screen until you kill it.

What does it draw?

The firmware logo from /sys/firmware/acpi/bgrt, and below it one line of text:

poweroff
Shutting down...
reboot, kexec
Restarting...
halt
Halting...

The rectangle the text sits in is computed from the logo and the screen mode alone, by the same formula systemd-boot uses, so the text lands on exactly the pixels the boot title did. It's the same font, Adwaita Sans, from the same pre-rendered table. Every screen that's on gets the same picture.

What about an encrypted disk?

lowerthird boot runs for the whole boot, in the initrd and again on the root filesystem, from lowerthird-boot.service. When systemd asks for a passphrase it puts the logo back and asks under it: "Enter the passphrase for root", a star per character typed, and "Caps Lock is on" or "Wrong passphrase, try again" when they apply. Enter answers. Keys go through the console keymap, the same as the text prompt.

How do I see what the machine is doing?

Press Esc, at boot or at shutdown. The logo goes, and the console shows systemd's status and the kernel's messages from then on, as a boot without quiet would. The first lines name the jobs still running, which is usually the answer to why it's slow. At a passphrase prompt Esc also hands the question to the ordinary text prompt.

Why does the console font look different?

The kernel's own font is 8x16 pixels on any screen, which on a 2K or 4K panel is too small to read. lowerthird font loads a bitmap font derived from Terminus Font bold, drawn pixel by pixel at each size so it stays crisp, with easily confused characters (I l 1 |, 0 O, rn m) distinct. It picks the size that gives about a 4.7 mm line on the panel, the size of an 11 pt terminal on the desktop, while keeping at least 80 columns and 25 rows; Terminus stops at 32 pixels, so on the densest panels the line is smaller. It runs after every systemd-vconsole-setup.service, in the initrd and later, so a font configured in vconsole.conf(5) is replaced, and before every getty@.service, so a console first switched to from a graphical session gets it too.

Where does the logo go if the mode changed?

Where the firmware put it, if its offset still centers it on this screen. Otherwise it's centered horizontally, and moved down by the ratio of the new width to the firmware's.

Why is the background black?

Because at shutdown there's no reliable way to know the firmware's color. The logo image's own border can be a different color from the screen around it, and the buffer on screen when this starts can still be the desktop's last frame. Most firmware draws its logo on black anyway.

OPTIONS

boot
Watch the keyboard for Esc and answer passphrase requests until stopped. Run by lowerthird-boot.service.
stop
Ask a running boot to give the console back, and wait until it has. The unit's ExecStop= runs it, and so do the display manager and getty@tty1 before they start.
font
Load the console font sized for the first lit screen on every VT in text mode.
shutdown target
Paint the shutdown screen for target, one of poweroff, reboot, halt or kexec, and hold it.
--version
Print the version and exit.

EXIT STATUS

shutdown doesn't return once it has painted. It exits 0 without painting when there's no DRM device it can take over, which is the normal case on a serial console or a headless machine, and non-zero when the target is unknown or a screen can't be set up.

None of that can hold up a shutdown. Nothing is ordered after this unit, and systemd doesn't wait for it.

FILES

/usr/lib/systemd/system/lowerthird-shutdown@.service
The unit. Its ExecStart= sets argv[0] to @lowerthird, and that leading @ is what makes systemd-shutdown leave the process alone when it kills everything else. Closing the device would put the old buffer back.
/usr/lib/systemd/system/lowerthird-boot.service
The boot unit, in sysinit.target. The dracut module in /usr/lib/dracut/modules.d/90lowerthird carries it into the initrd.
/run/lowerthird/
agent while boot answers passphrase requests, which keeps systemd-ask-password-console.path inactive; verbose after Esc, so nothing paints again until the next boot.
/sys/firmware/acpi/bgrt/
The logo and its offset. Without a usable logo the text is still drawn, centered below the middle of the screen.
/dev/dri/card*
The first card with a lit screen whose master can be had.

NOTES

At boot the same text comes from systemd-boot, through the logo-text option in loader.conf(5). boot-manager.toml(5) says how to turn the hidden menu, and with it the boot title, on and off.

The font is Adwaita Sans, under the SIL Open Font License 1.1, rendered at build time into a table this binary and systemd-boot both embed. The license text is in /usr/share/doc/lowerthird/OFL-1.1.txt. The console font is derived from Terminus Font, also under the OFL, in /usr/share/doc/lowerthird/OFL-1.1-terminus.txt.

SEE ALSO

loader.conf(5), boot-manager.toml(5), systemd-boot(7), bootup(7), systemd-poweroff.service(8), systemd-ask-password-console.service(8), systemd-vconsole-setup.service(8), vconsole.conf(5), dracut(8)