2010/09/03

Set Up Plymouth in Linux Mint 9

Plymouth is a boot splash program installed per default by Ubuntu 10.4 and Linux Mint 9, which replaces previous splash programs like usplash, fbcondecor and splashy. At least in my case, it didn't work out of the box upon a clean installation of Linux Mint 9, but after the following configuration it works nicely.

Configuration

Set up GRUB:
gksudo /etc/default/grub
# Set the following variables:
# Commented variables means they are not needed.
# GRUB_CMDLINE_LINUX_DEFAULT="video=vesafb"
# GRUB_GFXMODE=1280x800x32
GRUB_CMDLINE_LINUX="gfxpayload=keep splash true quiet"

Set up initrd to use framebuffer:
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-initramfs -u

Change plymouth theme (they are installed in /lib/plymouth):
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u

Customize ubuntu-logo Plymouth theme

We are going to add a wallpaper image to the default Plymouth theme used by Linux Mint, that is ubuntu-logo theme (though it really displays Mint logo).
Paste a custom wallpaper image in png format in /lib/plymouth/themes/ubuntu-logo as wallpaper.png. Add code to handle the wallpaper image:
gksudo /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script
# After line 167 add the following:
screen_width = Window.GetWidth (0);
screen_height = Window.GetHeight (0);
wallpaper_image = Image ("wallpaper.png");
resized_wallpaper_image = wallpaper_image.Scale (screen_width, screen_height);
wallpaper_sprite = Sprite (resized_wallpaper_image);
wallpaper_sprite.SetZ (-10000);

Update initramfs: sudo update-initramfs -u
Enhanced by Zemanta