-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can no longer run cs2 under wayland with the latest update 4/10/2023 #3402
Comments
i was playing just before under wayland then after the newest update i can longer launch it under wayland, x11 works fine |
I have the same issues aswell. Just went from wayland to x11 and it works. I was playing on wayland right before the update |
Same for me. Didn't try on X11, but I was playing fine, stopped the game, installed the update, and it doesn't work anymore. All I see is
EDIT: I do have |
I believe this is the real problem:
|
Same, running on up-to-date arch system using Hyprland (wayland compositor), havent tried in X11. get this error |
same for me, updated the game, and then it's gone |
Same in Wayland GNOME, Fedora 37 |
Segfault occurs for both dota2 and cs2, so it's probably an engine update that broke things. |
found a temp fix, unsetting the |
right. That works. Odd that |
yep now it works, thank you. my launch command at the moment is this love the linux community |
SDL_VIDEODRIVER is the old variable, SDL_VIDEO_DRIVER=x11 works |
At least they're trying 😂 |
Also had this issue and the fix above works. |
SDL3 defaults to wayland unless the application requests otherwise |
@pollux56 Edit in the temporary workaround Valve probably accidentally enabled Wayland on the SDL build and the game won't start anymore since it doesn't have proper Wayland support. |
Is the SDL_VIDEO_DRIVER=x11 a fix for running it under Wayland as well or is it for x11? |
Yes
Only one of either envar's are required. The first one preferably. |
@kisak-valve, can we get a beta branch for CS2 and DOTA 2? We are having pushes every day to both lately, earlier we had another SDL bug with audio and now with video. I would absolutely use the beta and report in the appropriate channels when a problem arises, but having this on the stable releases is just frustrating. |
That sounds right, I compiled SDL3 with Wayland support & replaced it the other day and got the same exact error. |
Agreed it is kinda frustrating how they push updates without doing much testing(not saying they don't because they do a decent amount of testing) I think everyone here would gladly use a beta branch and report bugs for valve |
Funnily enough, this is actually a bug in the steam runtime, not cs2 itself. The steam runtime doesn't ship its own version of zenity, on most systems the zenity that is shipped is too new for the libraries that the runtime uses |
for flathub steam, disabling wayland socket using flatseal works too |
with the fix, the segfault moved to |
It solves the immediate problem, though IMO either run_zenity() should fail, or fgets() should succeed. Edit: ok, I see it in strace, zenity fails with exit_code=127 if it doesn't have access to some libs, which are not there in the pressure-vessel namespace of steamrt. And
|
I just updated the game, and it is working on wayland again. |
Yep same here |
I shall close this if no one else has similar issues |
Can verify that it works again. Can also confirm that |
So with this new update we don't have to specify X11 as video driver anymore as cs2 is using (prefering) X11 over wayland. Ref: https://www.counter-strike.net/news/updates |
More likely 'ignoring' wayland :). With
it doesn't work. We need something like |
so cs2 is still running in x11 under wayland we just dont have to use the launch command anymore? |
Before this update I was able to run 4:3 ratio with 144hz now with X11 it only supports up to 75hz :/ |
Yup, it forces x11 in cs2.sh
|
guess its just temporary for now |
I'd still close this issue, as it's about being unable to run cs2, which is now fixed, and open another one for native Wayland support. |
This was an issue with the libsdl2 library CS:GO shipped. It was fixed with the git version of libsdl2 (provided in official releases since). You just had to preload the libsdl2 git version, and 8KHz would run perfect. You can read more about it here. Before the libsdl2 update, I would just use
Why was this disliked? It was a snippet directly from cs2.sh, which I'd assume would take priority over envvars in the launch options, meaning The comment I'm replying to is completely correct. |
FYI ... CS2 uses SDL3 not SDL2. The raw input stuff you are talking about likely doesn't apply, since it has probably been long fixed |
FYI ... I was replying to someone talking about CS:GO, even said "CS:GO" in my comment, and linked to a git issue for CS:GO. |
SDL3? Really? How do you know? Btw is it still possible to run it natively with Wayland? Can someone guide me? |
My system: Ubuntu 20.04 & Quadro T1000 Mobile Card. I had an issue where the shaders did not work properly so the game was all bright and white: I solved this by installing: https://developer.nvidia.com/vulkan-driver and to install it I needed to disable Nouveau: https://docs.nvidia.com/ai-enterprise/deployment-guide-vmware/0.1.0/nouveau.html Then I added WARNING: Because the VCard I have is not really used for gaming, the fan went off like crazy. I believe that it is recommended to have at least 6GB VRAM but in my case I had 4VRAM. |
I don't think so - I tried compiling my own SDL3, enabling all relevant options, but it still doesn't work. I suspect that either a). support for wayland in SDL3 is not yet fully complete |
Can it be removed manually or will anticheat ban me? |
Unlikely ban - bans are rather for known bad behavior (based on analysis of loaded libraries and such). But it simply doesn't seem to work (vulkan surface creation problems) - I didn't play with it much but it's not as easy as with CSGO where it was possible to LD_PRELOAD sth. |
Your system information
Steam
->Help
->System Information
) in a gist:Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.
Steps for reproducing this issue:
For Wayland to work use this environment variable
SDL_VIDEO_DRIVER=x11 %command%
Or this one aswell
WAYLAND_DISPLAY= %command%
This will force sdl into thinking that cs2 or dota 2 is in x11
If you're using flatpak steam just disable Wayland socket in flatseal
The text was updated successfully, but these errors were encountered: