Touchpad and windows stuck for seconds

Running GNOME Shell 42.5

When I move the cursor with the touchpad after 1-2 minutes of inctivity it doesn’t move inmediately, but instead is stuck for some seconds and then jumps to a new position as a glitch.

Also, windows randomly freeze for some seconds too on moving and resizing, I don’t know if it may be related.

This doesn’t happen with XFCE desktop so I guess might be some gnome configuration. I’ll happily provide all the info you need.

Hello @Sanjaer :wink:

Sounds like GPU acceleration problem… just note that GNOME is a 3D-Desktop, that means that low GPUs will have problems here if not powerful enough.

You could mitigate that problem by disabling the effects for example.

Hi @megavolt

Thanks for your answer. I am running an NVIDIA GeForce RTX 3050Ti so I don’t think it is a resources problem. Could it be a problem with the drivers?
I am running official 515.76

Can you show your system information?

inxi -Fazy
System:
  Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=8c1d3e66-2b6e-4887-85bd-1f91fffff7c9 rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME v: 42.5 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 16-c0xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8901 v: 89.55 serial: <superuser required> UEFI: AMI
    v: F.11 date: 09/01/2021
Battery:
  ID-1: BAT0 charge: 59.7 Wh (85.0%) condition: 70.2/70.2 Wh (100.0%)
    volts: 12.9 min: 11.6 model: HP Primary type: Li-ion serial: <filter>
    status: charging cycles: 29
CPU:
  Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22 process: TSMC n7
    (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1529 high: 2361 min/max: 1200/3200 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1397 2: 1397
    3: 1303 4: 1213 5: 2252 6: 1380 7: 1378 8: 1257 9: 1806 10: 1330 11: 1927
    12: 1197 13: 1881 14: 2361 15: 1197 16: 1197 bogomips: 102253
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  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_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 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-10) arch: Ampere code: GAxxx process: TSMC n7
    (7nm) built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a0
    class-ID: 0300
  Device-2: AMD Cezanne vendor: Hewlett-Packard driver: amdgpu v: kernel
    arch: GCN-5.1 code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie:
    gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: eDP-1 empty: DP-1 bus-ID: 06:00.0 chip-ID: 1002:1638
    class-ID: 0300 temp: 38.0 C
  Device-3: Quanta HP Wide Vision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 0408:5425 class-ID: fe01 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: amdgpu,nvidia dri: radeonsi
    gpu: amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: eDP-1 mapped: eDP-1-0 model: ChiMei InnoLux 0x1609 built: 2020
    res: 1920x1080 hz: 144 dpi: 137 gamma: 1.2 size: 355x199mm (13.98x7.83")
    diag: 407mm (16") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:2291 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
    driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x,snd_pci_acp5x
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8168 v: 8.050.03-NAPI modules: r8169 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 02:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw89_pci v: N/A modules: rtw89pci pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
    chip-ID: 10ec:8852 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-4:3 chip-ID: 0bda:2852 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 283.87 GiB (29.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB1T0HBLR-000H1 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS0NEXF temp: 32.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 481.45 GiB size: 472.82 GiB (98.21%) used: 283.84 GiB
    (60.0%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 29.5 MiB
    (30.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 6.84 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p7 maj-min: 259:6
Sensors:
  System Temperatures: cpu: 47.6 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :1.0 temp: 38 C device: amdgpu temp: 38.0 C
Info:
  Processes: 437 Uptime: 1m wakeups: 1 Memory: 30.7 GiB used: 3.27 GiB (10.7%)
  Init: systemd v: 251 default: graphical tool: systemctl Compilers:
  gcc: 12.2.0 Packages: 1549 pm: pacman pkgs: 1526 libs: 360
  tools: gnome-software,pamac,yay pm: flatpak pkgs: 0 pm: snap pkgs: 23
  Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.22

Not really… you run the amd gpu which is connected to your laptop screen. And if you are using mainly the nvidia gpu, then only GLX is outsourced to nvidia.

Since this is missing:

I cannot tell which GLX (amd or nvidia) is running.

pamac install mesa-utils

What tells:

glxinfo | grep "OpenGL renderer"
prime-run glxinfo | grep "OpenGL renderer"

Ok so I have installed mesa-utils, now instead of that error message it says this:

  OpenGL: renderer: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2 v: 4.6.0
    NVIDIA 520.56.06 direct render: Yes

The output of those commands is the following:

glxinfo | grep "OpenGL renderer"                               
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2
prime-run glxinfo | grep "OpenGL renderer"                     
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2

@Sanjaer ok great. Just to be sure… does it also happen when you run Gnome with the amdgpu? I know in the past there were problems on hybrid gpus with amd+nvidia and the nvidia readme also says that there are problems. Could be possible that a new issue has been introduced with that update.

How can I switch between gpus? I found this, I’ll try the suggested workaround now and I’ll inform you :wink:
(Although those logs doesn’t appear)

On Manjaro you can just install:

sudo mhwd --install  video-hybrid-amd-nvidia-prime

and you have normal hybrid installation. AMD will be main and with prime-run you can outsource GLX to nvidia.