Flicker Free Boot

Flicker Free Boot is a relatively new feature, that was created by Hans de Goede and is available in Fedora since version 30.

Other results
Please share your success or failure results if you can. This way we can get a more accurate view of what is working.

Hardware / Software

 * A working UEFI setup, preferably with a Intel Skylake (6th Generation) or more recent processor should work.
 * Older (3rd to 5th Generation Core iXXXX series processors might work.
 * You must be using the Intel Onboard (i915) series graphics. Other graphics cards are not supported.
 * The specified system must boot up in native UEFI mode. CSM mode needs to be disabled.
 * The specified system must use a manually compiled kernel. I haven't tested this with a genkernel created kernel.
 * If you're using an older (e.g. Ivy Bridge / Haswell / Broadwell) based system, it's recommended that you use at least version 4.20.17 or higher due to a bug that actually causes the screen to go to stand-by mode and turn back on.
 * This guide assumes that you've configured your kernel correctly and set the appropriate options for framebuffer support and such.
 * This guide assumes that you're using /dev/sda1 as ESP (/boot) partition. If it's not, then adjust the commands for your own paths accordingly.
 * This guide assumes that you're using systemd as your init system.
 * It's recommended to have a /boot partition of at least 512MB, as 128MB might be too small.
 * This guide assumes that you're using a standardized naming scheme for your kernel that grub identifies and accepts (vmlinuz- or kernel-).
 * The specified system must use grub as a bootloader. I've tried getting it to work with EFI stub, but it just does not seem to work.
 * The modified version of grub will use a sub-folder fedora instead of grub on the /boot partition. Keep this in mind

Knowledge

 * A working Gentoo setup, preferably configured with grub.
 * Intermediate to advanced knowledge about the Linux boot process.
 * Knowledge on how to manually patch and compile.

Summary
This tutorial assumes that you've currently got a working Gentoo setup. This setup boots in (U)EFI mode using grub with CSM mode disabled and is using an Intel processor with it's own integrated graphics card.

Installing the required software
In order to be able to successfully get everything working, there's a things you'll need to do in order to be able to successfully getting this running on a system

Using the GIT version of plymouth and setting the correct USE flags
The only version that currently has these patches is the GIT version of plymouth. In order to emerge the GIT version of plymouth, you'll need to take the following steps:
 * 1) Run the command:
 * 2) Add the following line to the file:
 * 3) NOTE: libkms is the minimal requirement for the splash screen even to show up and pango is required For interactivity (e.g.: If you want to have the ability to enter a LUKS password on a nice graphical screen). The gtk and gdm USE flags should be added respectively when using GDM as Display Manager or lightdm with GTK.
 * 4) NOTE: Do NOT use the static-libs USE flag. This USE flags break plymouth and causes the package not to compile or show any themes.
 * 5) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 6) Run the command:
 * 7) Add the following line to the file:
 * 8) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 9) Now install the package: :  Verify if the package is actually version 9999 (otherwise there might be a typo in one of the files).

Using dracut
This has been tested to work by using the amd64 version of dracut. genkernel-next fails to work properly. Using the latest available version of dracut from portage is recommended. Install the package: :

Getting the custom version of grub
Hans de Goede from Fedora made a customized version of grub in order to get this to work. This is not the default grub you get by emerging the software. For this you'll need to use the customized version of grub.
 * 1) Git should already be installed, as it should've been pulled in by emerging the 9999 version of plymouth. If it's not, then install  by running the command :
 * 2) Now let's make a directory which we'll clone the project in and enter it
 * 3) Now let's clone the project from Fedora:

Getting the splash screen to show
In order to get the splash screen to show, we'll need to adjust a few settings and generate working initramfs using dracut.
 * 1) First, edit the plymouthd file, to specify the theme to be used. Run the command:
 * 2) Change the settings to make it look like the following:
 * 3) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 4) Now, mount the boot partition in order for plymouth to be able to automatically install the initramfs file:
 * 5) Finally, generate the initramfs with the plymouth theme and have it automatically:

Getting the customized version of grub compiled and installed
This is the hardest part. Installing the customized version of grub and generating a working grub.conf
 * 1) First, enter the grub directory:
 * 2) Now, generate the autogen files:
 * 3) Next, get a working configure and make file:
 * 4) Finally, compile grub. For this I've got 2 scripts that were shared with me by Hans de Goede.


 * 1) Create 1 file using the following command:  and paste the contents of the configure script in there.
 * 2) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 3) Create 1 file using the following command:  and paste the contents of the make script in there.
 * 4) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 5) Run the command  and wait until it finishes.
 * 6) Run the command  and wait until it finishes.
 * 7) Once these scripts are done, a grubx64.efi file should have been automatically generated in the efi-64 sub folder. Copy this and replace the bootx64.efi
 * 8) Next, copy a file manually, in order to prevent a generated Error during reboot
 * 9) Then, generate a working grub.cfg file in order to be able to boot successfully. Run the command:  and change it accordingly to look something like the file below.


 * 1) Press CTRL + O, press [Enter] and press CTRL + X in order to save the file.
 * 2) Now, regenerate the grub.cfg file
 * 3) Finally, reboot and pray it's working:

External References

 * Hans de Goede - Flicker Free Boot FAQ
 * Fedora - Flicker Free Boot project page
 * Arch Linux - plymouth Wiki page