Terminal resolution on x86

I have a spare desktop with dietpi installed.
I have a spare 4K TV on this desktop.

I can’t change the resolution of the TV to something lower, so how can I change the resolution of the terminal locally? Is there a way to force it to run at 1080 or 720?

I’ve tried adding
to /boot/dietpi.txt

There are settings for xorg and VPN, but nothing for HDMI or terminal resolution.

You can try and adjust the resolution with dietpi-config

Hey Jappe, this does nothing on the X86.

Do you want to change really the resolution of the display or the font size of the terminal?
And I’m assuming correctly you don’t run a desktop environment, but a headless installation?

I’d prefer resolution, force 1080P. But font size might do just as well.
Yes it’s headless, though I do use need local access a couple of times a week.

In terms of a headless system, why not using SSH to connect?

I do 98% of the time, but there are times I need to use it directly.

I was able to set the resolution with a bootparameter in /etc/default/grub but when the tty loads, it gets overriden by something.
Then I found this: https://github.com/MichaIng/DietPi/issues/1227#issuecomment-368846000 and I added / changed this:
(sudo nano /etc/default/grub)


Change GRUB_GFXMODE= to your desired resolution.
then do: sudo update-grub and reboot.
It worked for me :slight_smile:

edit: Here a guide how to find out working resolutions for your TV:


Thank you Jappe, finally sorted and running at much better 1080p

1 Like