Mouse causing CPU spiking on my external monitor specifically

Hello

Using my mouse on my external monitor has become extremely laggy but in only very specific conditions and I cant figure out why. It lags unless:

  • I’m using my laptop’s mouse-pad
  • I’m playing a game where my mouse is locked
  • My cursor is on the internal monitor on my laptop

By laggy I mean the mouse is very snappy and unresponsive, and also my current task on the monitor freezes for a moment or two. This doesn’t effect the internal monitor of my laptop.

I have tried using different USB ports, using a different mouse and there is no effect. Ive tried switching the HDMI cable and nothing changes either. Ive also looked online and there’s nothing very similar to this specific issue as far as I can see, however I did check my CPU usage and it seems that my mouse on my external monitor uses only one core and causes it to peak. In fact any input from my mouse to my monitor seems to do this, including using right or left click.

I tried switching to my NVIDIA GPU, and while it worked initially the lag got worse and worse over time until it got into the same condition. I also noticed this happened over the day in general, where the more i would use my mouse (outside of the previous conditions) the worse the lag would get.

This only started after I updated recently. Might be a coincidence but I figured it was worth mentioning.

Edit: Using my mousepad is still peaking my CPU, but not causing as much lag. Its still someone noticeable though

garuda-inxi:

 System:
  Kernel: 6.12.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=46edefa1-ac3b-4083-98be-118cae6a7a8a rw rootflags=subvol=@
    quiet resume=UUID=a392202c-619f-449d-bda2-75b6d61a9900 loglevel=3 ibt=off
  Desktop: Hyprland v: 0.45.2 with: waybar tools:
    avail: hyprlock,swayidle,swaylock vt: 1 dm: SDDM Distro: Garuda
    base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Dell G15 5535 v: 1.7.1
    serial: <superuser required> Chassis: type: 10 v: 1.7.1
    serial: <superuser required>
  Mobo: Dell model: 0XMT14 v: A01 serial: <superuser required> part-nu: 0C56
    uuid: <superuser required> UEFI: Dell v: 1.7.1 date: 03/19/2024
Battery:
  ID-1: BAT1 charge: 74.4 Wh (100.0%) condition: 74.4/86.0 Wh (86.5%)
    volts: 12.9 min: 11.4 model: SMP-COS3.82 DELL 70N2F3BF type: Li-poly
    serial: <filter> status: full cycles: 89
  Device-1: wacom_battery_0 model: Wacom Intuos BT M serial: N/A
    charge: 100% status: discharging
CPU:
  Info: model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics bits: 64
    type: MT MCP arch: Zen 4 gen: 4 level: v4 note: check built: 2022+
    process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x74 (116) stepping: 1
    microcode: 0xA704107
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
    smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB
    desc: 8x1024 KiB L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 400 min/max: 400/5137 boost: enabled scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 400 3: 400
    4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
    14: 400 15: 400 16: 400 bogomips: 121383
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA AD107M [GeForce RTX 4050 Max-Q / Mobile] vendor: Dell
    driver: nvidia v: 565.77 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-09) arch: Lovelace code: AD1xx
    process: TSMC n4 (5nm) built: 2022+ pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s ports: active: none off: HDMI-A-1
    empty: none bus-ID: 01:00.0 chip-ID: 10de:28e1 class-ID: 0300
  Device-2: Advanced Micro Devices [AMD/ATI] Phoenix1 vendor: Dell
    driver: amdgpu v: kernel arch: RDNA-3 code: Phoenix process: TSMC n4 (4nm)
    built: 2023+ pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8, Writeback-1
    bus-ID: 05:00.0 chip-ID: 1002:15bf class-ID: 0300 temp: 34.0 C
  Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1:2 chip-ID: 0bda:567e
    class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: Hyprland v: 0.45.2 driver: X: loaded: amdgpu,nvidia
    dri: radeonsi gpu: amdgpu,nvidia,nvidia-nvswitch d-rect: 3840x1080
    display-ID: 1
  Monitor-1: HDMI-A-1 pos: right model: LG (GoldStar) FULL HD
    serial: <filter> built: 2021 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    scale: 1 size: 480x270mm (18.9x10.63") diag: 551mm (21.7") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  Monitor-2: eDP-1 pos: primary,left model: Najing CEC Panda 0x005f
    built: 2021 res: 1920x1080 hz: 120 dpi: 142 gamma: 1.2 scale: 1
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  API: Vulkan v: 1.4.303 layers: 11 device: 0 type: integrated-gpu name: AMD
    Radeon 780M (RADV GFX1103_R1) driver: N/A device-ID: 1002:15bf
    surfaces: xcb,xlib,wayland device: 1 type: discrete-gpu name: NVIDIA
    GeForce RTX 4050 Laptop GPU driver: N/A device-ID: 10de:28e1
    surfaces: xcb,xlib,wayland device: 2 type: cpu name: llvmpipe (LLVM
    18.1.8 256 bits) driver: N/A device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA AD107 High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:22be class-ID: 0403
  Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High
    Definition Audio driver: snd_hda_intel v: kernel pcie: gen: 4
    speed: 16 GT/s lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    vendor: Dell driver: snd_pci_ps v: kernel alternate: snd_pci_acp3x,
    snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci,
    snd_rpl_pci_acp6x, snd_sof_amd_renoir, snd_sof_amd_rembrandt,
    snd_sof_amd_vangogh, snd_sof_amd_acp63, snd_sof_amd_acp70 pcie: gen: 4
    speed: 16 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Dell 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
  API: ALSA v: k6.12.4-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: Foxconn driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 04:00.0 chip-ID: 14c3:7961 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Foxconn / Hon Hai MediaTek MT7921 Bluetooth driver: btusb v: 0.8
    type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:4
    chip-ID: 0489:e0c8 class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 476.94 GiB used: 160.66 GiB (33.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: PC SN740 NVMe WD 512GB size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 73914108 temp: 33.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 460.21 GiB size: 460.21 GiB (100.00%)
    used: 160.66 GiB (34.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 460.21 GiB size: 460.21 GiB (100.00%)
    used: 160.66 GiB (34.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 460.21 GiB size: 460.21 GiB (100.00%)
    used: 160.66 GiB (34.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 460.21 GiB size: 460.21 GiB (100.00%)
    used: 160.66 GiB (34.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 14.93 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 16
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 16.43 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 44.0 C mobo: 40.0 C sodimm: SODIMM C gpu: amdgpu
    temp: 35.0 C
  Fan Speeds (rpm): cpu: 1900 mobo: 4300
Info:
  Memory: total: 16 GiB note: est. available: 14.93 GiB used: 5.63 GiB (37.7%)
  Processes: 351 Power: uptime: 19m states: freeze,mem,disk suspend: s2idle
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
    image: 5.92 GiB services: upowerd Init: systemd v: 257 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1418 libs: 413 tools: pacseek,paru,yay
    Compilers: gcc: 14.2.1 Shell: garuda-inxi default: Bash v: 5.2.37
    running-in: kitty inxi: 3.3.36
Garuda (2.6.26-1):
  System install date:     2024-10-19
  Last full system update: 2024-12-17 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Hi there @NotBitCoin.

I have a couple of suggestions that are basically standard protocol for troubleshooting Linux issues:

Test out at least 3 alternate kernels.

Update your BIOS.

2 Likes

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