我正在寻找方法来消除启动过程中的黑屏并用完整的启动动画代替它。
这是我的 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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash modeset"
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
# 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=1920x1080
# 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"
我尝试过移除它#
,#GRUB_TERMINAL=console
但效果并不理想,加上启动动画,它就变成了默认的 14.04 粉色圆点动画。我正在使用Solar
启动动画。当我放#
回去时,启动动画再次出现,尽管它总是持续 5 秒,然后登录屏幕弹出。
我仅使用已安装的 Nvidia 视频驱动程序(手动)。Nouveau 已列入黑名单。
如果可能的话,我可以采用什么建议或解决方案来解决这个问题?
答案1
在谷歌搜索了一段时间后,我设法找到了一种简单的解决方案。它不会完全消除黑屏,但现在它只持续 2-3 秒,并顺利跳转到启动屏幕,您可以享受启动动画。为了解决这个问题,我创建了splash
文件:
sudo gedit /etc/initramfs-tools/conf.d/splash
然后在文件中输入并保存:
FRAMEBUFFER=y
选择并更新您的default.plymouth
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u
sudo reboot
完成。现在它看起来应该很好而且正常。