No option for changing resolution on Native PC (x86_64)

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=7
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
bookworm
  • Kernel version | uname --all
Linux ThinPi-01 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
  • Architecture | dpkg --print-architecture
amd64
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
Native PC (x86_64)
  • Power supply used | (EG: 5V 1A RAVpower)
Whatever an Intel NUC uses...
  • SD card used | (EG: SanDisk ultra)
Internal M.2 SSD

There is no option present in dietpi-config to adjust the resolution.

image

Using the open-source VA-API GPU drivers

image

This is intended, when you run on HW_MODEL 21 (which is x86_64) you get the driver menu instead of the resolution menu, see
https://github.com/MichaIng/DietPi/blob/5f69eebea01ce277d48333ffa21b844d5a068c3b/dietpi/dietpi-config#L118

here is an older thread with a similiar problem and a solution
https://dietpi.com/forum/t/terminal-resolution-on-x86/13828/7

1 Like

Ah. I didn’t bother to open that thread up when I was searching the forum because of the word “terminal”. Thanks!

Reading through the comments of the thread you linked…I now get the feeling that this will only adjust the console/terminal resolution. The client that I have DietPi installed on runs a window manager (openbox). Will this also adjust the resolution for that?

Only open box and no desktop environment?

Correct. Openbox and LXDE are installed, but only Openbox is used.

I installed LXDE because an app that I was using had some broken icons/GUI elements. Installing LXDE seemed to fix that for some reason.

I think you need to use xrandr then.
Check with this command what outputs are available and which resolutions.
You can set then one with e.g.: xrandr --output HDMI-1 --mode 1024x768.

To make this apply on boot you can add this to the autostart of openbox:
https://openbox.org/help/Autostart

1 Like

This is what I needed to do. Thanks!

This might be a helpful tip for future readers…If you can’t be arsed to shuffle on over to the physical location of the DietPi device, you can still check the resolution of the attached displays remotely via SSH. Just set the DISPLAY environment variable and then run xrandr --query.

export DISPLAY=:0 # The main display is usually 0
xrandr --query
1 Like