3 ms·
PSA: there's fractional scaling for text even with Xorg, and most applications scale their UI accordingly. I like to set Gnome's full scaling to 1 and text scal
by lima 8y ago
PSA: there's fractional scaling for text even with Xorg, and most applications scale their UI accordingly. I like to set Gnome's full scaling to 1 and text scaling to 1.5.
gsettings set org.gnome.desktop.interface scaling-factor 1
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
Some applications also depend on Xft and X root window DPI.
.Xresources:
Xft.dpi: 144
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.antialias: 1
Xft.rgba: none
Xcursor.size: 48
Xcursor.theme: Adwaita
xrandr dpi (in my i3 startup config):
$ xrandr --dpi 144
I have a smaller secondary monitor. I just render it at 1.5x resolution and scale down:
$ xrandr --output DP-2-2 --scale 1.5x1.5 --pos 0x0
At least for me, the result is perfect HiDPI support (Chrome, GTK, Qt and IntelliJ respect it).
- denormalfloat 8y agoDo you happen to know by chance what scaling algorithm is used?
- lima 8y agoThe GPU does the downscaling, I think it's bicubic by default. Looks decent enough. With the latest xrandr master, you can set nearest-neighbor using "--filter nearest", which should provide better results.
- vetinari 8y agoAt least on macOS and X11/xrandr --scale, the output encoder does the scaling, not the GPU. It need less energy to do that, than spinning up the GPU, and the all GPU resources are available to the applications (scaling entire framebuffer at 60 Hz would take significant memory bandwidth from GPU at least).
- lima 8y agoThanks, I stand corrected!