Manjaro GNOME freezes when NVidia GPU works

New laptop, new problems. This is my third post in the last few days since I bought my new laptop. It’s an HP Victus with an Intel i7 chip and an Nvidia 4070. My problem is that randomly, but especially when I try to run a game, the computer completely freezes and I can’t even go to tty, completely stuck (only the mouse moves for some weird reason). I guess that when the GPU has to work something wrong happens. A detail that I think is important: it apparently happens only when I have external monitors attached, I tried to play a game with no monitor and it went smooth for half an hour, while usually it freezes right after I boot the game. One of the monitors is attached to the Thunderbolt port, directly connected to the GPU, but the computer freezes also with just the other one attached to the HDMI port. I already tried all the combinations of free/nonfree drivers and Wayland/x11, and it always happens (on x11 it seems it happens even more often than on Wayland)

This is the result of inxi -Fxxxrz:

System:
  Kernel: 6.10.6-10-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc
  Desktop: GNOME v: 46.4 tk: GTK v: 3.24.43 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 46.2 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Laptop System: HP product: Victus by HP Gaming Laptop 16-r1xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8C99 v: 10.32 serial: <superuser required>
    part-nu: AN1X2EA#ABZ uuid: <superuser required> UEFI: Insyde v: F.12
    date: 07/17/2024
Battery:
  ID-1: BAT1 charge: 70.1 Wh (100.0%) condition: 70.1/70.1 Wh (100.1%)
    volts: 17.4 min: 15.4 model: 333-AC-4B-A WK04070XL type: Li-ion
    serial: <filter> status: full
CPU:
  Info: 20-core (8-mt/12-st) model: Intel Core i7-14700HX bits: 64
    type: MST AMCP smt: enabled arch: Raptor Lake rev: 1 cache: L1: 1.8 MiB
    L2: 28 MiB L3: 33 MiB
  Speed (MHz): avg: 1227 min/max: 800/5300:5500:3900 cores: 1: 1227 2: 1227
    3: 1227 4: 1227 5: 1227 6: 1227 7: 1227 8: 1227 9: 1227 10: 1227 11: 1227
    12: 1227 13: 1227 14: 1227 15: 1227 16: 1227 17: 1227 18: 1227 19: 1227
    20: 1227 21: 1227 22: 1227 23: 1227 24: 1227 25: 1227 26: 1227 27: 1227
    28: 1227 bogomips: 129052
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-S UHD Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-13 ports: active: eDP-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:a788 class-ID: 0300
  Device-2: NVIDIA AD106M [GeForce RTX 4070 Max-Q / Mobile]
    vendor: Hewlett-Packard driver: nvidia v: 550.107.02 arch: Lovelace pcie:
    speed: 2.5 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:2820 class-ID: 0300
  Device-3: Chicony HP True Vision FHD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6:2 chip-ID: 04f2:b7f3
    class-ID: fe01 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 3840x1080 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-1-0 pos: left res: 1920x1080 hz: 60 dpi: 81
    size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
  Monitor-2: eDP-1 pos: primary,right res: 1920x1080 hz: 165 dpi: 137
    size: 355x200mm (13.98x7.87") diag: 407mm (16.04") modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: iris
    surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.6-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Graphics (RPL-S)
    device-ID: 8086:a788
  API: Vulkan v: 1.3.279 layers: 10 surfaces: xcb,xlib device: 0
    type: discrete-gpu driver: nvidia device-ID: 10de:2820 device: 1
    type: integrated-gpu driver: mesa intel device-ID: 8086:a788
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3 chip-ID: 8086:7a50
    class-ID: 0401
  Device-2: NVIDIA AD106M High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:22bd class-ID: 0403
  API: ALSA v: k6.10.6-10-MANJARO status: kernel-api with: aoss
    type: oss-emulator
  Server-1: sndiod v: N/A status: off
  Server-2: JACK v: 1.9.22 status: off
  Server-3: PipeWire v: 1.2.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 4000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    vendor: Hewlett-Packard driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:b852 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-14:3 chip-ID: 0bda:b85c class-ID: e001
    serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 1.9 TiB used: 474.95 GiB (24.4%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 953.87 GiB
    speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: HP02AN00
    temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Lexar model: SSD NM710 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: SN11778
    temp: 38.9 C scheme: GPT
  ID-3: /dev/sda vendor: Samsung model: Flash Drive size: 59.75 GiB
    type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 tech: SSD serial: <filter>
    fw-rev: 1100 scheme: MBR
Partition:
  ID-1: / size: 881.91 GiB used: 147.19 GiB (16.7%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 300 KiB (0.1%) fs: vfat
    dev: /dev/nvme1n1p1
Swap:
  ID-1: swap-1 type: partition size: 34.15 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme1n1p3
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 0 fan-2: 0
Repos:
  Packages: pm: pacman pkgs: 1482
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch
    2: https://mirror.bouwhuis.network/manjaro/stable/$repo/$arch
    3: https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch
    4: https://manjaro.mirror.garr.it/manjaro/stable/$repo/$arch
    5: https://mirror.zetup.net/manjaro/stable/$repo/$arch
    6: https://fosszone.csd.auth.gr/manjaro/stable/$repo/$arch
    7: https://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch
    8: http://ossmirror.mycloud.services/os/linux/manjaro/stable/$repo/$arch
Info:
  Memory: total: 32 GiB note: est. available: 31.05 GiB used: 5.11 GiB (16.4%)
  Processes: 493 Power: uptime: 10m states: freeze,mem,disk suspend: s2idle
    wakeups: 0 hibernate: platform Init: systemd v: 256 default: graphical
  Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9 running-in: tilix inxi: 3.3.36

And this is the output of sudo mhwd --listinstalled:

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

Finally, this is uname -r
6.10.6-10-MANJARO

UPDATE: I tried uninstalling and reinstalling video drivers and now the Thunderbolt port is not working anymore :expressionless:

Apparently, it was a combination of hardware and software. I tried to uninstall and reinstall multiple times the Nvidia drivers and now it seems it’s not freezing anymore. Yesterday I played for three hours and it didn’t stutter for a second.
For the Thunderbolt monitor, I think it had a little power supply issue. Normally the thunderbolt is enough to make it work, but it wasn’t anymore for some reason. I tried to use it with an external power and now it works fine, even only with the Thunderbolt. Electronic sorcery, I guess.
Anyway, I think I can close this post. For anyone who has an Nvidia GPU, please always check the correct drivers are running when you fresh install a new distro-

You should not have ever installed this.
I’m guessing its removed now or else things would be broken.

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