Steam games freezing after few minutes

Hi! I’m new with manjaro, and hope for your help.
So the problem my games freezes mid games. The whole display freezes , I can’t tab or anything. I can’t switch tty. Only mouse moving and music continue playing.
Before it freeze I have 120+ fps, like game launched on nvidia gpu.

Also I have this error when launching apps in port proton

 Debug: Log from RUNTIME and WINE: 
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  156 (NV-GLX)
  Minor opcode of failed request:  43 ()
  Serial number of failed request:  657
  Current serial number in output stream:  658
grep: warning: stray \ before -
grep: warning: stray \ before -

mhwd -l output

> 0000:01:00.0 (0300:10de:249d) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
          video-nvidia            2023.03.23               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:46a6) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

mhwd -li output

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

inxi -Fazy output

System:
  Kernel: 6.5.3-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.5-x86_64
    root=UUID=68974c37-53f2-4e30-932b-bf0321a1eadd rw quiet splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: GIGABYTE product: AORUS 5 SE v: N/A
    serial: <superuser required> Chassis: type: 10 v: y.y
    serial: <superuser required>
  Mobo: GIGABYTE model: AORUS 5 SE v: WIN11 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FB06 date: 04/13/2022
Battery:
  ID-1: BAT1 charge: 99.0 Wh (100.0%) condition: 99.0/99.0 Wh (100.0%)
    volts: 16.9 min: 15.2 model: GIGABYTE Aorus 15 type: Li-ion serial: N/A
    status: full
CPU:
  Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x42C
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
    cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
    L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 500 high: 784 min/max: 400/4600:4700:3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 632 4: 400
    5: 771 6: 400 7: 585 8: 400 9: 619 10: 400 11: 400 12: 400 13: 400 14: 400
    15: 400 16: 784 17: 691 18: 721 19: 400 20: 400 bogomips: 107560
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  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: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  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: Enhanced / Automatic IBRS, IBPB: conditional,
    RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Gigabyte
    driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
    ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: Gigabyte
    driver: nvidia v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-08) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:249d class-ID: 0300
  Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-9:4 chip-ID: 13d3:56a2
    class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa dri: iris
    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: Sharp LQ156M1JW03 built: 2021 res: 1920x1080
    hz: 240 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.1.7-1 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:228b class-ID: 0403
  API: ALSA v: k6.5.3-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: 0.3.80 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 2e:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp46s0 state: down mac: <filter>
  IF-ID-1: vpn0 state: down mac: N/A
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-10:5 chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 18 state: up address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 226.91 GiB (23.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Gigabyte model: AG470S1TB-SI B10
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: EIOM31.4 temp: 20.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 953.57 GiB size: 937.53 GiB (98.32%)
    used: 226.91 GiB (24.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 32.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 509 Uptime: 4d 5h 0m wakeups: 63240 Memory: total: 64 GiB
  note: est. available: 62.53 GiB used: 15.37 GiB (24.6%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 1394 pm: pacman pkgs: 1378 libs: 441 tools: pamac pm: flatpak
  pkgs: 0 pm: snap pkgs: 16 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: guake inxi: 3.3.29

inxi -G output

Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
    v: 535.104.05
  Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 resolution: 1920x1080~240Hz
  API: OpenGL v: 4.6 Mesa 23.1.7-1 renderer: Mesa Intel Graphics (ADL GT2)

may you post the output of the 3 following commands

echo $XDG_SESSION_TYPE
glxinfo | grep -E  "renderer|OpenGL vendor|OpenGL renderer"
sudo cat /sys/module/nvidia_drm/parameters/modeset

echo $XDG_SESSION_TYPE output:

x11

echo $XDG_SESSION_TYPE output:

    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)

sudo cat /sys/module/nvidia_drm/parameters/modeset output:

N

okay, i expected nothing else. you’re stuck on the intel-internal graphics and your highly-overprized :wink: nvidia card is acting in idle-mode. we’ll switch to nvidia to get the mess fixed. first install a smart-tool to switch to nvidia later (we have to edit some things before we can use it) but first install

pamac install envycontrol

problems ? then try

pamac build envycontrol

please report if this step is succesful and envycontrol is installed.

done

Installing envycontrol (3.3.0-1)...                                                                                                                                                      [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                                                           [1/2]
Refreshing PackageKit...                                                                                                                                                                 [2/2]
Transaction successfully finished.

kate (an editor) is installed ?

then you’ll need to edit the grub and mkinitcpio with sudo rights. if you use kate you’re simply asked for sudo-passwd at saving.

edit /etc/default/grub and add

nvidia_drm.modeset=1 

to the existing

GRUB_CMDLINE_LINUX_DEFAULT="

edit /ect/mkinitcpio.conf

MODULES=(nvidia_modeset nvidia_uvm nvidia_drm)

run

sudo mkinitcpio -P
sudo update-grub

done ? we can proceed with the next steps if succesful edited.

Should I change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash udev.log_priority=3"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash udev.log_priority=3 nvidia_drm.modeset=1"

I have no file /ect/mkinitcpio.conf should I create it?

yes

and my fault it is /etc/mkinitcpio.conf ( missed /etc/ by /ect/)

done it

okay, please reboot, after reboot run the following

sudo envycontrol -s nvidia

reboot again and check the commands of the 3 commands again. please report

echo $XDG_SESSION_TYPE
glxinfo | grep -E  "renderer|OpenGL vendor|OpenGL renderer"
sudo cat /sys/module/nvidia_drm/parameters/modeset

System stucks on boot. Is there some safe boot?
‘Starting Terminate Plymouth Boot Screen…’ Last line

open a console with Ctrl-Alt-F3, login and rerun

sudo envycontrol -s nvidia

reboot
and report

echo $XDG_SESSION_TYPE

x11

glxinfo | grep -E “renderer|OpenGL vendor|OpenGL renderer”

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2

sudo cat /sys/module/nvidia_drm/parameters/modeset

Y

Does it mean that nvidia will be use all time?

yes, but there is a little bit more in this. if you log out and login with wayland-session and you check
again then you’ll see that

echo $XDG_SESSION_TYPE
glxinfo | grep -E  "renderer|OpenGL vendor|OpenGL renderer"
sudo cat /sys/module/nvidia_drm/parameters/modeset

you are on wayland and sgi (Intel). please check this first and report, because there is some more magic, but check this first. does it work ? please report

I didn’t find option to chose wayland in my sdm

if you reach the login screen at boot. your login-name is in the middle, but if you look at the left-bottom at the login-screen. there should be a menu where you can select between x11 and wayland.

There is no that option

please post the output of

pacman -Qi plasma-wayland-session
error: package 'plasma-wayland-session' was not found

touche, that should be installed by default. okay let’s install it

pamac install plasma-wayland-session

reboot and check that there is a menu at the left-bottom corner at login where you can select between x11 and wayland.