如何在 Ubuntu/Kubuntu 18.04 上显示启动文本而不是启动画面或空白屏幕?

如何在 Ubuntu/Kubuntu 18.04 上显示启动文本而不是启动画面或空白屏幕?

编辑内核参数并删除“quiet”和“splash”不会带来加载文本 - 我仍然看到黑屏,没有文本。按 ESC 也不会神奇地显示任何内容。到目前为止显示的第一件事是 SDDM 登录屏幕(此处为 Kubuntu)。

/etc/default/grub内容:

$ cat /etc/default/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=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# 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 `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


I'm not sure which version of GRUB should I report, so instead I'll just list all the GRUB packages that are installed:
  • grub 通用2.02-2ubuntu8.7
  • grub-efi-amd642.02-2ubuntu8.7
  • grub-efi-amd64-bin2.02-2ubuntu8.7
  • grub-efi-amd64-签名1.93.8+2.02-2ubuntu8.7
  • grub2-通用2.02-2ubuntu8.7

如果这很重要:

  • 显卡:nVidia GeForce 980 GTX Ti
  • 视频驱动程序:专有版本 410
  • 内核:4.15.0-39

答案1

除了从 GRUB_CMDLINE_LINUX_DEFAULT 中删除 quiet splash 之外,
还要从行#GRUB_TERMINAL=console 中取消注释(删除#)。

sudo update-grub

然后重新启动。

答案2

确保您没有安装 plymouth-theme-ubuntu-text 包。使用 检查是否有dpkg -s plymouth-theme-ubuntu-text|grep Status。如果存在,请使用 删除它apt-get remove plymouth-theme-ubuntu-text

相关内容