New to Rocky Linux, long time CentOS 7 user, however I’m not super well versed in Linux as a whole - I have very application specific knowledge. I didn’t see a solution to this topic before posting.
Need help changing display resolution for a minimal Rocky 9.4 install.
Have already tried editing the Grub file as we did with CentOS 7:
GRUB_CMDLINE_LINUX_DEFAULT=“video=640x480”
GRUB_GFXMODE=640x480
GRUB_GFXPAYLOAD_LINUX=keep
Then used this command to make the changes effective:
grub2-mkconfig -o /boot/grub2/grub.cfg
This worked to change the screen sizing/resolution on minimal installs of CentOS 7.
However, this appears to only correct the display during the initial boot up and grub menu for Rocky. As Rocky continues to boot, it switches to a much higher resolution after the grub menu - mid boot. This effectively “shrinks” our application software to about 1/6th of the screen.
Extra info about the install and requirements:
We use a virtual machine of Rocket D3 which is a multivalue database product designed to run on both CentOS and Rocky Linux.
The end user never “uses” the Linux desktop or applications; we create a Linux login that auto-starts our application software inside of the D3 database.
We rarely need access to the “main console” of the server; however, it is necessary for certain functions of our database management system.
All of the other PCs on the network use Accuterm (a terminal emulator) to access the server and D3 database applications. Accuterm has automated screen sizing, so it becomes a non-issue for most of the network.
We use a minimal install for simplicity, security, and to keep the end user from “playing” with the Linux server settings.
Basic setup: UEFI install, HDMI port for video, on board graphics from a 12th gen i5, Asus MoBo.
To update your kernel parameters in the /boot/loader/entries/<machineid><kernel-version>
files. This may be why your initial kernel parameter did not persist as it did not get added to the option line in these files.
There is also the file /etc/vconsole.conf that can be used to modify fonts. I have not edited this file myself, it currently has the default settings. You can read the man page “vconsole.conf” see if manipulating fonts there can get you a larger text.
Editing the /etc/vconsole.conf file appears to be the solution. That’s the first thing that appears to make a difference. Now my only problem is finding a font that is big enough to fill the whole screen that still looks decent with our application.
I used “ls /usr/lib/kbd/consolefonts/” in order to find the list of available fonts on the system.
Then added the font I wanted to use inside of the “/etc/vconsole.conf” file.
Also, using the “setfont” command helped pick from the fonts temporarily.