This came from AI.
I searched for Tumbleweed "GRUB_ENABLE_BLSCFG" console resolution.
Here’s the result.
Read approach 2.
The GRUB_ENABLE_BLSCFG variable controls whether GRUB uses Boot Loader Specification (BLS) snippets, which can affect how console resolution settings are applied in openSUSE Tumbleweed. When BLS is enabled (the default in modern openSUSE and Fedora), traditional methods of setting the GRUB resolution in /etc/default/grub using variables like GRUB_GFXMODE might be ignored or require additional configuration steps in a user.cfg file to work correctly.
Understanding the Mechanism
GRUB_ENABLE_BLSCFG=true (Default): GRUB reads configuration from /boot/loader/entries/*.conf files (BLS snippets) and the resolution might default to a low setting (e.g., 1024x768 or lower on high-resolution screens) because generic settings are used.
GRUB_ENABLE_BLSCFG=false: GRUB relies on the traditional, monolithic /boot/grub2/grub.cfg file, generated from /etc/default/grub and scripts in /etc/grub.d/. This method is more predictable for applying custom resolutions via GRUB_GFXMODE.
Steps to Adjust Console Resolution
To change the console resolution in Tumbleweed, you generally have two approaches:
Approach 1: Modify /etc/default/grub (Recommended for openSUSE/Tumbleweed)
This is the standard way in openSUSE, which often uses BLS but still processes /etc/default/grub during configuration generation.
- Open the file
/etc/default/grub in a text editor as root:
bash
sudo nano /etc/default/grub
- Modify or add the following lines:
- Set the output to
gfxterm to enable graphical console output:
GRUB_TERMINAL_OUTPUT="gfxterm"
- Set the desired resolution using
GRUB_GFXMODE. List multiple resolutions for fallback, with auto as a last resort:
GRUB_GFXMODE="1920x1080,1280x1024,1024x768,auto"
- Ensure
GRUB_GFXPAYLOAD_LINUX="keep" is set so the resolution is maintained through the boot process into the Linux kernel console (TTYs).
- Ensure
GRUB_ENABLE_BLSCFG=true (or remove the line to use the default of true) to keep using BLS snippets for kernel entries.
- Save the file and exit the editor.
- Regenerate the GRUB configuration file:
bash
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
5.Note: The exact path for the grub config file might vary slightly (e.g., for UEFI systems it might involve an EFI path), but Tumbleweed’s grub2-mkconfig typically handles this correctly based on your system’s setup.*
6. Reboot your system to see the changes.
Approach 2: Use /boot/grub2/user.cfg
If modifying /etc/default/grub does not work, you can place raw GRUB commands in /boot/grub2/user.cfg (create it if it doesn’t exist). This file is loaded by GRUB directly.
bash
sudo nano /boot/grub2/user.cfg
Add these lines to user.cfg:
grub
set terminal_output="gfxterm"
set gfxmode="1920x1080,1280x1024,1024x768,auto"
load_video
insmod gfxterm
set gfxpayload=keep
No grub2-mkconfig command is needed after editing user.cfg, just a reboot.
If you face issues, you can boot into the GRUB command line (press c when the menu appears) and use the videoinfo or vbeinfo command to see which resolutions are supported by your hardware and firmware.