I am on Ubuntu 20.04 LTS and I want to suppress all kernel messages of the form
[0.342652] Blah blah ...
during boot, while keeping the splash screen. The default grub setting quiet splash
does not work. I added fsck.mode=skip
and loglevel=0
to suppress some kernel messages for disk checking and old hardware. However, I still get an empty line like
[4.568562]
before the splash screen shows up. I found this post that redirects everything to console=ttyS0
so the kernel messages are gone but so is the splash screen. Below is my grub setting in /etc/defaults/grub
.
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=120
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
Don't show Ubuntu bootup text
GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=skip quiet loglevel=0 splash"
GRUB_CMDLINE_LINUX=""
Detect other operating systems
GRUB_DISABLE_OS_PROBER=false
The resolution used on graphical terminal
note that you can use only modes which your graphic card supports via VBE
you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=1280x1024
I noticed that when I switch to my intel graphic card sudo prime-select intel
then the empty line disappears and the current grub setting works fine. However, when I am using the nvidia graphic card sudo prime-select nvidia
, the following appears before the splash screen
and here is the result of sudo dmesg
around the time [4.568562]
that appeared in the previous picture.
[ 4.553719] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 4.568556] nvidia-nvlink: Nvlink Core is being initialized, major device number 511
[ 4.569341] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
The empty line shown in the above log exists and is not a typo.