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
framebuffer_width=1280
framebuffer_height=720
to /boot/dietpi.txt

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

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)

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=keep

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:
https://feitam.es/how-to-change-display-resolution-in-tty-console/

3 Likes

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

1 Like