# Correcting Screen Resolution on Minimal 9.4

**URL:** <https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [July 22, 2024, 10:27pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148 "2024-07-22T22:27:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZackGrill](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@ZackGrill](https://forums.rockylinux.org/u/ZackGrill)\
**Post date:** [July 22, 2024, 10:27pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/1 "2024-07-22T22:27:21Z")

</div>

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.

Any info would be helpful.

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [July 22, 2024, 11:50pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/2 "2024-07-22T23:50:13Z")

</div>

I use this on the kernel command line:

```auto
GRUB_CMDLINE_LINUX="vconsole.font=ter-v32n"

```

You will have to install the terminus fonts.

Since Redhat and derivatives use BLS you need to update grub thus:

```auto
grub2-mkconfig -o /boot/grub2/grub.cfg --update-bls-cmdline

```

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.

---

<div class="post-metadata">

**Author:** ![ZackGrill](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@ZackGrill](https://forums.rockylinux.org/u/ZackGrill)\
**Post date:** [July 25, 2024, 9:13pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/3 "2024-07-25T21:13:10Z")

</div>

I should probably know this, but how do you install the terminus fonts? What are the steps required? I’ve never needed to install a font before.

I’m assuming that is not a simple yum update.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [July 26, 2024, 5:58pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/4 "2024-07-26T17:58:50Z")

</div>

You could try something like

`dnf --enablerepo "epel" install terminus-fonts`

---

<div class="post-metadata">

**Author:** ![ZackGrill](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@ZackGrill](https://forums.rockylinux.org/u/ZackGrill)\
**Post date:** [August 1, 2024, 8:50pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/5 "2024-08-01T20:50:03Z")

</div>

I get:

**Error: Unknown repo: ‘epel’**

So I did:

**yum update && yum install epel-release**

Then the dnf command worked:

**dnf --enablerepo “epel” install terminus-fonts**

However, I still have the same problem after adding the font and command to grub.

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [August 2, 2024, 11:57am UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/6 "2024-08-02T11:57:19Z")

</div>

Did you check the current kernel entry in /boot/loader/entries to see if the “options” contains the font parameter?

```auto
options root=UUID=9a7a5a59-d7d7-43bd-9f85-e6003cbd1d35 ro vconsole.font=ter-v32n

```

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.

---

<div class="post-metadata">

**Author:** ![ZackGrill](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@ZackGrill](https://forums.rockylinux.org/u/ZackGrill)\
**Post date:** [August 9, 2024, 5:47pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/7 "2024-08-09T17:47:26Z")

</div>

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.

This link helped explain:  
[How to set font and change font size on Linux Console (computernetworkingnotes.com)](https://www.computernetworkingnotes.com/linux-tutorials/how-to-set-font-and-change-font-size-on-linux-console.html)

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [August 9, 2024, 9:19pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/8 "2024-08-09T21:19:08Z")

</div>

Glad you found a solution. I’ve used setfont in the past to do as you did but I couldn’t remember for what or what distro.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 8, 2024, 9:19pm UTC](https://forums.rockylinux.org/t/correcting-screen-resolution-on-minimal-9-4/15148/9 "2024-10-08T21:19:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
