Plymouth: Difference between revisions
m Setting consistent parameter values, not hiding errors, not duplicating set |
Marked this version for translation |
||
| (15 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<translate> | <translate> | ||
< | <!--T:1--> | ||
[<tvar name=1>https://www.freedesktop.org/wiki/Software/Plymouth</tvar> Plymouth] is a project from Fedora and now listed among the [<tvar name=2>https://www.freedesktop.org/wiki/Software/#graphicsdriverswindowsystemsandsupportinglibraries</tvar> freedesktop.org's official resources] providing a flicker-free graphical boot process. It relies on [<tvar name=3>https://wiki.archlinux.org/title/Kernel_mode_setting</tvar> 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 == <!--T:12--> | ||
< | <!--T:13--> | ||
''Plymouth'' primarily uses KMS to display graphics, but on UEFI systems it can utilize the EFI framebuffer. | |||
<!--T:14--> | |||
If you have neither KMS nor a framebuffer, ''Plymouth'' will fall back to text-mode.<tvar name=1><ref>https://wiki.archlinux.org/title/Plymouth</ref></tvar> | |||
== Installation == <!--T:15--> | |||
=== Basic Config === <!--T:16--> | |||
</translate> | </translate> | ||
<syntaxhighlight lang="nix"> | |||
{ | |||
boot = { | boot = { | ||
plymouth = { | |||
enable = true; | |||
}; | |||
# Enable "Silent boot" | |||
consoleLogLevel = 3; | |||
initrd.verbose = false; | |||
kernelParams = [ | |||
"quiet" | |||
"rd.udev.log_level=3" | |||
"rd.systemd.show_status=auto" | |||
]; | |||
# Hide the OS choice for bootloaders. | |||
# It's still possible to open the bootloader list by pressing any key | |||
# It will just not appear on screen unless a key is pressed | |||
loader.timeout = 0; | |||
}; | |||
} | |||
</syntaxhighlight> | |||
<translate> | |||
== Configuration == <!--T:2--> | |||
=== Changing the theme === <!--T:17--> | |||
<!--T:18--> | |||
Plymouth comes with a selection of themes: | |||
<!--T:19--> | |||
# '''BGRT''': A variation of Spinner that keeps the OEM logo if available (BGRT stands for Boot Graphics Resource Table) | |||
# '''Fade-in''': "Simple theme that fades in and out with shimmering stars" | |||
# '''Glow''': "Corporate theme with pie chart boot progress followed by a glowing emerging logo" | |||
# '''Script''': "Script example plugin" (Despite the description seems to be a quite nice Arch logo theme) | |||
# '''Solar''': "Space theme with violent flaring blue star" | |||
# '''Spinner''': "Simple theme with a loading spinner" | |||
# '''Spinfinity''': "Simple theme that shows a rotating infinity sign in the center of the screen" | |||
# '''Tribar''': "Text mode theme with tricolor progress bar" | |||
# '''Text''': "Text mode theme with tricolor progress bar" | |||
# '''Details''': "Verbose fallback theme" | |||
<!--T:20--> | |||
NixOS sets the default theme to '''bgrt'''<tvar name=1><ref>https://github.com/NixOS/nixpkgs/blob/8c91a71d13451abc40eb9dae8910f972f979852f/nixos/modules/system/boot/plymouth.nix</ref></tvar>. You can change the theme with `boot.plymouth.theme`: | |||
</translate> | |||
<syntaxhighlight lang="nix"> | |||
{ | |||
boot = { | |||
plymouth = { | |||
enable = true; | |||
theme = "solar"; | |||
}; | |||
}; | |||
} | |||
</syntaxhighlight> | |||
<translate> | |||
=== Install new themes === <!--T:21--> | |||
<!--T:3--> | |||
As an example, you can use a boot animation from [<tvar name=1>https://github.com/adi1090x/plymouth-themes</tvar> adi1090x's collection] like so: | |||
</translate> | |||
{{file|3={ pkgs, ... }: { | |||
boot = { | |||
plymouth = { | plymouth = { | ||
enable = true; | enable = true; | ||
theme = "rings"; | theme = "rings"; | ||
themePackages = with pkgs; [ | themePackages = with pkgs; [ | ||
# By default we would install all themes | # <translate nowrap><!--T:7--> By default we would install all themes</translate> | ||
(adi1090x-plymouth-themes.override { | (adi1090x-plymouth-themes.override { | ||
selected_themes = [ "rings" ]; | selected_themes = [ "rings" ]; | ||
| Line 23: | Line 96: | ||
}; | }; | ||
# Enable "Silent boot" | # <translate nowrap><!--T:8--> Enable "Silent boot"</translate> | ||
consoleLogLevel = 3; | consoleLogLevel = 3; | ||
initrd.verbose = false; | initrd.verbose = false; | ||
kernelParams = [ | kernelParams = [ | ||
"quiet" | "quiet" | ||
" | "rd.udev.log_level=3" | ||
"rd.systemd.show_status=auto" | "rd.systemd.show_status=auto" | ||
]; | ]; | ||
# Hide the OS choice for bootloaders. | |||
# It's still possible to open the bootloader list by pressing any key | # <translate nowrap><!--T:9--> Hide the OS choice for bootloaders.</translate> | ||
# It will just not appear on screen unless a key is pressed | # <translate nowrap><!--T:10--> It's still possible to open the bootloader list by pressing any key</translate> | ||
# <translate nowrap><!--T:11--> It will just not appear on screen unless a key is pressed</translate> | |||
loader.timeout = 0; | loader.timeout = 0; | ||
}; | |||
}|name=configuration.nix|lang=nix}} | |||
<translate> | |||
=== HiDPI === <!--T:22--> | |||
<!--T:23--> | |||
Edit the configuration file: | |||
</translate> | |||
<syntaxhighlight lang="nix"> | |||
{ | |||
boot = { | |||
plymouth = { | |||
enable = true; | |||
extraConfig = '' | |||
[Daemon] | |||
DeviceScale=an-integer-scaling-factor | |||
''; | |||
}; | |||
}; | }; | ||
} | } | ||
</ | </syntaxhighlight> | ||
[[Category:Booting | |||
<translate> | |||
== Tips and tricks == <!--T:24--> | |||
=== Show boot messages === <!--T:25--> | |||
<!--T:4--> | |||
During the graphical boot process, it is possible to switch to text mode and back by pressing the escape key. | |||
== Troubleshooting == <!--T:26--> | |||
=== LUKS Encryption === <!--T:27--> | |||
<!--T:5--> | |||
If you are using LUKS encryption the password prompt may fall back to text mode. While the default <code>bgrt</code> theme supports graphical password entry, this may not be supported by all themes. | |||
== See Also == <!--T:28--> | |||
<!--T:29--> | |||
* [<tvar name=1>https://wiki.archlinux.org/title/Plymouth</tvar> Arch Wiki] | |||
</translate> | |||
[[Category:Booting]] | |||
Latest revision as of 16:18, 5 October 2026
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 to display graphics, but on UEFI systems it can utilize the EFI framebuffer.
If you have neither KMS nor a framebuffer, Plymouth will fall back to text-mode.[1]
Installation
Basic Config
{
boot = {
plymouth = {
enable = true;
};
# Enable "Silent boot"
consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
};
}
Configuration
Changing the theme
Plymouth comes with a selection of themes:
- BGRT: A variation of Spinner that keeps the OEM logo if available (BGRT stands for Boot Graphics Resource Table)
- Fade-in: "Simple theme that fades in and out with shimmering stars"
- Glow: "Corporate theme with pie chart boot progress followed by a glowing emerging logo"
- Script: "Script example plugin" (Despite the description seems to be a quite nice Arch logo theme)
- Solar: "Space theme with violent flaring blue star"
- Spinner: "Simple theme with a loading spinner"
- Spinfinity: "Simple theme that shows a rotating infinity sign in the center of the screen"
- Tribar: "Text mode theme with tricolor progress bar"
- Text: "Text mode theme with tricolor progress bar"
- Details: "Verbose fallback theme"
NixOS sets the default theme to bgrt[2]. You can change the theme with `boot.plymouth.theme`:
{
boot = {
plymouth = {
enable = true;
theme = "solar";
};
};
}
Install new themes
As an example, you can use a boot animation from adi1090x's collection like so:
{ pkgs, ... }: {
boot = {
plymouth = {
enable = true;
theme = "rings";
themePackages = with pkgs; [
# By default we would install all themes
(adi1090x-plymouth-themes.override {
selected_themes = [ "rings" ];
})
];
};
# Enable "Silent boot"
consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
};
}
HiDPI
Edit the configuration file:
{
boot = {
plymouth = {
enable = true;
extraConfig = ''
[Daemon]
DeviceScale=an-integer-scaling-factor
'';
};
};
}
Tips and tricks
Show boot messages
During the graphical boot process, it is possible to switch to text mode and back by pressing the escape key.
Troubleshooting
LUKS Encryption
If you are using LUKS encryption the password prompt may fall back to text mode. While the default bgrt theme supports graphical password entry, this may not be supported by all themes.