Total system hang while playing via proton

Hey people,

recently I’ve been experiencing a problem while playing games (Age of Empires 2 DE, Apex Legends, but for some reason, Frostpunk is not one of them) with Proton. Randomly my system hangs, with only the cursor moving, no tty, no sysrq button funcionality, nothing.
I have a hunch that my problem correlates with the usage of my nVidia dgpu, but I do not know how to tell if it’s the case.
I do not think it’s a hardware problem, since I still dual boot Windows, and there has been no freezes on that OS of this magnitude. (except the usual Windows shenanigans)
Being a relative noob to Linux, I lack the knowledge to debug such a problem, and I’d like to ask for some help.
Please if you have any idea how to debug this, help me, I will gladly offer any information I can.
inxi output:

System:
  Kernel: 5.15.65-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=433555d6-1ee2-4127-867b-76d8d6e01104 rw quiet apparmor=1
    security=apparmor resume=UUID=268b2d2f-8cb2-4403-9380-a663fd25786e
    udev.log_priority=3
  Console: pty pts/2 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81Y4 v: IdeaPad Gaming 3 15IMH05
    serial: <filter> Chassis: type: 10 v: IdeaPad Gaming 3 15IMH05
    serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter> UEFI: LENOVO
    v: EGCN34WW date: 05/18/2021
Battery:
  ID-1: BAT0 charge: 41.1 Wh (99.0%) condition: 41.5/45.5 Wh (91.3%)
    volts: 12.8 min: 11.4 model: Sunwoda L19D3PF4 type: Li-poly
    serial: <filter> status: N/A cycles: 95
CPU:
  Info: model: Intel Core i5-10300H socket: U3E1 bits: 64 type: MT MCP
    arch: Comet Lake gen: core 10 level: v3 built: 2020 process: Intel 14nm
    family: 6 model-id: 0xA5 (165) stepping: 2 microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 4327 high: 4397 min/max: 800/4500 base/boost: 2376/4500
    scaling: driver: intel_pstate governor: powersave volts: 0.7 V
    ext-clock: 100 MHz cores: 1: 4297 2: 4356 3: 4302 4: 4394 5: 4275 6: 4342
    7: 4397 8: 4258 bogomips: 40009
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:9bc4
    class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo
    driver: nvidia v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-08) arch: Turing code: TUxxx
    process: TSMC 12nm built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1f95
    class-ID: 0300
  Device-3: Syntek Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-6:3 chip-ID: 174f:244c class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,nv,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: LG Display 0x05e5 built: 2018 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:06c8 class-ID: 0403
  Device-2: NVIDIA driver: snd_hda_intel v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1
    chip-ID: 10de:10fa class-ID: 0403
  Sound Server-1: ALSA v: k5.15.65-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 1.38 TiB used: 805.25 GiB (57.2%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Lenovo
    model: UMIS RPJTJ512MEE1OWX size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2.0C0628 temp: 36.9 C scheme: GPT
  SMART: yes health: PASSED on: 279d 6h cycles: 1,318 read-units: 112,965,726
    [57.8 TB] written-units: 49,770,870 [25.4 TB]
  ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: Crucial model: CT1000P2SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: P2CR033
    temp: 39.9 C scheme: GPT
  SMART: yes health: PASSED on: 84d 15h cycles: 372 read-units: 41,760,527
    [21.3 TB] written-units: 58,557,620 [29.9 TB]
Partition:
  ID-1: / raw-size: 467.84 GiB size: 459.43 GiB (98.20%) used: 193.07 GiB
    (42.0%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 25.5 MiB
    (8.5%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 51.0 C pch: 50.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 251 Uptime: 6m wakeups: 1 Memory: 15.49 GiB used: 2.9 GiB
  (18.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1623 pm: pacman pkgs: 1605
  libs: 467 tools: pamac,yay pm: flatpak pkgs: 6 pm: snap pkgs: 12
  Shell: Zsh (sudo) v: 5.9 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.21

Update 1: I have noticed, that if my sound output is disabled in Manjaro’s settings, I do not freeze. If i enable it while being ingame, the freeze is immediate.

This should provide some hints.

1 Like

Thank you so much for your help. I recreated the freeze then right after boot i ran the command you gave me, this is the output:

journalctl --boot=-1 --priority=3 --catalog --no-pager                                                                                                                        ✔ 
sep 26 14:25:47 jani-laptop kernel: x86/cpu: SGX disabled by BIOS.
sep 26 14:25:47 jani-laptop kernel: Spectre V2 : WARNING: Unprivileged eBPF is enabled with eIBRS on, data leaks possible via Spectre v2 BHB attacks!
sep 26 14:25:47 jani-laptop kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.I2C2.TPD0], AE_NOT_FOUND (20210730/dswload2-162)
sep 26 14:25:47 jani-laptop kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20210730/psobject-220)
sep 26 14:25:47 jani-laptop kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.I2C3.TPL1], AE_NOT_FOUND (20210730/dswload2-162)
sep 26 14:25:47 jani-laptop kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20210730/psobject-220)
sep 26 14:25:47 jani-laptop kernel: 
sep 26 14:25:47 jani-laptop systemd-udevd[297]: /etc/udev/rules.d/40-libsane.rules:26: GOTO="libsane_rules_end" has no matching label, ignoring
sep 26 14:25:48 jani-laptop systemd-udevd[297]: /etc/udev/rules.d/S99-2000S1.rules:26: GOTO="libsane_rules_end" has no matching label, ignoring
sep 26 14:25:49 jani-laptop libvirtd[694]: cannot open directory '/home/xvasik05/VM_files/WIN10': No such file or directory
sep 26 14:25:49 jani-laptop libvirtd[694]: internal error: Failed to autostart storage pool 'WIN10': cannot open directory '/home/xvasik05/VM_files/WIN10': No such file or directory
sep 26 14:29:18 jani-laptop bluetoothd[1063]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down

