This is my first EFI motherboard and Gentoo install on such hardware as well as multi boot operating systems.
Right now I have everything working but would like to get some ‘cosmetics” on Gentoo.
Goal: To get grub and the console to have a background image.
Relevant docs:
https://wiki.gentoo.org/wiki/Fbsplash
Example:
https://www.deviantart.com/unixwz0r/art ... -516131523
https://linux.softpedia.com/screenshots ... lash_1.jpg
https://wiki.gentoo.org/images/thumb/7/ ... splash.png
A few details:
# dmesg | grep buffer- Fresh new laptop install
- Quad boot OS install (3 linux + windows each one with it’s boot manager)
- Grub on gentoo set as main boot manager
- Encrypted / partition
- Separate /boot partition
- 2 video cards and although not sure, It seems that the console uses the Intel card
- Starfield theme works
- Fair chance that the boot management is not what it could or should be
- Huge chance that I am missing some small detail but cant see exactly what.
Code: Select all
[ 0.230395] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.644021] e820: reserve RAM buffer [mem 0x0009f000-0x0009ffff]
[ 0.644022] e820: reserve RAM buffer [mem 0x73d87000-0x73ffffff]
[ 0.644023] e820: reserve RAM buffer [mem 0x7a71c000-0x7bffffff]
[ 0.644023] e820: reserve RAM buffer [mem 0x8a89e000-0x8bffffff]
[ 0.644024] e820: reserve RAM buffer [mem 0x8bc0f000-0x8bffffff]
[ 0.644025] e820: reserve RAM buffer [mem 0x46e800000-0x46fffffff]
[ 1.798455] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 1.948408] efifb: framebuffer at 0xb0000000, using 8128k, total 8128k
[ 1.948481] Console: switching to colour frame buffer device 240x67
[ 1.952032] fb0: EFI VGA frame buffer device
[ 214.582139] Console: switching to colour frame buffer device 240x67
[ 214.606116] i915 0000:00:02.0: fb0: inteldrmfb frame buffer deviceCode: Select all
[ 0.382082] fbcon: Taking over console
[ 0.527625] pci 0000:00:02.0: BAR 2: assigned to efifb
[ 1.948382] efifb: probing for efifb
[ 1.948408] efifb: framebuffer at 0xb0000000, using 8128k, total 8128k
[ 1.948410] efifb: mode is 1920x1080x32, linelength=7680, pages=1
[ 1.948411] efifb: scrolling: redraw
[ 1.948413] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 1.952032] fb0: EFI VGA frame buffer device
[ 213.267354] fb: switching to inteldrmfb from EFI VGA
[ 213.283754] fbcon: inteldrmfb (fb0) is primary device
[ 214.606116] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
Code: Select all
[ 1.948408] efifb: framebuffer at 0xb0000000, using 8128k, total 8128k
[ 1.948481] Console: switching to colour frame buffer device 240x67
[ 1.952032] fb0: EFI VGA frame buffer device
[ 213.070681] r8169 0000:07:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 214.582139] Console: switching to colour frame buffer device 240x67
[ 214.606116] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device# lspci | grep VGA
Code: Select all
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f91 (rev a1)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
Subsystem: Lenovo UHD Graphics 630 (Mobile)
Kernel driver in use: i915
Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f91 (rev a1)
Subsystem: Lenovo Device 3a2e
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidiaCode: Select all
blacklist nouveauOn grub, videoinfo does show capacity for 1920x1080x32 resolution
hwinfo –framebuffer does not output anything but hwinfo does provide the following:
Code: Select all
<6>[ 214.582139] Console: switching to colour frame buffer device 240x67
<6>[ 214.606116] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device# cat /usr/src/linux/.config| grep CONFIG_FRAMEBUFFER_CONSOLE
Code: Select all
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y# cat /usr/src/linux/.config| grep CONFIG_FB_SIMPLE
# CONFIG_FB_SIMPLE is not set
and according to:
viewtopic-p-8112046.html#8112046
Finding the resolutions supported by the framebuffer device:“nvidia-drivers does not provide a console, at all”
# cat /sys/class/graphics/fb0/modes
Code: Select all
U:1920x1080p-0/etc/splash/ (because package is gone)
Updating an initramfs image without using genkernel
splash_geninitramfs (does not exist because package is gone)
# grub-mkconfig -o /boot/grub/grub.cfg
Code: Select all
Generating grub configuration file ...
Found theme: /boot/grub/themes/starfield/theme.txt
Found linux image: /boot/vmlinuz-4.19.97-gentoo-x86_64
Found initrd image: /boot/initramfs-4.19.97-gentoo-x86_64.img
Found linux image: /boot/vmlinuz-4.19.97-gentoo-x86_64.old
Found initrd image: /boot/initramfs-4.19.97-gentoo-x86_64.img
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Found Some GNU/Linux on /dev/nvme0n1p6
Found Some Other Linux on /dev/nvme0n1p7
done# https://www.gnu.org/software/grub/manua ... ation.html
Code: Select all
GRUB_DISTRIBUTOR="Gentoo"
GRUB_DEFAULT=60
GRUB_TIMEOUT=-1
GRUB_TIMEOUT_STYLE=menu
GRUB_ENABLE_CRYPTODISK=1
GRUB_CMDLINE_LINUX="dolvm crypt_root=UUID=blahblahblah-blahh-blahh-blah-blahblahblah root=/dev/mapper/root rootfstype=ext4 net.ifnames=0 root_trim=yes"
GRUB_CMDLINE_LINUX_DEFAULT="splash"
GRUB_GFXMODE=1920x1080x32,auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
GRUB_BACKGROUND="/boot/grub/img/gentoo-powered-big.png"
# GRUB_VIDEO_BACKEND="vbe" ???
#GRUB_DISABLE_LINUX_UUID=true
#GRUB_DISABLE_RECOVERY=true
#GRUB_DISABLE_SUBMENU=y
#GRUB_INIT_TUNE="60 800 1"
GRUB_FONT="/boot/grub/fonts/unicode.pf2"
SPLASH_THEME="gentoo"# grep -v '^#' /etc/genkernel.conf
Code: Select all
INSTALL="yes"
MRPROPER="yes"
MOUNTBOOT="yes"
SAVE_CONFIG="yes"
NOCOLOR="false"
LVM="yes"
LUKS="yes"
GPG="yes"
MICROCODE="all"
BUSYBOX="yes"
BOOTLOADER="grub"
SPLASH="yes"
SPLASH_THEME="gentoo"
MODULEREBUILD="yes"
KEYMAP="yes"
GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
CACHE_DIR="/var/cache/genkernel"
DISTDIR="${GK_SHARE}/distfiles"
LOGFILE="/var/log/genkernel.log"
LOGLEVEL=1
DEFAULT_KERNEL_SOURCE="/usr/src/linux"Links I have used to solve this problem:
https://www.gnu.org/software/grub/manual/grub/html_node
https://www.thegeekstuff.com/2012/10/grub-splash-image (did not work)
https://wiki.gentoo.org/wiki/Fbsplash (outdated and not effective) fbcondecor is gone?
viewtopic-t-728450-start-0.html (outdated)
https://wiki.archlinux.org/index.php/GR ... figuration (not helpfull)
viewtopic-t-1089418-highlight-grub+splash.html (not helpful)
viewtopic-t-1069124-highlight-grub+splash.html (outdated)
( I found this confusing and maybe someone might be able to clarify)
viewtopic-p-8111658.html#8111658

