I am new to Fedora. Have just installed the KDE spin and am quite satisfied so far. I have an Intel+NVIDIA laptop and was having major difficulties getting it to run stable with another distribution. I researched (youtube) for a few days and decided on trying out Fedora
With Fedora I have installed the defalt KDE spin, added RPM Fusion sources and installed the NVIDIA drivers. Just works. I did reboot to fast in my first try, but quickly found the solution to rebuild kernel modules and verify the NVIDIA version before reboot. Why does this run in the background - seems quite risky
Anyway, I got it working, and so far my experience is stable and the NVIDIA card accelerates both Steam and Ollama
Now for the question: my laptop has a 3200x2000 LCD and the font used for GRUB/terminal is almost unreadable. I have tried changing the resolution in /etc/default/grub and running sudo grub2-mkconfig -o /boot/grub2/grub.cfg. But it doesn’t change anything. I tried changing the timeout and that works, so I am modifying the right file
Yes I have been there I am not trying to change the font, just the resolution - end the GRUB_GFXMODE setting mentioned does not seem to have any effect…
I have tried that - and a few others without luck. I noticed a strange thing:
When I do sudo grub2-mkconfig -o /boot/grub2/grub.cfg other parameters, e.g. timeout, does change, but I also have a grub.cfg file in /boot/efi/EFI/fedora/grub.cfg…
I tried removing the latter and then grub would not start. I had to restore it from the live iso.
So, seems I have TWO grub.cfg files involved in the boot proces? Again, this is a fresh Fedora 40 KDE spin install.
No you are not.!
That file has nothing to do with screen resolution or fonts. That only affects booting configs.
Please stop randomly altering that file as the wrong setting can totally break your system.
I use the Workstation release and not KDE so cannot assist with the details, but there should be a setting in the desktop settings panel to adjust resolution, fonts, scaling, etc.
Yes, by intent, and do not (ever) alter the one at /boot/efi/EFI/fedora/grub.cfg. In fact, since you said you already modified it, please remove it again then run dnf reinstall grub2-common so the system recreates it exactly as it should be for your system.
I am not randomly changing files, though. I want to increase the font size of the boot menu, not the KDE desktop. I have done so on many other distributions, and always in the /etc/defaults/grub file. Fedora seems different, and I am trying to figure out how/why.
This is an invalid location to modify the file! It will break future updates.
See the earlier posts on this or look at the output of ls -ld /etc/grub2* to see the ONLY grub.cfg file that should ever be user modified.
That file is system created and never should be modified, and has been since about the Fedora 34 release.
@computersavvy The files you point to are links to the generated output from grub2-mkconfig which starts with the lines:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
I have reinstalled grub2, but am not closer to a solution to the hidpi resolution issue I am facing. I’ll post here if I figure it out I suspect my hardware (NVIDIA) may be causing an issue with GRUB’s ability to set resolution.
Before writing I suggest you make sure you read and understood OPs question, which was perfectly valid and a feasible way to change resolution of the grub2 boot menu.
It’s missing the part on how to set the resolution but you should read it anyway and see how to add custom grub configs and generate the required grub.cfg file.
Fyi, the /etc/grub2.cfg is just a symbolic link to /boot/grub2/grub.cfg
Try to uncomment line GRUB_TERMINAL_OUTPUT=“console” like #GRUB_TERMINAL_OUTPUT=“console” and add lineGRUB_TERMINAL_OUTPUT=“gfxterm” in /etc/default/grub rebuild sudo grub2-mkconfig -o /etc/grub2.cfg that should change resolution of grub menu
Here’s all the info I have on this matter. Hope you’ll get it sorted out
Why it’s not working for you whereas it works perfectly for me puzzled me a little. Then I noticed your custom non standard resolution. Maybe you should stick with closest standard resolution or use the following info to set the video kernel parameter for your needs.
GRUB_GFXMODE and GRUB_GFXPAYLOAD_LINUX are two important settings in GRUB configuration that control the graphics mode and payload for Linux boot entries.
GRUB_GFXMODE specifies the graphics mode to use when booting. It can be set to a specific resolution, such as 1024x768, or to auto to automatically detect the best resolution.
GRUB_GFXPAYLOAD_LINUX specifies the graphics payload to use for Linux boot entries. It can be set to keep to keep the current graphics mode, or to a specific graphics mode, such as 1024x768.
To change the resolution at boot on the GRUB menu on Fedora, you can modify the GRUB_GFXMODE and GRUB_GFXPAYLOAD_LINUX settings in the /etc/default/grub file.
Here’s an example of how to set a specific resolution:
After modifying the /etc/default/grub file, you need to run sudo grub-mkconfig -o /boot/grub/grub.cfg to regenerate the grub.cfg file.
Q: It works perfectly when the resolution is vesa compatible such as 1024x768 or 1920x1024 but fails whenever the resolution is not standard such as 1600x1000
That’s because GRUB’s gfxmode and gfxpayload settings only work with VESA-compatible resolutions, which are a set of standard resolutions defined by the Video Electronics Standards Association (VESA).
When you set a non-standard resolution, such as 1600x1000, GRUB can’t use the VESA BIOS Extensions to set the resolution, and it will fail.
To overcome this limitation, you can use the video kernel parameter to set a custom resolution. This parameter allows you to specify a custom video mode using the following format:
video=<connection>:<xres>x<yres>-<bpp>@<refresh>
Where:
is the video connection type (e.g., eDP-1 for an internal laptop screen or HDMI-A-1 for an external HDMI monitor)
and are the horizontal and vertical resolutions, respectively
is the bits per pixel (e.g., 24 for true color)
is the refresh rate in Hz
For example, to set a resolution of 1600x1000 with 24-bit color and a 60Hz refresh rate, you can add the following kernel parameter to your GRUB menu entry:
linux /vmlinuz-linux root=/dev/mapper/volgroup0-lv_root rw cryptdevice=UUID=49bb1478-8b71-49fb-9386-cccc6a65b04c:encrypted_lvm root=/dev/volgroup0/lv_root loglevel=3 quiet video=eDP-1:1600x1000-24@60
Note that you may need to adjust the part depending on your system’s video configuration.
By using the video kernel parameter, you can set a custom resolution that’s not limited to VESA-compatible modes. However, keep in mind that this method may not work on all systems or with all graphics hardware.
BTW I’m using AMD CPU and GPU
According to the VESA BIOS Extensions (VBE) specification, the standard VESA modes are:
Notice that 1600x1000 is not a standard VESA mode. However, it is a common resolution used in many modern displays, and most modern graphics cards and BIOSes support it as a non-standard VESA mode.
As for 3200x2000, it is not a standard VESA mode either. In fact, it’s a very high resolution that’s not commonly supported by older graphics cards or BIOSes. While some modern systems may support it, it’s not a guaranteed resolution that will work on all systems.
In general, if you need to use a non-standard resolution, it’s best to use the video kernel parameter, as I mentioned earlier, to specify the custom resolution. This way, you can ensure that the resolution is set correctly, even if it’s not a standard VESA mode.
If you need to haunt this forum and answer each and every question, it’s your right. But I suggest you take the time to at least read the OP problem carefully in order to provide a valid solution, and at that you failed miserably.
Nothing personal here but why do some people are having compulsory need to answer each and every message in forums without even understanding their problem is totally beyond me. This happens in every large forum. That’s the reason why I come here in very last resort.
(and of course run sudo grub2-mkconfig -o /boot/grub2/grub.cfg afterwards)
Key is to set output to gfxterm and use a standard VESA mode. The last line does not influence the resolution at the kernel boot screen and virtual consoles, but that is secondary, I wanted the GRUB text bigger and that works now