Jumping cursor in wayland

Hi,

I have noticed that the cursor after some time behaves very “sluggish” or “jumpy” in f40 in wayland. I have it on both my laptop and home pc (both run f40, one of them has integrated intel videocard and another one radeon dedicated videocard).

If i switch to x11, the issue is not there.

I have found some older reports on the Internet about it, but most of them were either closed or abandoned .

I recorded a short video to demonstrate it:

Provide some system details
Kernel version which cpu gpu you have.

Can you provide the output of both

  • inxi -Fzxx
  • dnf list installed mesa* | awk '/^[[:space:]]*mesa-/{print $1, $2}'

for us in </> preformatted text so we can understand the hardware and packages installed?
2024-05-06_12-15-49_Preformatted_Text

System:
  Kernel: 6.9.9-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.3.1 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: Dell product: Precision 5560 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 052YJY v: A00 serial: <superuser required> part-nu: 0A62
    UEFI: Dell v: 1.28.0 date: 03/08/2024
Battery:
  ID-1: BAT0 charge: 60.6 Wh (98.2%) condition: 61.7/84.3 Wh (73.2%)
    volts: 12.4 min: 11.4 model: BYD DELL M59JH19 serial: <filter>
    status: discharging
CPU:
  Info: 6-core model: 11th Gen Intel Core i5-11500H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 480 KiB L2: 7.5 MiB L3: 12 MiB
  Speed (MHz): avg: 974 high: 1200 min/max: 800/4600 cores: 1: 1149 2: 800
    3: 989 4: 1056 5: 1032 6: 971 7: 800 8: 933 9: 1200 10: 829 11: 970 12: 969
    bogomips: 70041
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-12.1 ports: active: eDP-1 empty: DP-1,DP-2,DP-3
    bus-ID: 00:02.0 chip-ID: 8086:9a60
  Device-2: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-11:4 chip-ID: 0c45:672e
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: Sharp 0x1515 res: 1920x1200 dpi: 145
    diag: 396mm (15.6")
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.1.4 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
    device-ID: 8086:9a60 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:43c8
  API: ALSA v: k6.9.9-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:43f0
  IF: wlp0s20f3 state: up mac: <filter>
  IF-ID-1: lxdbr0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
  IF-ID-2: veth29c78cb4 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-14:5 chip-ID: 8087:0026
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 476.94 GiB used: 78.11 GiB (16.4%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC601 SED NVMe 512GB
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 30.9 C
Partition:
  ID-1: / size: 467.08 GiB used: 77.75 GiB (16.6%) fs: btrfs dev: /dev/dm-0
    mapped: luks-beb69262-151d-477f-b2a1-c4f8adf4baf1
  ID-2: /boot size: 973.4 MiB used: 294.4 MiB (30.2%) fs: ext4
    dev: /dev/nvme0n1p3
  ID-3: /boot/efi size: 861 MiB used: 74.6 MiB (8.7%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 467.08 GiB used: 77.75 GiB (16.6%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-beb69262-151d-477f-b2a1-c4f8adf4baf1
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 28.8 MiB (0.4%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 31.06 GiB used: 8.47 GiB (27.3%)
  Processes: 719 Power: uptime: 1d 8h 32m wakeups: 8 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: 15 pm: flatpak pkgs: 11 pm: snap pkgs: 4 Compilers: gcc: 14.1.1
    Shell: Bash v: 5.2.26 running-in: tilix inxi: 3.3.34
$ dnf list installed mesa* | awk '/^[[:space:]]*mesa-/{print $1, $2}'
mesa-dri-drivers.x86_64 24.1.4-2.fc40
mesa-filesystem.x86_64 24.1.4-2.fc40
mesa-libEGL.x86_64 24.1.4-2.fc40
mesa-libGL.x86_64 24.1.4-2.fc40
mesa-libGLU.x86_64 9.0.3-4.fc40
mesa-libgbm.x86_64 24.1.4-2.fc40
mesa-libglapi.x86_64 24.1.4-2.fc40
mesa-libxatracker.x86_64 24.1.4-2.fc40
mesa-va-drivers.x86_64 24.1.4-2.fc40
mesa-vulkan-drivers.x86_64 24.1.4-2.fc40

I wonder if it is another case of this problem:

Are there multiple device nodes under /dev/input that are receiving your pointer events? I only have one and my mouse is working fine (on Fedora Linux 40 using Sway).

FWIW, Here is a little script that I put together to automate finding what event devices are receiving pointer events (the “script” is the one-liner command that starts with for ...). You have to run it as root and you need to move your mouse continuously while the for loop iterates over your event device nodes.

[/home/glb]$ sudo dnf install -y evtest
Last metadata expiration check: 0:32:59 ago on Tue 23 Jul 2024 06:03:27 PM UTC.
Package evtest-1.35-7.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[/home/glb]$ sudo -i
[/root]# for i in $(ls -v /dev/input/event*); do printf "\e[1mTESTING $i\e[0m:\n"; timeout -s int 3 bash -c "evtest $i | grep -i '^event:' | tr '\n' '\r'"; echo; done
TESTING /dev/input/event0:

TESTING /dev/input/event1:

TESTING /dev/input/event2:

TESTING /dev/input/event3:

TESTING /dev/input/event4:

TESTING /dev/input/event5:

TESTING /dev/input/event6:
Event: time 1721759399.307444, -------------L), code 1 (REL_Y), value 144
TESTING /dev/input/event7:

TESTING /dev/input/event8:

TESTING /dev/input/event9:

[/root]# logout
[/home/glb]$ 

In the above example, only /dev/input/event6 showed that it was receiving events as I was moving my mouse pointer.

This might not be worth asking, but I’ve had this problem a couple of times to find that I had put something on my laptop’s trackpad (phone, sticker, paper, etc.) while I was using an external mouse, so it was also getting occasional input from the thing on the trackpad.

1 Like

@glb
Thanks for the script! Just checked it, it was only one device

@vwbusguy
hah unfortunately that is not the case (checked it :D) and also the very same problem happens on my desktop computer

1 Like