Skip to content

hide boot messages when plymouth is enabled #32556

Open

Description

@davidak

Issue description

Plymouth is used to prevent boot messages from being displayed. That does not work completely.

/cc @abbradar @michaelpj

Steps to reproduce

NixOS system with Grub 2 and Xfce.

  1. boot.plymouth.enable = true;
  2. nixos-rebuild switch
  3. reboot
  4. you still get these messages

virtualbox_nixos_11_12_2017_06_02_11

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.9.66, NixOS, 17.09.2281.b4a0c011e81 (Hummingbird)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 1.11.15
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Activity

  1. michaelpj commented on Dec 11, 2017

    @michaelpj
    Contributor

    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.

  2. stale commented on Jun 5, 2020

    @stale
  3. added
    2.status: stale
    on Jun 5, 2020
  4. rileyinman commented on Jun 6, 2020

    @rileyinman
  5. removed
    2.status: stale
    on Jun 6, 2020
  6. stale commented on Dec 3, 2020

    @stale
  7. added
    2.status: stale
    on Dec 3, 2020
  8. davidak commented on Dec 7, 2020

    @davidak
    Author
  9. removed
    2.status: stale
    on Dec 7, 2020
  10. peterhoeg commented on Dec 8, 2020

    @peterhoeg
    Member

    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.......

  11. bobvanderlinden commented on Jan 17, 2021

    @bobvanderlinden
    Member

    @peterhoeg that sounds great! Did you submit your patches somewhere already?

  12. peterhoeg commented on Jan 25, 2021

    @peterhoeg
    Member

    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.

  13. stale commented on Jul 26, 2021

    @stale
  14. 14 remaining items

  15. TLATER commented on Jan 16, 2023

    @TLATER
    Contributor

    https://www.youtube.com/watch?v=4_C8l3YhGwM

    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 shorter
            grub = {
              extraConfig = ''
                set timeout_style=hidden
              '';
              # Because it still draws that image otherwise
              splashImage = 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
      • See above
      • This is definitely not optimal
    • You cannot make the system boot without flickering the tty for a bit before your display manager starts
  16. codeiimon commented on Jul 28, 2024

    @codeiimon

    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:

    boot.initrd.verbose = false;
    boot.consoleLogLevel = 0;
    boot.kernelParams = [
            "quiet"
            "splash"
            "boot.shell_on_fail"
            "i915.fastboot=1"
            "loglevel=3"
            "rd.systemd.show_status=false"
            "rd.udev.log_level=3"
            "udev.log_priority=3"
    ];
    
  17. jmickelin commented on Aug 28, 2024

    @jmickelin

    @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.kernelParams = [
      ...
      plymouth.use-simpledrm
      ...
    ];
    

    (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:

      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;).


    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.fastboot parameter. I assume this means that the initrd does need to bundle the i915 module.

  18. musjj commented on Nov 10, 2024

    @musjj
    Contributor

    @jmickelin

    I added:

    kernelParams = [
      "plymouth.use-simpledrm"
    ];

    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?

  19. added
    0.kind: bug
    6.topic: nixos
    on Nov 11, 2024
  20. nixos-discourse commented on Dec 30, 2024

    @nixos-discourse
  21. musjj commented on May 2, 2025

    @musjj
    Contributor

    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:

    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.

  22. mainrs commented on May 2, 2025

    @mainrs

    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.

  23. musjj commented on May 7, 2025

    @musjj
    Contributor

    but there is a feature called smooth transition.

    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.

  24. added
    2.status: stale
    on Nov 5, 2025
  25. musjj commented on Dec 17, 2025

    @musjj
    Contributor

    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?

  26. removed
    2.status: stale
    on Dec 17, 2025
  27. mainrs commented on Dec 18, 2025

    @mainrs

    @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?

  28. added
    2.status: stale
    on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug2.status: stale6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions