From 31b20cb25f59a0d56c8394180ecd88024f98e6e2 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Sat, 5 Nov 2016 15:10:09 -0700 Subject: [PATCH] fix plymouth script --- ubuntu/fixplymouth.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 ubuntu/fixplymouth.sh diff --git a/ubuntu/fixplymouth.sh b/ubuntu/fixplymouth.sh new file mode 100755 index 0000000..dcb6a0d --- /dev/null +++ b/ubuntu/fixplymouth.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# ---------------------------------- +# Author: D0rkye +# Homepage: http://d0rkye.zsenialis.com/ +# Most code probably by kyleabaker: http://kyleabaker.com/2010/07/11/how-to-fix-your-ubuntu-boot-screen/ +# Script via http://www.webupd8.org/2010/10/script-to-fix-ubuntu-plymouth-for.html +# ---------------------------------- +sudo apt-get install v86d hwinfo -y +sudo hwinfo --framebuffer +echo "---------------------------------------------------------------" +echo "Please enter the best resolution from the list above" +echo "It usualy looks like this >>Mode 0x0323: 1024x768 (+4096), 24 bits<<" +echo "And you have to enter it like this >>1024x768-24<<" +echo "---------------------------------------------------------------" +read resolution +sed 's/GRUB\_CMDLINE\_LINUX\_DEFAULT\=\"quiet\ splash\"/GRUB\_CMDLINE\_LINUX\_DEFAULT\=\"quiet\ splash\ nomodeset\ video\=uvesafb\:mode\_option\='$resolution'\,mtrr\=3\,scroll\=ywrap\"/g' /etc/default/grub > ./newgrub +sudo mv -f ./newgrub /etc/default/grub +sed 's/\#GRUB\_GFXMODE\=640x480/GRUB\_GFXMODE\='$resolution'/g' /etc/default/grub > ./newgrub +sudo mv -f ./newgrub /etc/default/grub +sudo echo "uvesafb mode_option=$resolution mtrr=3 scroll=ywrap" | sudo tee -a /etc/initramfs-tools/modules +echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash +sudo update-grub2 +sudo update-initramfs -u +echo "The resolution should be fixed after a reboot"