LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
56 stars 6 forks source link

[storage][boot_loaders] Configure a theme for GRUB #688

Open LukeShortCloud opened 2 years ago

LukeShortCloud commented 2 years ago

Themes are commonly installed in /usr/share/grub/themes/ or /boot/grub/themes/. The /boot/grub/themes/ path is preferred in case the root file system is encrypted or GRUB does not have the file system drivers to access it.

Here is an example of setting up the Steam Big Picture mode theme:

$ sudo git clone --depth=1 https://github.com/LegendaryBibo/Steam-Big-Picture-Grub-Theme /boot/grub/themes/SteamBP
$ sudo vim /etc/default/grub
GRUB_THEME="/boot/grub/themes/SteamBP/theme.txt"
#GRUB_GFXMODE=auto
GRUB_GFXMODE=1024x768
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Theme https://github.com/LegendaryBibo/Steam-Big-Picture-Grub-Theme

Related: https://github.com/LukeShortCloud/winesapOS/issues/250

LukeShortCloud commented 2 years ago

""" Multiple resolutions can be specified, including the default auto, so it is recommended that you edit the line to resemble GRUB_GFXMODE=desired_resolution,fallback_such_as_1024x768,auto. For more information, refer to the GRUB gfxmode documentation. The gfxpayload property will make sure the kernel keeps the resolution. """

https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Theme

UEFI within a KVM virtual machine may result in GRUB using the lowest resolution which can cause issues booting systems (they instead boot to the UEFI). It is recommended to set the best GRUB_GFXMODE first with lower resolution alternatives after it.