ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

[linux][tf2][wayland] x64 tf2 client does not handle secondary monitor's resolution #6131

Open volca02 opened 2 months ago

volca02 commented 2 months ago

When launching TF2 on secondary display, it only lists resolutions from the first display in the settings, and does not start with the correct resolution.

Switching to Full Screen (0), Full Screen (1) or Run in a window does not change the listed resolutions.

What helps is disabling the primary display (using wdisplays for that) before running the game.

Setup: Arch Linux, Sway, amd graphics card (see HW info below)

Xrandr display setup (descriptive of the situation, although I use wayland - so first display is listed with half resolution in both dimensions, as it uses 2x scaling)

Screen 0: minimum 16 x 16, current 4000 x 1080, maximum 32767 x 32767
eDP-1 connected 1440x900+2560+180 (normal left inverted right x axis y axis) 300mm x 190mm
   1440x900     119.94*+
   1152x864     119.77  
   1024x768     119.80  
   800x600      119.85  
   640x480      119.52  
   320x240      117.34  
   1280x800     119.85  
   1152x720     119.73  
   960x600      119.74  
   928x580      119.55  
   800x500      119.47  
   768x480      119.71  
   720x480      119.65  
   640x400      119.64  
   320x200      117.55  
   1368x768     119.83  
   1280x720     119.86  
   1024x576     119.85  
   864x486      119.69  
   720x400      119.54  
   640x350      119.24  
HDMI-A-1 connected 2560x1080+0+0 (normal left inverted right x axis y axis) 800mm x 340mm
   2560x1080    119.95*+
   1440x1080    119.92  
   1400x1050    119.90  
   1280x1024    119.83  
   1280x960     119.89  
   1152x864     119.77  
   1024x768     119.80  
   800x600      119.85  
   640x480      119.52  
   320x240      117.34  
   1680x1050    119.89  
   1440x900     119.94  
   1280x800     119.85  
   1152x720     119.73  
   960x600      119.74  
   928x580      119.55  
   800x500      119.47  
   768x480      119.71  
   720x480      119.65  
   640x400      119.64  
   320x200      117.55  
   1920x1080    119.93  
   1600x900     119.95  
   1368x768     119.83  
   1280x720     119.86  
   1024x576     119.85  
   864x486      119.69  
   720x400      119.54  
   640x350      119.24  

HW report from steam:

Manufacturer: NB05
Model: R14FA1
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
CPU Family: 0x19
CPU Model: 0x74
CPU Stepping: 0x1
CPU Type: 0x0
Speed: 5137 MHz
16 logical processors
8 physical processors
Hyper-threading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Supported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
AVX2: Supported
AVX512F: Supported
AVX512PF: Unsupported
AVX512ER: Unsupported
AVX512CD: Supported
AVX512VNNI: Supported
SHA: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 6.9.8-arch1-1
X Server Vendor: The X.Org Foundation
X Server Release: 12401000
X Window Manager: wlroots wm
Steam Runtime Version: steam-runtime_0.20240610.91380
Video Card:
Driver: AMD AMD Radeon 780M (radeonsi, gfx1103_r1, LLVM 18.1.8, DRM 3.57, 6.9.8-arch1-1)
Driver Version: 4.6 (Compatibility Profile) Mesa 24.1.3-arch1.1
OpenGL Version: 4.6
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 119 Hz
VendorID: 0x1002
DeviceID: 0x15bf
Revision Not Detected
Number of Monitors: 2
Number of Logical Video Cards: 1
Primary Display Resolution: 1440 x 900
Desktop Resolution: 4000 x 1080
Primary Display Size: 11.81" x 7.48" (13.98" diag), 30.0cm x 19.0cm (35.5cm diag)
Primary VRAM: 2048 MB
Sound card:
Audio device: ATI R6xx HDMI
Memory:
RAM: 29885 Mb
VR Hardware:
VR Headset: None detected
Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Total Hard Disk Space Available: 937277 MB
Largest Free Hard Disk Block: 432665 MB
Storage:
Number of SSDs: 1
SSD sizes: 1000G
Number of HDDs: 0
Number of removable drives: 0
Tiagoquix commented 2 months ago

Duplicate of #5704?

volca02 commented 2 months ago

@Tiagoquix I don't think so. The game starts normally, but does not handle the resolution of secondary display right.