How to enable HiDPI score scaling for Wayland or X11 on Ubuntu 19.04 Disco Dingo

As we all know, GNOME 3.32 includes experimental HiDPI score scaling for Wayland, but you may not realize that thanks to Marco Trevisan, fraction scaling is also available in X11 sessions on Ubuntu 19.04 Disco Dingo. This article explains how to use Wayland and X11 (default) sessions to enable fractional scaling on Ubuntu 19.04 with GNOME 3.32.
So what is this faction scaling? The default GNOME zoom scale only allows integer zooming of the user interface (eg 100%, 200%), which is not applicable to every HiDPI monitor; this is the place for fractional zooming, which allows fractional zooming, so users can set the zoom A percentage, such as 125% or 150%. To enable experimental score scaling on Wayland (requires GNOME 3.32+), use the following command:

gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

To enable experimental score scaling on X11 (requires Ubuntu 19.04 Disco Dingo) (the default Ubuntu session), use:

gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

In both Wayland and X11 cases, fractional scaling should be used Settings, go with Devices -> Displays Then you can set the fraction ratio (for example, 125% or 150%) in it:

It is worth noting that using fractional scaling on X11 will increase CPU and GPU usage. Currently the only solution is to use Wayland sessions instead.
Do you want to reset this setting and disable fractional scaling? In both Wayland and X11 cases, it can be reset using:

gsettings reset org.gnome.mutter experimental-features

source: Treviño’s blog with discourse.ubuntu.com

Source

Sidebar