Skip to content

Instantly share code, notes, and snippets.

@levihuayuzhang
Last active May 19, 2025 14:55
Show Gist options
  • Save levihuayuzhang/3f9183aee1c3f9d6942ea743eeb0ad34 to your computer and use it in GitHub Desktop.
Save levihuayuzhang/3f9183aee1c3f9d6942ea743eeb0ad34 to your computer and use it in GitHub Desktop.
gnome set fractional scaling
  1. echo $XDG_SESSION_TYPE
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
  1. for GDM:
sudo machinectl shell gdm@ /bin/bash

# wayland
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer', 'xwayland-native-scaling']"

# x11 with X11 scaling patch (https://github.com/puxplaying/mutter-x11-scaling)
gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

# check status
gsettings get org.gnome.mutter experimental-features
  1. disable all gsettings reset org.gnome.mutter experimental-features

Ref:

  1. https://gitlab.gnome.org/GNOME/gdm/-/issues/699#note_1215577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment