Ubuntu – How to configure multiple displays with different DPI settings using xfce >= 4.14

display-resolutionhdpimultiple-monitorsxfcexubuntu

XFCE 4.14 promises HiDPI support. I'd like to use different DPI settings on my laptop screen and on the external monitor, but I can't find any new features improving this particular situation. So what does "HiDPI support" mean then? Is this for Wayland + XFCE only?

What I did before XFCE 4.14

This seems to work for < 4.14 and for >= 4.14 the same way:

Custom DPI settings in Appearance -> Fonts allows changing scaling of windows for both monitors at the same time:

screenshot

This works only for one screen unfortunately. The best I could come up with is adding this script as shortcut to toggle between different settings:

if [ $(xfconf-query -c xsettings -p /Xft/DPI) = 152 ]
then
    xfconf-query -c xsettings -p /Xft/DPI -s 96
else
    xfconf-query -c xsettings -p /Xft/DPI -s 152
fi

Many applications (Firefox, Thunderbird, …) need to be restarted after changing this setting unfortunately.

What is new but doesn't help

I think the Window scaling option is new (but I'm not sure), but it offers only 1x or 2x scaling for both screens at the same time. This is not helping in my situation.

screenshot

xrandr

Not sure if this worked too before, but it kind of does now:

xrandr --output eDP-1 --scale "0.5x0.5" 

This sets the Laptop display to a scaling factor 2. But fonts are quite blurry. This does not happen with the Custom DPI setting.

Best Answer

You could try combining 2x Windows Scaling and xrandr --output eDP-1 --scale 1.25x1.25 to get less upscaling. It might affect to graphics performance, when e.g. playing videos, though. At least you can make the setting xrandr setting for each monitor separately.

Besides, you could choose a hdpi theme in Settings Manager > Window Manager > Style to change windows' edge thickness, at least.