Cannot change resolution in Games

Hi everyone,

I am using KDE Plasma and Wayland with my AMD RX 6700 XT. My problem is that I cannot change the resolution in games. My monitor is 2560x1440. A great resolution for media consumption and any kind of productive tasks, but too much for my GPU when gaming. So i usually drop the pixelcount to FHD in the game settings.

My main games are CS2 and X4. In CS2, when going to FHD, the image is rendered at 1920x1080, but the resolution of the monitor does not change. So I get thick black bars to the right and bottom of the image, and the mouse clicks do not land where they should (some kind of strange mapping of the curser position from the 2K screen to the FHD image). In X4, the game outright does not change the resolution at all.

Currently, I use bash scripts that call kscreen-doctor with the desired settings. That works, is faster then changing the settings via the right click menu, but is somewhat cumbersome. Any chance to get the ingame resolution settings to work properly?

And, if you do not mind a short off topic question, can anyone point me in the right direction of how I could cap the framerate in games? I do not really need 100+ FPS in X4 when there is nothing going on on the screen…

Can you check if the resolution change works in the X11 version of Plasma? This may be a Wayland compositor issue.

A common way to do that these days is to run the game under Gamescope - a Wayland compositor from Valve software that is meant to control the display for gaming purposes. It also allows you to force specific display resolutions. You did not specify which operating system you installed, but here is the Arch wiki article about Gamescope which may help you get started.

1 Like

Hi, thanks for the reply! I do not have Xorg installed. If full screen apps cannot (yet) change the screen resolution under Kwin/Wayland, and the solution would be to install Xorg, I will be happy to live with my kscreen-doctor workaround :wink:

If I find the time (full time job + father of three…), I am installing my OS (it’s Arch BTW - sorry, you asked for it :joy:) in a VM and see how things are going there, then I would also be able to play around with Xorg.

Also thanks for showing me gamescope! Tried it, breaks VRR (also from console without being logged in to KDE), so currently a no-go. But I am definetely keeping an eye on that piece of software!

Again thank you for your help, have a wonderful day!

:face_exhaling::person_facepalming:… :smirk:

The ability of a display manager to change resolution of a VM “screen” doesn’t translate well to a physical screen - just take that under consideration.

BTW I tried CS2 on Plasma Wayland on my Neon installation on an Optimus laptop - both on IGD and GPU - running through Steam, and while I don’t think it uses Gamescope (though I may be wrong about that) I got a different behaviour than what you describe - when reducing the resolution it indeed does not change the screen resolution (which I believe is a Wayland protocol limitation) it still kept the image at full screen and was doing some kind of weird “render at low res than upscale with a non-linear scaler” it may have been running FSR or something. I’m not sure what effect it has on performance as I didn’t do serious testing due to lack of time (still coming to grips with raising my first kid :sweat_smile:).