gamescale
While a game runs, gamescale sets the display to 100% so the game sees your screen’s real resolution.
How it works
A game runs at the screen’s real resolution, and your scaling comes back when it quits.
With GNOME’s fractional scaling on, an X11 game is handed a whole-number multiple of your scaled resolution. At 133% on a 2560×1600 laptop no multiple comes out at 2560×1600, so a borderless game renders too small and gets stretched, or too big and gets shrunk.
| What the game is given | Resolution | What you see |
|---|---|---|
| The screen itself | 2560×1600 | the size to aim for |
| Scaled, XWayland at 1× | 1920×1200 | stretched to fit, and soft |
| Scaled, XWayland at 2× (GNOME’s default) | 3840×2400 | 2.25× the pixels, then shrunk |
| With gamescale | 2560×1600 | the screen’s own pixels, one to one |
gamescale %command%
Scaling drops to 100% while that game runs. Text and cursor sizes go up to make up for it, and all of it is put back when the game exits.
That holds after a crash or a SIGKILL too. gamescale keeps a watchdog, a state
file on disk and a check at login for that case.
The script, its top-bar indicator, and the reconcile unit ship in the image at a
pinned tag. Flatpak Steam and Faugus run the image’s copy with no setup. Other
Flatpak launchers need a copy of their own, which
pulsar setup gamescale installs from the image.
What ships in the image
gamescale (pinned, hash-verified):
/usr/bin/gamescale, its top-bar indicator, and a unit that restores your scale if
a game crashes. Native launchers and games started from a terminal need nothing more.
Flatpak Steam and Faugus
Flatpak apps can’t see the host’s /usr.
$ flatpak run --command=sh --filesystem=/usr/bin/gamescale:ro com.valvesoftware.Steam
F: Not sharing "/usr/bin/gamescale" with sandbox: Path "/usr" is reserved by Flatpak
At every boot pulsar-steam-grants.service gives Steam and Faugus a read-only view of
the host OS and puts a directory holding only gamescale, gg and
ggm on their PATH.
The same grant lets Steam and Faugus talk to org.freedesktop.Flatpak. From inside
the sandbox, that’s how gamescale reaches mutter to change the display scale, and gamescale’s
own installer grants it too. It also lets Steam, Faugus and the games they start run commands
on the host, outside the sandbox.
If you set gamescale up for either one on an older image, run
pulsar setup gamescale --platform steam faugus once to point them back at the
image’s copies and remove old copies in ~/.local/bin that match them. Without
--platform it repoints Steam only.
Other Flatpak launchers
Heroic, Bottles and other launchers need their own copy under $HOME:
pulsar setup gamescale --platform <name>
This runs the image’s pinned installer, offline. (Upstream’s curl | sh installs
the latest instead.) It also adds gg and ggm, the
launch options.
After that your copy is the one that runs, because ~/.local/bin, the user extension
and the user unit come before the image’s. gamescale --version prints the version of
the copy that runs.
Written with help from AI and reviewed by a person before publishing. If you find a mistake, open an issue on GitHub.