I will keep trying to find which one of these errors could cause my problem, but I’d still appreciate if you or someone would point me in the correct direction.

That’s rather short… and does not seem to contain anything related.
If you could switch to TTY (Ctrl+Alt+F2) when a freeze occurs, you could try checking the kernel ring buffer.


I didn’t spot it earlier, but you do have an audio issue: you are running both PulseAudio and PipeWire at the same time:

You need to replace PulseAudio with the Pulse compatibility layer for PipeWire:

pamac install pipewire-pulse
1 Like

If you could switch to TTY (Ctrl+Alt+F2) when a freeze occurs, you could try checking the kernel ring buffer.

Problem is, I am unable to switch to TTY when the freeze occurs.

I will go on and fix the audio problems a bit later, will update if it helps my issue.

Update 1: I haven’t experienced any freezes since I’ve installed PipeWire. Could there be any kind of correlation? Anyway, thank you so much for your time and help. I’ll mark your answer as a solution.
(If it changes, i’ll update.)

Update 2: Scratch that, I got another freeze. I’m wondering if there’s any other way to find some errors or logs or something. Every time I get one, I try both switching to TTY and SysRQ fuctions, none of them work…

Gaming with wine/proton is never easy. I have experienced the same hang in the past with no real errors I could find. I read someplace that the nvidia driver has issues with newer kernels. I moved to the 5.4 kernel and the issue and the problem happened less. With the 4.19 kernel it doesnt happen but once in a blue moon. While not a solution to a problem, it may help to switch kernels if you cant find the issue.

1 Like

I will ofc try your suggestion too. Thanks for the tip.
Also any other suggestions are appreciated.

(Every day I regret paying for an Nvidia GPU.)

Update 1: I’ve tried to switch to 4.19 kernel, but unfortunately I cannot boot into Manjaro while that kernel is being used. Since my last comment, there has been almost no freezes, seems like the sound problems did contribute in some way. I’m still open to suggestions on how to fix the remaining times I get a freeze like this…

So, as I’ve written in the comment above, for some reason I cannot boot into Manjaro when using the 4.19 kernel.
As a backup plan, I’ve tried the 5.10 kernel, and what do you know, my problem is almost gone (except for the times when for example I’m loading into a demanding game, and i try to alt+tab, etc.). I didn’t have a freeze like on the 5.15 kernel for a week now.

I will mark your comment as solution, thank you very much for the assistance everyone. :heart:

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