Proton games frozen when they have focus

All the proton games I try to run display a few frames, then appear to be frozen. This includes old games marked as platinum on proton db like Nier Automata.

If I alt-tab to another app, the game in the background unfreezes and seems to run normally. If I focus back to the game, it freezes again and ultimately becomes completely unresponsive.

1 Like

Here is some context:

  • I use proprietary nvidia drivers with a RTX 2080

Things I tried to resolve the issue:

  • Tried to run games from a new user account to rule out any configuration issue in my home
  • Tried all proton versions

Hello flupke, please post your system if you need help:

inxi --admin --verbosity=5 --filter --no-host --width

Also errors outputs:

systemctl --failed

journalctl -p 3 -xb

Also check for native Linux games, if they are freezing too or not.

1 Like

Hello Kobold, thanks for you help.

All native games run fine, and there is nothing relevant in systemctl or journalctl.

inxi --admin --verbosity=5 --filter --no-host --width

System:
  Kernel: 6.1.92-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=a514a2b0-d4ef-429c-bf79-2d9d714ba982 rw quiet
    cryptdevice=UUID=11ebe887-a587-4328-a9b1-edf8e8977154:luks-11ebe887-a587-4328-a9b1-edf8e8977154
    root=/dev/mapper/luks-11ebe887-a587-4328-a9b1-edf8e8977154 apparmor=1
    security=apparmor
    resume=/dev/mapper/luks-3e7888b9-de0a-4ee3-bf5f-81ccf8cd8533
    udev.log_priority=3
  Desktop: i3 v: 4.23 with: i3bar tools: xss-lock avail: i3lock,xautolock
    vt: 7 dm: 1: GDM v: 46.0 note: stopped 2: LightDM v: 1.32.0 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: X570 AORUS ELITE v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X570 AORUS ELITE v: x.x serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: F35
    date: 07/08/2021
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Ergo Multi-Device Trackball
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  System RAM: total: 64 GiB available: 62.74 GiB used: 13.93 GiB (22.2%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 128 GiB slots: 4 modules: 4 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: Channel-A DIMM 0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 2133 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C16-16GVK serial: N/A
  Device-2: Channel-A DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 2133 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C15-16GVK serial: N/A
  Device-3: Channel-B DIMM 0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 2133 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C16-16GVK serial: N/A
  Device-4: Channel-B DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 2133 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3200C15-16GVK serial: N/A
CPU:
  Info: model: AMD Ryzen 9 5950X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 8 MiB desc: 16x512 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 2640 high: 3992 min/max: 2200/5083 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 3400
    3: 3400 4: 2200 5: 2885 6: 3170 7: 3343 8: 2878 9: 3596 10: 2200 11: 2822
    12: 2200 13: 2847 14: 2879 15: 2200 16: 2879 17: 3992 18: 3636 19: 2200
    20: 2200 21: 2200 22: 2200 23: 2200 24: 2200 25: 2503 26: 2200 27: 2878
    28: 2200 29: 2200 30: 2200 31: 2200 32: 2200 bogomips: 217673
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080 Rev. A] vendor: eVga.com.
    driver: nvidia v: 550.78 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-04; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 09:00.0 chip-ID: 10de:1e87 class-ID: 0300
  Device-2: Elgato Systems GmbH Cam Link 4K
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 3.0
    speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 8-1:2 chip-ID: 0fd9:0066
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.0 driver: X:
    loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.70x13.43")
    s-diag: 692mm (27.24")
  Monitor-1: DP-4 res: 3840x2160 dpi: 163 size: 600x340mm (23.62x13.39")
    diag: 690mm (27.15") modes: N/A
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: kms_swrast surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 2080/PCIe/SSE2
    memory: 7.81 GiB
  API: Vulkan v: 1.3.279 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce RTX 2080 driver: nvidia v: 550.78 device-ID: 10de:1e87
    surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA TU104 HD Audio vendor: eVga.com. driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 09:00.1
    chip-ID: 10de:10f8 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech Blue Microphones
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 1-1:2 chip-ID: 046d:0ab7 class-ID: 0300
    serial: <filter>
  Device-4: Audient iD22 driver: snd-usb-audio type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.3:7 chip-ID: 2708:0001
    class-ID: fe01
  Device-5: Elgato Systems GmbH Cam Link 4K
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 3.0
    speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 8-1:2 chip-ID: 0fd9:0066
    class-ID: 0102 serial: <filter>
  API: ALSA v: k6.1.92-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol,pulsemixer
Network:
  Device-1: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br-0c3841ca9851 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-2cebdbe8db1d state: down mac: <filter>
  IF-ID-3: br-57aa4ae71b35 state: down mac: <filter>
  IF-ID-4: br-77dd6dd853bf state: down mac: <filter>
  IF-ID-5: br-bf08237c468b state: down mac: <filter>
  IF-ID-6: docker0 state: down mac: <filter>
  IF-ID-7: vetha131cb7 state: up speed: 10000 Mbps duplex: full mac: <filter>
  Info: services: mld, NetworkManager, smbd, systemd-timesyncd
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 7-4.2:4 chip-ID: 0bda:8771
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 14.1 TiB used: 8.87 TiB (62.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3B2QGXA7 temp: 44.9 C
    scheme: MBR
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3B2QGXA7 temp: 51.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B6Q scheme: MBR
  ID-4: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 4B6Q scheme: GPT
  ID-5: /dev/sdc maj-min: 8:32 vendor: Seagate model: Expansion HDD
    size: 10.91 TiB block-size: physical: 4096 B logical: 512 B type: USB
    rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
    fw-rev: 1801 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 896.8 GiB size: 881.65 GiB (98.31%)
    used: 454.01 GiB (51.5%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-11ebe887-a587-4328-a9b1-edf8e8977154 label: N/A
    uuid: a514a2b0-d4ef-429c-bf79-2d9d714ba982
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 25.8 MiB (8.6%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:3 label: N/A
    uuid: BFBD-CCE8
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 34.42 GiB used: 2.53 GiB (7.4%)
    priority: -2 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-3e7888b9-de0a-4ee3-bf5f-81ccf8cd8533 label: swap
    uuid: 669b99c5-8d42-489a-9c19-1f0138078872
Sensors:
  System Temperatures: cpu: 52.1 C mobo: 37.0 C gpu: nvidia temp: 50 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Processes: 755 Power: uptime: 4d 13h 58m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 25.09 GiB services: upowerd
    Init: systemd v: 255 default: graphical tool: systemctl
  Packages: pm: nix-default pkgs: 0 pm: nix-sys pkgs: 0 pm: nix-usr pkgs: 0
    pm: pacman pkgs: 2274 libs: 527 tools: pamac,yay Compilers: clang: 17.0.6
    gcc: 14.1.1 Shell: Zsh v: 5.9 running-in: tmux: inxi: 3.3.34

You using i3 DE on X11? Im only using KDE and its hard to compare for me our both Inxi. Sry but im not sure about the other configurations.

  1. You are using nvidia Proprietary drivers?
  2. You have the steam games installed on a ext4 partition?
  3. You have Proton activated in Steam? And did you try different Proton Version? Like Proton 9 or Experimental?
  4. You could also try another LTS Kernel like 6.6

Maybe my Steam Linux Guide can help you, which includes few FAQ around Linux Gaming:

1 Like

Yes, I’m using i3 on X11. Also tried gnome in a new user account and the issue is the same.

To answer your questions:

  1. Yes I use proprietary nvidia drivers
  2. Yes, ext4
  3. Yes, I only have issues with Proton games, and with all proton versions including GE or experimental; if the proton version is too old the game does not crash, and if it is recent enough it starts and freezes on the first frame
  4. Just tried to switch to kernel 6.6, same

Might be worth trying gamescope (it’s in Manjaro repositories).

Because the game is running in its own personal Xwayland sandbox desktop, it can’t interfere with your desktop and your desktop can’t interfere with it.

Instructions - GitHub - ValveSoftware/gamescope: SteamOS session compositing window manager

Note the part that says

For NVIDIA’s proprietary driver, version 515.43.04+ is required (make sure the nvidia-drm.modeset=1 kernel parameter is set).

You haven’t said if using Steam, Lutris, or what. For Steam the Launch Options;

gamescope -w 1920 -h 1080 -f -- %command%

runs the game fullscreen at 1920x1080. Or for borderless window

gamescope -w 1920 -h 1080 -W 1920 -H 1080 -b -- %command%
1 Like

Thanks MrLavender, yes I’m using Steam.

I just tried adding the kernel parameter and running games in gamescope, but it did not fix the issue. In my tests I managed to run Nine Sols once, then I tried to launch it a second time and it froze.

Some Googling suggests this is a known issue with some Nvidia cards and certain displays when using DXVk. Sources: 1 2 3

Assuming it is indeed this issue, then disabling the ForceFullCompositionPipeline option should get you in running games. However, it seems like it comes with some downsides, so you’ll also want to turn it back on after playing games as well. For testing, the command to turn it off is: nvidia-settings -a CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline=Off }"; links 2/3 above have some ideas for how to do it automatically for games.

1 Like

Oh brilliant that was it!

This config is necessary to avoid screen tearing when scrolling and in videos, and manjaro enables it by default when using proprietary nvidia drivers. Here is mine that also forces the refresh rate to 120 Hz because nvidia-auto-select is 60 Hz:

# /etc/X11/mhwd.d/nvidia.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 525.60.11

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
	Option "NoLogo" "1"
#	Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
    Option         "metamodes" "3840x2160_120 +0+0 {ForceCompositionPipeline=On}"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.