Dota-2 icon indicating copy to clipboard operation
Dota-2 copied to clipboard

Resolution changes with display scaling latest patch - Weyland/Arch

Open Dav3y001 opened this issue 7 months ago • 8 comments

using vulkan and linux with weyland and having display scaling set to anything other than 100% will change your ingame resolution.

i.e i have 2560x1440 240hz screen with 135% display scaling in my OS i get a maximum available resolution of 1896x1067 240hz (the game is set to this resolution by default with no way to change it to 2560x1440)

however if i set display scaling in linux back to 100% i get the full 2560x1440 240hz option in settings.

OS: cachyOS with KDE desktop CPU: AMD 5600x GPU: AMD 6900XT

Dav3y001 avatar May 24 '25 01:05 Dav3y001

I've also encountered this problem after upgrade. I have a 4k monitor with 1080p laptop. The highest resolution I can set is only 1080p even when I change the main monitor.

dragove avatar May 24 '25 10:05 dragove

looks like the latest patch has added full wayland support and this is a side effect of this. running with x11 "SDL_VIDEO_DRIVER=x11 %command%" fixes this issue completely

Dav3y001 avatar May 25 '25 06:05 Dav3y001

Can confirm back to X11 helped.

dragove avatar May 25 '25 12:05 dragove

See also https://github.com/ValveSoftware/csgo-osx-linux/issues/3887

TTimo avatar May 27 '25 16:05 TTimo

SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY=1

Use this, to disable Fractional Scaling for SDL, so it will show 1 on 1 resolution, Works for all the SDL3 titles using wayland

Syntist avatar May 28 '25 07:05 Syntist

Look like it has been fixed. No issue without any flags

Image

Image

Rozbiynk avatar Jun 16 '25 09:06 Rozbiynk

@Rozbiynk are you sure the game is running in wayland? Because valve reverted it back to x11, in order to use wayland you have to edit the dota.sh and put wayland there

Syntist avatar Jun 16 '25 10:06 Syntist

@Rozbiynk are you sure the game is running in wayland? Because valve reverted it back to x11, in order to use wayland you have to edit the dota.sh and put wayland there

Oh, probably its reason, yeah. Is there are any benefits for using wayland right now?

Rozbiynk avatar Jun 16 '25 10:06 Rozbiynk