我遇到的问题是,我没有看到启动动画,如旋转器和 Ubuntu 徽标。只显示 OEM 徽标(ASRock)。我按照启动屏幕上没有旋转动画(Ubuntu 20.04)但没有成功。
/etc/default/grub
我在和中比较了我的台式机和笔记本电脑(其中显示了所有内容(戴尔 OEM 徽标、Spinner 和 Ubuntu 徽标))sudo update-alternatives --config default.plymouth
。两者是相同的。
/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"
sudo update-alternatives --config default.plymouth
:
Es gibt 3 Auswahlmöglichkeiten für die Alternative default.plymouth (welche /usr/share/plymouth/themes/default.plymouth bereitstellen).
Auswahl Pfad Priorität Status
------------------------------------------------------------
* 0 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 automatischer Modus
1 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 manueller Modus
2 /usr/share/plymouth/themes/spinner/spinner.plymouth 70 manueller Modus
3 /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth 100 manueller Modus
这是 Ubuntu 的启动记录:
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 454b3874-3032-4cb6-9e5c-92a00ed53afb
else
search --no-floppy --fs-uuid --set=root 454b3874-3032-4cb6-9e5c-92a00ed53afb
fi
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=454b3874-3032-4cb6-9e5c-92a00ed53afb ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-52-generic
我也重新安装了所有与普利茅斯相关的软件包,但也没有成功。
安装了以下软件包:
libplymouth4/now 0.9.3-1ubuntu7.18.04.2 amd64 [Installiert,lokal]
libplymouth5/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [Installiert,automatisch]
plymouth-label/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [Installiert,automatisch]
plymouth-theme-spinner/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [installiert]
plymouth-theme-ubuntu-logo/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [installiert]
plymouth-theme-ubuntu-text/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [Installiert,automatisch]
plymouth/focal-updates,now 0.9.4git20200323-0ubuntu6.1 amd64 [Installiert,automatisch]
编辑2020-11-04:这可能是专有 Nvidia 驱动程序的问题,正如本文所述关联。我按照这个说明操作,但没有成功。这里相同,但没有成功。
顺便说一下,我的 Nvidia 驱动程序版本是 450.80.02。
答案1
您应该添加set gfxpayload=keep
选项
像这样:
recordfail
load_video
gfxmode $linux_gfx_mode
set gfxpayload=keep
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 454b3874-3032-4cb6-9e5c-92a00ed53afb
else
search --no-floppy --fs-uuid --set=root 454b3874-3032-4cb6-9e5c-92a00ed53afb
fi
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=454b3874-3032-4cb6-9e5c-92a00ed53afb ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-52-generic