AdisonCavani / distro-grub-themes

A pack of GRUB2 themes for each Linux distribution
https://k1ng.dev/distro-grub-themes
GNU General Public License v3.0
887 stars 55 forks source link

Unable to change resolution in grub #75

Closed tolgaerok closed 1 year ago

tolgaerok commented 1 year ago

ive added the following into grub as per your instructions but the resolution dosnt change to 1920 (Fedora 36 - grub 2.06??) but thankfully the theme does show. I have unicode.pf2 in the/boot/grub2/fonts

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_GFXMODE="1920x1080x16"
GRUB_CMDLINE_LINUX="zswap.enabled=1 rhgb quiet mitigations=off rd.driver.blacklist=nouveau selinux=0"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG="true"
GRUB_THEME="/boot/grub2/themes/fedora/theme.txt"

Ran your recommended grub2 updater: sudo grub2-mkconfig -o /etc/grub2.cfg && sudo grub2-mkconfig -o /etc/grub2-efi.cfg && sudo grub2-mkconfig /etc/grub2-efi.cfg

Also ran: sudo sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Grub does not change to the desired resolution and is all big fonted?

grohan47 commented 1 year ago

Before we begin, follow these instructions to reinstall GRUB. The last command you ran has long been deprecated.

grohan47 commented 1 year ago

Maybe try commenting out the GFXmode line entirely? My config does not contain that line and auto-adjusts the resolution according to my monitor.

tolgaerok commented 1 year ago

Reinstalling the grub as stated on the fedora website will other os be picked up I.e. windows

tolgaerok commented 1 year ago

Solved: Resolution now sets to 1920x1080

Followed instructions as follows:

rm /boot/efi/EFI/fedora/grub.cfg
rm /boot/grub2/grub.cfg

sudo dnf reinstall shim-* grub2-efi-* grub2-common

Edited /etc/default/grub2 and added:

GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
GRUB_GFXMODE="1920x1080"

Edited /boot/grub2/grub.cfg and changed

if loadfont $font ; then
  set gfxmode=auto

to

if loadfont $font ; then
  set gfxmode=1920x1080

20220826_174459