Nonuniform scaling in kwin/wayland, or adding custom monitor modes

my main issue is I want to play counter strike stretched. I have a 5120x1440@165 monitor so it needs to be windowed mode

I’m using arch + plasma on optimus laptop

in windows:
it recognized a 3440x1440@165 monitor mode in the edid
in x11:
xrandr --output “$output” --scale .7x1 (non uniform scaling)
linux mint also detected more monitor modes I think
in plasma:
3440x1440@165 not detected. Does see 3440x1440@60 and 5120x1440@165.

non-uniform scaling is a good feature request for kwin, because I suspect it’s easy to implement poorly and would solve a lot of problems for other people as well, something like:
kscreen-doctor output.DP-2.scaleX.7
or
kscreen-doctor output.DP-2.scale.7,1

things I’ve tried:
gamescope
nvidia-settings (this works but only in mux mode, sometimes the refresh rate goes to 60, x11 config stuff is tricky and slow to debug)
adding monitor modes via cvt 3440 1440 165 then adding the output to a config

I haven’t proven that none of those 3 ideas can’t work

edit: adopted kscreen-doctor mode convention

Hi! Just to let you know, there is active work on this topic - see this feature request that’s directly stated in the terms you’re talking about: 481584 – Allow stretched scaling (horizontal ratio ≠ vertical ratio) on Wayland

…and then what that report has been merged into, which would ultimately enable several related things: 481222 – Support proper output mirroring

1 Like