Lag when using mouse on all apps

I’m having some random issues. I’m not sure what it is, but I suspect it might be graphics related. The last kernel and driver update is causing lags when I move things with the mouse? Moving windows or other items lags then catches up (windows, highlighting, scrolling are all jerky). When I checked my X11 settings after the update I found there were none. I rebuilt them and rebooted with no luck. It seems my GPU is being used, but I wonder if there is some odd GPU switching happening.

Here is the output I am gathering from inxi -Faz:

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=da8a14f0-17e0-4288-a423-c1d67911ad33 rw quiet
    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: ASUSTeK product: ASUS TUF Gaming A17 FA706IU_TUF706IU
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FA706IU v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: FA706IU.316 date: 03/12/2021
Battery:
  ID-1: BAT1 charge: 60.9 Wh (84.2%) condition: 72.3/90.2 Wh (80.2%)
    volts: 17.1 min: 15.9 model: ASUS A32-K55 type: Li-ion serial: N/A
    status: charging
CPU:
  Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22 process: TSMC n7
    (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
    microcode: 0x8600104
  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: 8 MiB desc: 2x4 MiB
  Speed (MHz): avg: 1620 high: 2596 min/max: 1400/2900 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1878 2: 1613
    3: 1727 4: 1489 5: 1819 6: 1397 7: 1397 8: 1424 9: 1397 10: 1397 11: 1397
    12: 1397 13: 2596 14: 2176 15: 1424 16: 1397 bogomips: 92660
  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 mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  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, 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 TU116M [GeForce GTX 1660 Ti Mobile] vendor: ASUSTeK
    driver: nvidia v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-10) arch: Turing code: TUxxx
    process: TSMC 12nm built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2191 class-ID: 0300
  Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel
    arch: GCN-5.1 code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie:
    gen: 4 speed: 16 GT/s lanes: 16 ports: active: HDMI-A-1,eDP-1 empty: none
    bus-ID: 05:00.0 chip-ID: 1002:1636 class-ID: 0300 temp: 41.0 C
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 3-4:3 chip-ID: 13d3:56a2 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: nouveau,radeon alternate: fbdev,nv,vesa dri: radeonsi
    gpu: amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-A-1 mapped: HDMI-1-1 pos: primary,left model: ViewSonic
    VA2333 SERIES serial: <filter> built: 2011 res: 1920x1080 hz: 60 dpi: 96
    gamma: 1.2 size: 509x286mm (20.04x11.26") diag: 584mm (23") ratio: 16:9
    modes: max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 mapped: eDP-1-1 pos: primary,right model: BOE Display
    0x08be built: 2019 res: 1920x1080 hz: 120 dpi: 128 gamma: 1.2
    size: 382x215mm (15.04x8.46") diag: 438mm (17.3") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  OpenGL: renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA
    520.56.06 direct render: Yes
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:1aeb class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: DekTec Digital
    Video B.V. driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
    snd_pci_acp5x pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 05: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: ASUSTeK driver: r8169 v: kernel 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: enp2s0 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: AzureWave driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
    chip-ID: 10ec:c822 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 5-1:2 chip-ID: 13d3:3548 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 315.16 GiB (33.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
    SDBPNPZ-1T00-1002 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 21106000 temp: 36.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 68.7 GiB size: 67.07 GiB (97.63%) used: 22.55 GiB (33.6%)
    fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6
  ID-2: /boot/efi raw-size: 370 MiB size: 369.3 MiB (99.80%) used: 316 KiB
    (0.1%) fs: vfat dev: /dev/nvme0n1p8 maj-min: 259:8
  ID-3: /home raw-size: 442.03 GiB size: 434.02 GiB (98.19%) used: 292.6
    GiB (67.4%) fs: ext4 dev: /dev/nvme0n1p9 maj-min: 259:9
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p7 maj-min: 259:7
Sensors:
  System Temperatures: cpu: 45.6 C mobo: N/A
  Fan Speeds (RPM): cpu: 2500
  GPU: device: nvidia screen: :1.0 temp: 45 C device: amdgpu temp: 41.0 C
Info:
  Processes: 348 Uptime: 2h 9m wakeups: 8 Memory: 15.05 GiB used: 3.04 GiB
  (20.2%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: pm: pacman
  pkgs: 1301 libs: 441 tools: gnome-software,pamac Shell: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.22

Can anyone help?
I also read that it might be related to a boot setting in a config.txt file , but I also cannot find said config.txt file.

Your what where? Do you mean NVIDIA X Server Settings?

By doing what?

Please see [HowTo] Request support

I had everything set up to run under X11 (e.g. I had removed the config line enabling Wayland in /etc/gdm/ and then had my /etc/X11/xorg.conf.d/10-nvidia.conf and 10-amdgpu.conf configured as:

Section "OutputClass"
   Identifier  "nvidia"
   MatchDriver "nvidia-drm"
   Driver      "nvidia"
   Option "AllowEmptyConfiguration"
   Option "PrimaryGPU" "Yes"
EndSection

and

Section "OutputClass"
   Identifier  "AMD"
   MatchDriver "amdgpu"
   Driver      "modesetting"
   Option      "PrimaryGPU" "No"
EndSection

Noted here:
https://wiki.archlinux.org/title/NVIDIA_Optimus#Use_NVIDIA_graphics_only

After update, none of these files seem to exist anymore. I’m not sure why. I know where the X11 config files were. I cannot find the /etc/gdm file anymore. My system is running X11 or so it says.

Any insights?

SOLVED:

I just reinstalled all things nVidia. Not sure what the main issue was, but things seem to be working well again.

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