Plymouth

Plymouth is a project from Fedora and now listed among the freedesktop.org's official resources providing a flicker-free graphical boot process. It relies on kernel mode setting (KMS) to set the native resolution of the display as early as possible, then provides an eye-candy splash screen leading all the way up to the login manager.

Preparation

Plymouth primarily uses KMS (Kernel Mode Setting) to display graphics, but in EFI/UEFI systems plymouth can utilize the EFI framebuffer.

If you cannot use KMS, e.g. because you are using a proprietary driver, or if you do not want to use the EFI framebuffer, consider using Uvesafb as it works with widescreen resolutions.

If you have neither KMS nor a framebuffer, Plymouth will fall back to text-mode.

Installation

Plymouth is available from the AUR: the stable package is plymouthAUR and the development version is plymouth-gitAUR. Due to the fact that upstream plymouth release only happen on a spotty and highly irregular schedule, it is generally recommended to use plymouth-gitAUR, because it is actually less likely to cause problems for most users than the stable package.

After installing the Plymouth package, you must configure your initramfs generator to create images including Plymouth.

mkinitcpio

Add plymouth to the HOOKS array in mkinitcpio.conf. It must be added after base and udev for it to work:

/etc/mkinitcpio.conf
HOOKS=(base udev plymouth ...)
Warning:
  • If you use hard drive encryption with the encrypt hook, you must replace the encrypt hook with plymouth-encrypt and add it after the plymouth hook in order to get to the TTY password prompts.
  • Using PARTUUID or PARTLABEL in cryptdevice= parameter does not work with plymouth-encrypt hook.
  • For a ZFS encrypted root, you must install plymouth-zfsAUR and replace the zfs hook with plymouth-zfs

After adding the hook, if input goes to the background in plaintext instead of into the password prompt you need to add your (kernel) graphics driver to your initramfs. For example, if using intel:

This might also be a step needed for some themes to work.

Alternative plymouth hook (systemd)

If your mkinitcpio.conf includes the systemd hook, then replace plymouth with . Additionally, if using hard drive encryption, use sd-encrypt instead of or :

dracut

After installing Plymouth, dracut will automatically detect it and add it to your initramfs images. If autodetection fails, you can force dracut to include Plymouth by adding the following line to your dracut configuration:

The kernel command line

Append to the kernel parameters. See Silent boot for other parameters to limit the output to the console.

Configuration

Smooth transition

If using GDM, install which supports smooth transition out of the box (no other steps are required as it cleanly replaces ).

Optimus-manager users on GDM can install , which is a fork of with the required patches to support Prime switching.

Users of other display managers (SDDM, LightDM or LXDM) will have to:

  1. Disable your display manager unit, e.g. .
  2. Enable the respective DM-plymouth unit provided, e.g. lxdm-plymouth.service.

Show delay

Plymouth has a configuration option to delay the splash screen:

On systems that boot quickly, you may only see a flicker of your splash theme before your DM or login prompt is ready. You can set to an interval (in seconds) longer than your boot time to prevent this flicker and only show a blank screen. The default is 0 seconds, so you should not need to change this to a different value to see your splash earlier during boot.

Change background image

Certain themes (such as spinner) can have their background image changed. On spinner, by default it is a grey noise pattern. To change it, replace with your desired image. You may want to copy and create a new theme when doing this, to prevent it from being overridden by updates to Plymouth. Do not forget to regenerate the theme once changed, see the next section for how.

Changing the theme

Plymouth comes with a selection of themes:

  1. Fade-in: "Simple theme that fades in and out with shimmering stars"
  2. Glow: "Corporate theme with pie chart boot progress followed by a glowing emerging logo"
  3. Script: "Script example plugin" (Despite the description seems to be a quite nice Arch logo theme)
  4. Solar: "Space theme with violent flaring blue star"
  5. Spinner: "Simple theme with a loading spinner"
  6. Spinfinity: "Simple theme that shows a rotating infinity sign in the center of the screen"
  7. BGRT: A variation of Spinner that keeps the OEM logo if available (BGRT stands for Boot Graphics Resource Table)
  8. (Text: "Text mode theme with tricolor progress bar")
  9. (Details: "Verbose fallback theme")

In addition you can install other themes from AUR, just have a look at the "Required by"-Array on plymouthAUR.

All currently installed themes can be listed by using this command:

$ plymouth-set-default-theme -l

or:

$ ls /usr/share/plymouth/themes
details  glow    solar       spinner  tribar
fade-in  script  spinfinity  text

By default, the spinner theme is selected. The theme can be changed by editing , for example:

Themes can be previewed without rebuilding, press to switch to a text terminal, log in as root and type:

# plymouthd
# plymouth --show-splash

To quit the preview, press again and type:

# plymouth --quit

Every time a theme is changed, the must be rebuilt. The option ensures that it is rebuilt (otherwise manually run mkinitcpio -P):

# plymouth-set-default-theme -R theme

Hidpi

Edit as and rebuild the initrd.

Tips and tricks

Show kernel messages

During boot you can switch to kernel messages by pressing the or keys.

Adding Arch Logo to spinner and BGRT themes

To add the Arch Logo to the spinner and BGRT themes copy the Arch logo to the spinner theme directory with the name watermark.png:

# cp /usr/share/plymouth/arch-logo.png /usr/share/plymouth/themes/spinner/watermark.png

To center the logo (if not already centered), add the following lines to the theme's configuration file (file name ending with , e.g. ):

WatermarkHorizontalAlignment=.5
WatermarkVerticalAlignment=.5

Replacing the Arch Logo and creating custom themes

The following themes use the Arch Linux logo supplied by Plymouth in : fade-in, script, solar, spinfinity. If you want to use another logo, you can take one of them or one of the plymouth themes in AUR, edit the file (and maybe , too) and replace this image with one of your choice. You should create a package from your newly created theme, because changes in /usr/share/plymouth may not be persistent across package upgrades.

After installing and selecting your theme, you should rebuild the initrd image to use the new splash.

Add to kernel parameters.

Slow down boot to show the full animation

On systems with a very fast boot time, it might necessary to add a delay to with a drop-in snippet containing if showing the whole animation is desired.

See this reddit post.

gollark: Snow forts to <#319284337143185409> please.
gollark: I really don't think so.
gollark: *all artificial things bad*
gollark: Pollution is, indeed, a problem.
gollark: Cancer mostly because of increased lifespan.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.