ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
786 stars 69 forks source link

CS2 Desktop resolution not reset after quitting the game #3822

Open mildly-useful opened 2 months ago

mildly-useful commented 2 months ago

System information:

Steam Runtime System Information.

Computer Information: CPU Brand: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz Operating System Version: Freedesktop SDK 23.08 (Flatpak runtime) (64 bit) Kernel Name: Linux Kernel Version: 5.15.0-118-generic Distro: Linux Mint 21.3 Cinnamon X Server Vendor: The X.Org Foundation X Server Release: 12101004 X Window Manager: Mutter (Muffin) Steam Runtime Version: steam-runtime_0.20240610.91380 Video Card: Driver: NVIDIA Corporation NVIDIA GeForce GTX 1650/PCIe/SSE2 Driver Version: 4.6.0 NVIDIA 535.183.01 Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1080 Desktop Resolution: 1920 x 1080 Primary VRAM: 4096 MB RAM: 15919 Mb Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

If I set my fullscreen resolution to anything smaller than my desktop resolution, then, after exiting the game, the desktop is not reset back to its original resolution. I have to change it manually.

Also, side note, if I try to use the borderless fullscreen option in resolutions smaller than my native resolution, then the mouse sensitivity is just wrong (much slower). So I have to use exclusive fullscreen in order for the mouse sensitivity to be correct.

Steps for reproducing this issue:

  1. Have your main desktop resolution at 1080p.
  2. Set the game to 720p fullscreen from the game options.
  3. If you exit the game, the resolution stays at 720p.
koreanfan commented 2 months ago

Same issue with amd polaris gpu. When you launch cs2 with fullscreen mode then game set desktop resolution same as in game video settings and after closing the game desktop resolution dont revert back. Why cs2 change desktop resolution!?

audiem13 commented 2 months ago

Hey a work around for this issue is using Valve's gamescope tool I'd recommend checking that out.

https://github.com/ValveSoftware/gamescope

# Run the game at 1080p, but scale output to a fullscreen 3440×1440 pillarboxed ultrawide window
gamescope -w 1920 -h 1080 -W 3440 -H 1440 -b -- %command%
samuk10 commented 1 month ago

same on AMD GPU RX 7600 from 1280x1024 to 1920x1080