You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hide boot messages when plymouth is enabled #32556
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Yeah, currently we install Plymouth into the stage 2 of the initrd. So you don't get it until then, and if if stage 2 is very fast, you won't see much of it at all! I don't know why it goes into stage 2, @abbradar set it up initially, so might know.
I have patches here, but cleaned up yet and ready for submission. With the latest plymouth we can show the UEFI vendor logo during boot which is quite nifty. Also just sitting in my local patch queue.......
Reacted by Marco A L Barbosa, Ninlives, Nate Robbins, musjj and furdiburd
Reacted by Josef Kemetmüller, Marco A L Barbosa, Leo Gaskin, Ninlives, b3nj5m1n, Dustin Blackman, Nate Robbins, Sven and musjj
Reacted by Johannes Emerich, Marco A L Barbosa, Ninlives, Nate Robbins and musjj
Crucially I had left out a "not" in my earlier comment that should have been "but not cleaned up yet and ready for submisssion"... So there's that.
I'll allocate some time for this Soonish(tm). I'll ping you guys here when it's ready for testing. I have it working on one laptop here but not another although I'm not sure if this is related to what I did or the laptop in question.
Reacted by Nate Robbins, Dustin Blackman, Gabriel Fontes, William McKinnon and Sven
Most of that appears to be grub showing stuff, which happens before even the Linux kernel takes over, and won't be affected by any of the systemd/plymouth configuration. That's up to configuring grub.
After grub finishes "booting the kernel" you get a blank screen for a while, which I assume is most of stage 1. It's blank because you've disabled all logging for that portion of the boot - ideally plymouth would start much earlier here, so you don't need to disable stage 1 logging (and can make it visible through escape).
Finally just before stage 1 hands over to stage 2 plymouth finally starts (so that it can ask for decryption stuff), but as lightdm takes over you get tty1 flickering again. I'm pretty sure it's possible to resolve that as well, I've seen fedora systems boot without that flicker.
I think the current state is:
You can make the system boot without showing the boot manager
To achieve this use systemd-boot
OR configure grub to be hidden by default:
{boot.loader={timeout=5;# The default, I recommend making this shortergrub={extraConfig='' set timeout_style=hidden '';# Because it still draws that image otherwisesplashImage=null;};};}
You can, with caveats, make the system fully boot with plymouth from (late) stage1
Completely feasible without full disk encryption, just set boot.plymouth.enable = true;
With full disk encryption, currently requires the experimental boot.initrd.systemd
You can kind of hack the boot such that it shows no boot logs during stage1 to get a console-log free boot
I was having a similar issue and just wanted to post my solution to this (Tho I am a newbie, so take this with caution). I'm currently using grub on an intel system and could only get plymouth to show on system shutdown but not on system boot. What fixed it for me was add the 'i915' kernel module to my initrd.kernalModules like so:
boot.initrd.kernelModules = [ "i915" ];
What led me to the answer was this reddit post linked here.
Also, I'm not sure if this is necessary, but I also added these lines of code to hide logs on boot:
@codeiimon Thank you! This comment led me down the right track. It also does work without the lines to disable the logs, for what it's worth. i915.fastboot=1 seems to prevent the display of the console again between Plymouth closing and the display manager starting.
An alternative method that doesn't require adding any new modules in the initrd image is to force Plymouth to use the SimpleDRM driver. By default it hesitates to do so (waiting for some udev probing to detect "better" options), but reluctantly ends up using it after an annoyingly long timeout. You can tell it to go for SimpleDRM immediately by adding plymouth.use-simpledrm to the kernel command line:
boot.loader.systemd-boot.enable = true; # For reference, since I see no reason why this wouldn't work with other bootloaders.
boot.initrd.systemd.enable = true; # (optional, experimental) Needed to show the decryption prompt in Plymouth.
boot.plymouth.enable = true;
boot.kernelParams = [
"plymouth.use-simpledrm"
];
(note that "splash" isn't strictly needed either, since it should already be added by boot.plymouth.enable = true;).
But it still shows boot messages between the first splash and the login manager. I think this issue needs to be fixed on a more fundamental level, as mentioned by @michaelpj:
Yeah, currently we install Plymouth into the stage 2 of the initrd. So you don't get it until then, and if if stage 2 is very fast, you won't see much of it at all! I don't know why it goes into stage 2, @abbradar set it up initially, so might know.
@peterhoeg Did you ever got around to cleaning up that patch?
I'd encourage anyone who've failed to extract the right incantations from the rune fragments scattered in this thread to try it out.
The only thing that's is a tiny bit off to me is the transition to the login screen:
plymouth -> black screen -> a frame of the previous plymouth screen -> login screen
This is something that always happens even with the default config (without plymouth: replace "plymouth" above with "boot logs"). But I wonder if there's a way to eliminate this black screen gap.
This is something that always happens even with the default config (without plymouth: replace "plymouth" above with "boot logs"). But I wonder if there's a way to eliminate this black screen gap.
I'm shooting in the dark here, but there is a feature called smooth transition. I only know of GDM that supports this feature.
Thanks, I looked it up and it seems interesting. I'm already using GNOME though.
For whatever reason, it no longer shows a frozen Plymouth frame after the monitor blackout transition, and instead just a flat black (lit) screen, which is a huge improvement. I really don't know what caused this and I don't think I did anything with my config.
Also, during shutdown, there's a very tiny chance that an extremely brief frame of a 1-2 line console log will be shown. I couldn't read it fast enough though. But Plymouth works most of the time.
EDIT: Just updated my flake (which also updated the systemd-boot package) and now the frozen frame is back. So strange.
I've managed to capture and transcribe the logs I see on shutdown:
[ 257.826441] (sd-umoun[5052]: Failed to unmount /run/shutdown/mounts/38f870ec48758433: Device or resource busy
[ 257.828854] watchdog: watchdog0: watchdog did not stop!
[ 257.828909] shutdown[1]: Unable to finalize remaining filesystems, ignoring.
I've tried all options above but I can never get rid of this log message. I can't even find these lines in journalctl for some reason, had to record and transcribe it by hand.
Anyone have any clue how to hide, get rid of or fix these messages?
@musjj I think the issue is a thumb drive or a network drive not getting unmounted. the two following lines are the result of that. These are kernel messages I think, so maybe they are in dmesg?
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
michaelpj commentedon Dec 11, 2017
Yeah, currently we install Plymouth into the stage 2 of the initrd. So you don't get it until then, and if if stage 2 is very fast, you won't see much of it at all! I don't know why it goes into stage 2, @abbradar set it up initially, so might know.
stale commentedon Jun 5, 2020
rileyinman commentedon Jun 6, 2020
stale commentedon Dec 3, 2020
davidak commentedon Dec 7, 2020
peterhoeg commentedon Dec 8, 2020
I have patches here, but cleaned up yet and ready for submission. With the latest plymouth we can show the UEFI vendor logo during boot which is quite nifty. Also just sitting in my local patch queue.......
bobvanderlinden commentedon Jan 17, 2021
@peterhoeg that sounds great! Did you submit your patches somewhere already?
peterhoeg commentedon Jan 25, 2021
Crucially I had left out a "not" in my earlier comment that should have been "but not cleaned up yet and ready for submisssion"... So there's that.
I'll allocate some time for this Soonish(tm). I'll ping you guys here when it's ready for testing. I have it working on one laptop here but not another although I'm not sure if this is related to what I did or the laptop in question.
stale commentedon Jul 26, 2021
14 remaining items
TLATER commentedon Jan 16, 2023
Most of that appears to be grub showing stuff, which happens before even the Linux kernel takes over, and won't be affected by any of the systemd/plymouth configuration. That's up to configuring grub.
After grub finishes "booting the kernel" you get a blank screen for a while, which I assume is most of stage 1. It's blank because you've disabled all logging for that portion of the boot - ideally plymouth would start much earlier here, so you don't need to disable stage 1 logging (and can make it visible through escape).
Finally just before stage 1 hands over to stage 2 plymouth finally starts (so that it can ask for decryption stuff), but as lightdm takes over you get tty1 flickering again. I'm pretty sure it's possible to resolve that as well, I've seen fedora systems boot without that flicker.
I think the current state is:
boot.plymouth.enable = true;boot.initrd.systemdcodeiimon commentedon Jul 28, 2024
I was having a similar issue and just wanted to post my solution to this (Tho I am a newbie, so take this with caution). I'm currently using grub on an intel system and could only get plymouth to show on system shutdown but not on system boot. What fixed it for me was add the 'i915' kernel module to my initrd.kernalModules like so:
boot.initrd.kernelModules = [ "i915" ];What led me to the answer was this reddit post linked here.
Also, I'm not sure if this is necessary, but I also added these lines of code to hide logs on boot:
jmickelin commentedon Aug 28, 2024
@codeiimon Thank you! This comment led me down the right track. It also does work without the lines to disable the logs, for what it's worth.
i915.fastboot=1seems to prevent the display of the console again between Plymouth closing and the display manager starting.An alternative method that doesn't require adding any new modules in the initrd image is to force Plymouth to use the SimpleDRM driver. By default it hesitates to do so (waiting for some udev probing to detect "better" options), but reluctantly ends up using it after an annoyingly long timeout. You can tell it to go for SimpleDRM immediately by adding
plymouth.use-simpledrmto the kernel command line:(It seems that the Plymouth developers are considering making this the default in future versions: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/110)
Here is a full, minimal, example:
(note that
"splash"isn't strictly needed either, since it should already be added byboot.plymouth.enable = true;).As for the flicker free boot sequence mentioned in previous posts, I found this summary of how Fedora does it on Intel GPU machines, though it might be out of date compared to what they're currently doing: https://fedoraproject.org/wiki/Changes/FlickerFreeBoot It relies on that
i915.fastbootparameter. I assume this means that the initrd does need to bundle thei915module.musjj commentedon Nov 10, 2024
@jmickelin
I added:
But it still shows boot messages between the first splash and the login manager. I think this issue needs to be fixed on a more fundamental level, as mentioned by @michaelpj:
@peterhoeg Did you ever got around to cleaning up that patch?
nixos-discourse commentedon Dec 30, 2024
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/want-to-try-plymouth-but-kinda-confused/57989/5
musjj commentedon May 2, 2025
I just copied this module from Misterio77's config verbatim (except for the custom plymouth theme): https://github.com/Misterio77/nix-config/blob/a8727347957891bd651aba3bc0e04ca694d6f664/hosts/common/optional/quietboot.nix and it's working flawlessly for me.
I'd encourage anyone who've failed to extract the right incantations from the rune fragments scattered in this thread to try it out.
The only thing that's is a tiny bit off to me is the transition to the login screen:
This is something that always happens even with the default config (without plymouth: replace "plymouth" above with "boot logs"). But I wonder if there's a way to eliminate this black screen gap.
mainrs commentedon May 2, 2025
I'm shooting in the dark here, but there is a feature called smooth transition. I only know of GDM that supports this feature.
musjj commentedon May 7, 2025
Thanks, I looked it up and it seems interesting. I'm already using GNOME though.
For whatever reason, it no longer shows a frozen Plymouth frame after the monitor blackout transition, and instead just a flat black (lit) screen, which is a huge improvement. I really don't know what caused this and I don't think I did anything with my config.
Also, during shutdown, there's a very tiny chance that an extremely brief frame of a 1-2 line console log will be shown. I couldn't read it fast enough though. But Plymouth works most of the time.
EDIT: Just updated my flake (which also updated the systemd-boot package) and now the frozen frame is back. So strange.
musjj commentedon Dec 17, 2025
I've managed to capture and transcribe the logs I see on shutdown:
[ 257.826441] (sd-umoun[5052]: Failed to unmount /run/shutdown/mounts/38f870ec48758433: Device or resource busy [ 257.828854] watchdog: watchdog0: watchdog did not stop! [ 257.828909] shutdown[1]: Unable to finalize remaining filesystems, ignoring.I've tried all options above but I can never get rid of this log message. I can't even find these lines in
journalctlfor some reason, had to record and transcribe it by hand.Anyone have any clue how to hide, get rid of or fix these messages?
mainrs commentedon Dec 18, 2025
@musjj I think the issue is a thumb drive or a network drive not getting unmounted. the two following lines are the result of that. These are kernel messages I think, so maybe they are in
dmesg?