Some Bits: Nelson's log

Linux desktop gaming notes (Gamescope)

I’m finally understanding how Linux gaming works. Particularly the problem of setting display resolution and driver features. See also this CachyOS guide.

Compatibility tool

The most important Linux-specific thing is what Windows emulator Steam uses to launch your game. They call this a “compatibility tool”. I believe Proton 10 is the default these days. Valve ships other Proton versions: there’s Proton 11, Experimental, Hotfix. You can select which one Steam uses. Proton-GE is a popular third party one, by the same GloriousEggroll who puts together Nobara.

Gamescope and resolutions

The other tricky thing with Linux is the display resolution compatibility is not great. If I launch something from my normal Linux desktop most games are fixed to some bizarro resolution like 7400x4000. There’s also issues with X11 vs Wayland vs XWayland.

The solution to a lot of this is Gamescope, a graphics compositor Valve built for the SteamDeck. It makes it very easy to launch a game with a specific resolution independent of what the underlying hardware and drivers are doing. For instance you can easily launch games in 1920x1080@60 fps. They will run well and gamescope will make sure it looks good on your screen.

You can run games directly in Linux without gamescope, but the quality of that experience is highly variable. Gamescope simplifies things so that games run more reliably.

Also related: MangoHud, the overlay for monitoring FPS in games and other things. I find it annoying and intrusive but it is the preferred tool if you want to test how well a game is running. Steam also has its overlay but it can be unreliable in Linux.

Steamdeck game mode

Bazzite and Nobara both have a thing they call “deck mode”. You log in to a special SteamDeck-like session instead of a normal KDE desktop session that is for nothing but running Steam in Big Picture mode. Behind the scenes that game mode is a GUI wrapping several tools.

Games are run with gamemoderun which tweaks Linux to run an app for better game performance. It does things like change the CPU governor and kernel scheduler to make the game run smoothly. It seems to actually help.

Game mode also launches games under Gamescope. And it has a GUI built into Steam that lets you configure the resolution, etc that Gamescope presents. It’s quite nice!

ProtonPlus

ProtonPlus is a standalone GUI for downloading compatibility tools like Proton-GE. That’s its main use and is under the “Tools” tab.

But the “Games” tab has a very handy feature: a sane editor for Gamescope configurations. All this is doing is modifying Steam’s config files to set launch options; you can do the exact same thing by setting custom command lines with the Steam properties editor. But there you are typing command lines by hand, with Proton Plus you can edit them with a GUI. Just remember to exit Steam first so that it doesn’t clobber the configs that ProtonPlus sets.

I am using this all the time to enable HDR and to set a specific resolution I want the game to run at. It’s a kludge but gamescope works around some limitations of Linux gaming.

Note ProtonPlus doesn’t really help you use gamemoderun. There’s a way to enable it but no simple checkbox for it.

Other configs

gamescope for resolutions is the main thing I’ve used so far. There’s a variety of environment variables that are popular for further tweaking how things run, stuff like PROTON_ENABLE_WAYLAND=1 and PROTON_ENABLE_NVAPI=1. I don’t know much about them. ProtonPlus sets some of them if you enable Advanced mode.

Gaming on desktop

Putting it all together... the easy thing is to use the Steam Deck mode that Bazzite or Nobara offers. If all you’re doing is gaming on the computer, it’s a great choice. But me I’m mostly working on this thing and then occasionally playing a game. So I use ProtonPlus to configure Steam to launch games with the resolution and options I need.