17

I've successfully enabled fractional scaling on my GNOME 3.38 + Wayland in Arch as stated here:

https://wiki.archlinux.org/index.php/HiDPI#Wayland

However, in gnome control center it now only shows 100% 125% 150% 175% and 200% whereas for my screen the best setup would be 250% (that I can set in Windows 10 for example). How can enable values above 200% in gnome control center or either set it manually?

1
  • 3
    You can set integer values in key /org/gnome/desktop/interface/scaling-factor using dconf-editor to set 100%/200%/300% etc ratios. I reported this question in the feature page on the bug tracker. Commented Jan 11, 2021 at 23:18

3 Answers 3

0

You can use dconf-editor to do this.

  1. Launch dconf-editor app
  2. Navigate to /org/gnome/desktop/interface/
  3. Open scaling-factor and a dialog appears.
  4. You can now set integer values manually at the custom value field e.g 100%, 150%, 250%... ratios.

enter image description here

0

You can try the follow one, which works on X11. Its works by me, in booth directions. Thats mean, you can scale >=100% and <=100%.

I didn't tested on Wayland (dont have a system like this). Possible you need to use a Wayland version of xrandr or need to use a "force" mode of xrandr for use for Wayland or try wlr-randr or wl-roots or gnome-randror or write a own Wayland compatible version of xrandr.

Xrandr can write it on two different ways:

Variant1:

xrandr --output LVDS-1 --mode 1366×768 --panning 1366×768
xrandr --output LVDS-1 --mode 1366×768 --panning 1600×900
xrandr --output LVDS-1 --mode 1366×768 --panning 1920×1080
xrandr --output LVDS-1 --mode 1366×768 --panning 2048×1152
xrandr --output LVDS-1 --mode 1366×768 --panning 2560×1440

Variant2:

xrandr --output LVDS-1 --mode 1366×768 --panning 1366×768 --scale 1.0x1.0
xrandr --output LVDS-1 --mode 1366×768 --panning 1600×900 --scale 1.171303075x1.171875
xrandr --output LVDS-1 --mode 1366×768 --panning 1920×1080 --scale 1.40556369x1.40556369
xrandr --output LVDS-1 --mode 1366×768 --panning 2048×1152 --scale 1.499267936x1.5
xrandr --output LVDS-1 --mode 1366×768 --panning 2560×1440 --scale 1.874084919x1.875

Replace the "LVDS-1" by your monitor. Replace the XXX in "mode XXX×XXX --panning XXX×XXX" by your wanted resolution.

You can get the name of your monitor by:

xrandr | grep " connected"

You can get the by your grafik supported resolutions by:

xrandr

See follow untested sample for Wayland (I don't have a PC which use Wayland):

wlr-randr --output HDMI-A-1 --mode 1920x1080@60Hz --scale 1
2
  • The question is specifically about Wayland, this won‘t work there. Commented May 25 at 15:51
  • Possible you need to use a Wayland version of xrandr or need to use a "force" mode of xrandr for use for Wayland or try wlr-randr or wl-roots or gnome-randror or write a own Wayland compatible version of xrandr.
    – user611494
    Commented May 25 at 18:33
-4

You can use the gsettings command to modify the scaling-factor setting in the org.gnome.desktop.interface schema.

# Set the scaling factor to 2.5 (250%)
gsettings set org.gnome.desktop.interface scaling-factor 2.5

If you want to set the scaling factor for all users, you can use the dconf command instead of gsettings. For example:

# Set the scaling factor to 2.5 (250%) for all users
dconf write /org/gnome/desktop/interface/scaling-factor 2.5

Note that you may need to log out and log back in for the changes to take effect.

Alternatively, you can use the xrandr command to set the scaling factor manually. For example:

# Set the scaling factor to 2.5 (250%) for the eDP1 display
xrandr --output eDP1 --scale 2.5x2.5
2
  • 4
    dconf and gsettings write to the same database. dconf doesn't magically affect all users. Is this answer generated from ChatGPT or something?
    – muru
    Commented Dec 19, 2022 at 1:19
  • xrandr with --scale > 1 means app render in resolution smaller than monitor, then GPU does pixel doubling, would look horrible, especially text. (You can get similar effect by setting monitor to low resolution.) The right way to do scaling is tweak Gnome's idea of GUI element sizes and/or text size while still rendering at full resolution. Commented Apr 17 at 8:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .