How to scale visually the content of a qube? (4K screen)

Hi,

Is there a way to scale the displayed content of a qube?

Example 1: a standalone that is fully text-based looks way too small and hard to read on a 4K screen.

Example 2: increasing the DPI setting of a Windows qube just doesn’t look right (bad UI proportions).

GRUB_CMDLINE_LINUX=“… video=1920x1080” might be proposed solution. Even lower, because it’s fully text based.

But, we don’t know which display and distro you are talking about, so this might not work, so it might be needed to specify a mode for the graphics driver like
video=eDP-1:1920x1080@60 when laptop for example

Or using setfont

I haven’t used any of these so far. I am using xrandr so I am guessing some analogies.

I used to use a program named CRU for this, and this is what I found in my notes:

EDIT: Eventually, on Windows I ended up with font size customization per app and for windows itself

I was hoping for a way to do this outside the qube.
Is that possible?

I have a 4k screen too, this command fixed everything for me:

dom0: xrandr --output eDP-1 --mode 3840x2400 --scale 0.5x0.5

My question is how to scale the windows of the particular domU only.

I knew there was a catch, since the goal was too trivial.

I have no definitive answer, but the next thing I’d try is via setting qube’s kernelopts in dom0? I use it massively to set different kernelopts for different qubes.

qvm-prefs -s text-based-qube kernelopts “video=1920x1080”

Remember to tune the command accordingly is needed.

If you meant to do something outside of the qube after it is already started, that is not possible and it would be too much to expect.

xrandr is for GUI so not applicable for text based qubes, I am almost sure. That’s why I mentioned xrandr but not proposed it.

By outside I mean scaling done by the GUIVM (dom0 in the default setup).