Skip to content
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

[TF2] 32:9 Arch Linux Weird Screen Issue #5203

Closed
taulantxhakli opened this issue Sep 23, 2023 · 11 comments
Closed

[TF2] 32:9 Arch Linux Weird Screen Issue #5203

taulantxhakli opened this issue Sep 23, 2023 · 11 comments

Comments

@taulantxhakli
Copy link

I have been trying for days to figure out the issue behind this, but here I am.
To start, in case anyone would like to ask, here is my system's hardware:

Distro:Arch Linux
Kernel:6.5.3-arch1-1
RAM:32 GB
GPU Driver:NVIDIA 535.104.05
GPU:NVIDIA GeForce RTX 3070 Ti
CPU:AMD Ryzen 5 5600X 6-Core

When playing on Windows 11/10, I never had an issue with TF2, everything ran right out of the box. When I first installed Arch, it actually worked the first launch I had. For some reason, when I launched it again the next day, I got this weird graphical/resolution glitch that no one I have talked to seems to know how to fix:
GetImage

This has also happened in L4D2 and HL2. Though, when changing to Vulkan through the launch options, it runs normal and graphically better.

I reinstalled arch a second time to make sure it was not something I had done but still this issue persists. Am I just not understanding what happened or was there an update to Nvidia (or something pertaining to what the game uses) that would cause this?

Other games that I play, such as RDR2 or Quake II, all run fantastic on Arch, with all of the games set on Vulkan API.

Any help would be appreciated. I have a crippling addiction to TF2 (slightly jokingly, of course).

@taulantxhakli
Copy link
Author

Just to add to this, I finally found someone else with the same issue that was not able to resolve this:
https://www.reddit.com/r/linux_gaming/comments/gpvsit/stretched_images_in_source_games_at_native/

As I said on Windows 10/11 everything worked fine, but Valve native games cause this really odd effect. Hope someone can point me in the right direction.

@taulantxhakli
Copy link
Author

Another user I found on GitHub with the same issue:
ValveSoftware/csgo-osx-linux#2429 (comment)

@taulantxhakli taulantxhakli changed the title TF2 32:9 Arch Linux Weird Screen Issue [TF2] 32:9 Arch Linux Weird Screen Issue Sep 24, 2023
@taulantxhakli
Copy link
Author

Great news, I found the culprit to one of the issues, the second view on the top left. It was that dastardly HDR being enabled.
Here is an image with HDR on:
hdr-on

This is with HDR off:
hdr-off

The issue that is still persisting in some servers, such as this one that runs 2Fort is the zoom in view. Also, for some strange reason, I cannot take a screenshot or look at the steam overlay or else it will cause the game to crash.

@Torston420
Copy link

Not sure why HDR is acting like that, but if the zoom only happens on some servers then my first guess is 'sv_restrict_aspect_ratio_fov'
Could you try setting it to 0 & 1 in a local game and report back?
You could also try using exclusive fullscreen and seeing if setting it to 2 behaves differently than 1.

@taulantxhakli
Copy link
Author

You could also try using exclusive fullscreen and seeing if setting it to 2 behaves differently than 1.

Just for the record, I mentioned that I cannot take screenshots using Steam because it crashes the game, which is why I have it in windowed mode so I can screenshot it. As for the 'sv_restrict_aspect_ratio_fov', I will try that and get back to you.

@taulantxhakli
Copy link
Author

Not sure why HDR is acting like that, but if the zoom only happens on some servers then my first guess is 'sv_restrict_aspect_ratio_fov' Could you try setting it to 0 & 1 in a local game and report back?

Changing between 0 & 1 does nothing in a local game.

@meltwaterpulse1b
Copy link

The same thing happens to me. I wrote on the steam discussions page but I guess its abandoned.
I just took the maps out of my queue and leave when I get put into the maps.
Linux mint, samsung g9 ultrawide 32:9

Do you also get this bug?
https://steamcommunity.com/app/440/discussions/0/3768987637135757603/

@taulantxhakli
Copy link
Author

Do you also get this bug? https://steamcommunity.com/app/440/discussions/0/3768987637135757603/

Yeah that happens to me sometimes when I play on regular Casual servers too. Though that is a TF2 issue primarily, as I had that on Windows 10/11 as well.

@darksabrefr
Copy link

darksabrefr commented Jan 6, 2024

I get the ultrawide fov problem too and I have a different configuration. I'm under Ubuntu 23.10 and have an Asus RoG 32:9 screen in 5120x1440 resolution, coupled with a GeForce RTX 4070 Ti graphic card (with nvidia proprietary drivers v545).
The fov problem only occurs in precise maps, like Banana Bay or 2Fort, and never on some others, like Gold Rush or Badwater Basin. Some maps may partially present the problem if they have multiple zones, Hightower version Halloween event for example: the first part of the map is running fine, but the second one, in Hell shows the bug.
But even for maps where 32:9 is usable, the render is over-pixelized compared to other Source games, even more since the -vulkan switch is available for most of them, except TF2. I simply think the linux native version of the game cannot handle correctly these high resolutions and the fact that we can launch the game at these ones in fullscreen only, is a clue. In fact, when I see the behavior of the game in fullscreen mode, I think it cannot renders images at an higher horizontal resolution of 1920 pixels, and is stuck to the native vertical resolution (1440 for me) because this is the precise resolution that the game sets when I select the 1920x1080 (my screen can handle 16:9 ratio too, it's my personal workaround to play on incompatible maps): 1920x1440, a 4:3 resolution that nobody ever used ! And as a consequence, the image in slightly stretched (a 4:3 image rendered with by screen in 16:9).

For the small duplicated image in the the top left corner bug, I fixed it like other people: by disabling HDR. The same bug (but with a different visual) in presents in Portal 2 or L4D2 and can be fixed by lowering some visual options in game (I suppose that at some point it disables HDR effects, but that's not explicit in these games) or by using the -vulkan switch (the better option).

It's very sad that the Valve "flagship" Linux game that should be TF2, is, in fact, the less compatible with Linux systems. It's even more frustrating when you know that the Windows version used through Proton doesn't present these problems... but cannot be used to play online !

@darksabrefr
Copy link

darksabrefr commented Jan 6, 2024

I have more data about these bugs (pixelization one, HDR one and fov one, the last in fact, is a render issue, not a fov problem. And I have other graphical bugs that I've not mentioned above), they are related to a probable hard limit of width to 4096 pixels in the steam linux runtime, the thing that runs Source games in Linux, in OpenGL mode. I can't test above 1440 pixels for height, but I suppose the same limitation exists.
Starting the game with these params, and all pre-cited bugs will be vanished: -w 4096 -h 1440 -window -noborder
To see all these bugs in action, simply set a value greater than 4096, like -w 4097 -h 1440 -window -noborder
I hope this is sufficiently precise to get at least a response from the Valve team!

@taulantxhakli
Copy link
Author

Issue resolved as of the latest TF2 update (x64 bit and -vulkan launch option).
It runs exactly as intended and even better performance. My dreams have finally been realized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants