USB mouse jerk while downloading

Hello.

I have a USB wireless logitech mouse and when I download files it become very irregular and jerky. But on the other side the mouse pad moves normally and is not affected. Is there any way to gives more priority to the mouse ???

I'm on a ASUS Vivobook laptop brand new that I wiped Windoze for Garuda.

from:

inxi -Faz
╰─λ inxi -Fxxxaz
System:
Kernel: 5.15.7-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: initrd=\amd-ucode.img initrd=\initramfs-linux-zen.img
rd.luks.name=86691f1a-15a7-4cc6-823e-08eab8fb14b4=luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
root=/dev/mapper/luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
rootflags=subvol=@ rd.luks.options=discard rw
Desktop: KDE Plasma 5.23.4 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X513UA_M513UA
v: 1.0 serial: <superuser required>
Mobo: ASUSTeK model: X513UA v: 1.0 serial: <superuser required>
UEFI: American Megatrends LLC. v: X513UA.305 date: 03/12/2021
Battery:
ID-1: BAT0 charge: 38.9 Wh (100.0%) condition: 38.9/42.1 Wh (92.5%)
volts: 11.8 min: 11.8 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: Not charging cycles: 5
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325
serial: <filter> charge: 100% (should be ignored) rechargeable: yes status:
CPU:
Info: model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 family: 0x17 (23) model-id: 0x68 (104) stepping: 1
microcode: 0x8608103
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: 1603 high: 2575 min/max: 1400/4370 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 1397 2: 1397
3: 1397 4: 1396 5: 1676 6: 1397 7: 1397 8: 1396 9: 1397 10: 1397 11: 1397
12: 2068 13: 2575 14: 1393 15: 1764 16: 2213 bogomips: 57494
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: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Lucienne vendor: ASUSTeK driver: amdgpu v: kernel
bus-ID: 03:00.0 chip-ID: 1002:164c class-ID: 0300
Device-2: Quanta USB2.0 HD UVC WebCam type: USB driver: uvcvideo
bus-ID: 3-3:3 chip-ID: 0408:30d4 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org 1.21.1.1 compositor: kwin_x11 driver:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6")
diag: 395mm (15.5")
OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.7-zen1-1-zen LLVM 13.0.0)
v: 4.6 Mesa 21.3.1 direct render: Yes
Audio:
Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 03:00.1
chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
vendor: ASUSTeK driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x bus-ID: 03:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.15.7-zen1-1-zen running: yes
Sound Server-2: sndio v: N/A running: no
Sound Server-3: JACK v: 1.9.19 running: no
Sound Server-4: PulseAudio v: 15.0 running: no
Sound Server-5: PipeWire v: 0.3.41 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 01:00.0
chip-ID: 8086:2723 class-ID: 0280
IF: wlp1s0 state: up mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-2:2 chip-ID: 8087:0029 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
Local Storage: total: 953.87 GiB used: 366.87 GiB (38.5%)
SMART Message: Unable to run smartctl. Root privileges required.
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: 35.9 C scheme: GPT
Partition:
ID-1: / raw-size: 937.07 GiB size: 937.07 GiB (100.00%)
used: 366.76 GiB (39.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
ID-2: /boot raw-size: 260 MiB size: 256 MiB (98.46%)
used: 118.9 MiB (46.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 937.07 GiB size: 937.07 GiB (100.00%)
used: 366.76 GiB (39.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
ID-4: /var/log raw-size: 937.07 GiB size: 937.07 GiB (100.00%)
used: 366.76 GiB (39.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
ID-5: /var/tmp raw-size: 937.07 GiB size: 937.07 GiB (100.00%)
used: 366.76 GiB (39.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-86691f1a-15a7-4cc6-823e-08eab8fb14b4
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.1 GiB used: 3.5 MiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 16.54 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/dm-1 maj-min: 254:1
mapped: luks-1436414a-f251-47a7-bf5f-6ba83c40e119
Sensors:
System Temperatures: cpu: 48.0 C mobo: N/A gpu: amdgpu temp: 43.0 C
Fan Speeds (RPM): cpu: 0
Info:
Processes: 395 Uptime: 1h 49m wakeups: 434 Memory: 15.1 GiB
used: 4.26 GiB (28.2%) Init: systemd v: 249 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1701 lib: 383 Shell: fish
v: 3.3.1 default: Bash v: 5.1.12 running-in: konsole inxi: 3.3.10

Thank you for any hints,

         Bernard

I have used lots of wireless logitech mice/trackballs. I have also found that jerky/slow response can be an issue at times. Sometimes a specific update affects operation and it usually resolves itself before too long with another update.

The other causes can be low battery, or poor USB dongle placement. Try using a USB 2 port if using USB 3 (and vice versa) for the sender/reciever. Also, you may want to make sure the sender/receiver is in a good line of sight position in close proximity to your mouse (if it is obstructed).

Also if your dongle is connected through a USB hub be sure to test it connected directly to your computer.

4 Likes

The status of the mouse battery is shown at 100% .
It's connected to the USB port right in front of the mouse at 4 inches away.
The mouse is connected with an USB2 dongle

I will try to move it to other USB port just to see if it makes a difference.

Regards,
Bernard

Also check if your mouse's firmware is up to date as some older logitech hardware requires updating.

Whenever your hardware is acting up, it is also a good idea to test some alternate kernels. The LTS kernel is the usual first recommendation.

It wouldn't hurt to also test an alternate mouse, just to rule out the possibility that the mouse itself is part of the problem.

You also did not report if this issue was present since your Garuda system was first installed. Did this issue just begin, perhaps after a recent update? If so, you could try rolling back your system with a snapshot from before this issue appeared.

You should really provide more context as to when this issue happens. Does it happen only when downloading files with a specific browser, or all web browsers. Have you tested alternate browsers? Does this happen only with large files. Are you saving the files to an external drive or across a network? Have you tried enabling hardware acceleration in your browser?

2 Likes

Had the same issue, turned out to be a faulty charger sending current over my ports(few of them). It also could be due to interference due to a closely placed router or any other device with network

Interference could be possible. The wireless rooter is right in front of the laptop. :+1:

I will check if this mouse need firmware. I have never updated anything on the mouse itself. :+1:

I'm using Firefox as browser but it does the same when I try with Brave.

I would say that it's on very big files (isos) and it's more apparent when accessing disk for long period. It's not related to any update. It's like that since beginning of installation of garuda (around mid november) and it does it also when I boot on another linux on USB drive (elive linux, debian based).

When you are downloading large files are you storing them to a local SSD, or is it a slower external spinner drive (or network drive) ?

I would install some other non Firefox based browsers for further testing.

Be sure to also test at least 2 or 3 alternate kernels as well.

Does the same thing happen when copying/moving comparable size ISO files between hard drives?

This would seem to suggest that this issue is not related to Garuda’s configuration. This points to something hardware related (or possibly kernel/firmware).

Another thing you could try is to increase your mouses polling interval. I have been successful reducing this type of problem in the past with Logitech devices by increasing the mouses polling rate.

Hi,

I have increased mouse polling and it didn't changed anything (from 8 to 4).

Also I have tried to download an iso from Brave instead of Firefox and both give the same result : the mouse jerks. But I have noticed that the mouse almost totally freeze just before the download begins.

I have a print screen here when the window asking what to do with the file appears.
And that's exactly at his point that the problem appears : mouse jerks.

So the problem start exactly when the window asking what to do with the iso appears.

And it stays like that until the iso file is completely downloaded.

Precision: I just found that the download is actually running in background when that window appears. So the dialog is just waiting for last details while the download run in the background.

I hope it makes things clearer,

Regards and thanks for all trying to help me,

             Bernard

PS: I'm saving the file directly on the nvme ssd disk of the laptop.

Also getting same problem on a debian with stable kernel 5.10 and Firefox.

~ ❯❯❯ inxi -Faz
System:    Host: EliveOrDead Kernel: 5.10.0-0.bpo.8-amd64 x86_64 bits: 64 Desktop: Enlightenment "1.0.24"
           Distro: Elive 10 3.8.24 (beta)
Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X513UA_M513UA v: 1.0 serial: <filter>
           Mobo: ASUSTeK model: X513UA v: 1.0 serial: <filter> UEFI: American Megatrends LLC. v: X513UA.305 date: 03/12/2021
Battery:   ID-1: BAT0 charge: 38.9 Wh condition: 38.9/42.1 Wh (93%)
CPU:       Topology: 8-Core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP family: 17 (23)
           model-id: 68 (104) stepping: 1 microcode: 8608103 L2 cache: 4096 KiB
           Speed: 2351 MHz max: 4370 MHz Core speeds (MHz): 1: 2876 2: 2156 3: 1398 4: 1397 5: 1397 6: 1397 7: 1539 8: 1397
           9: 1951 10: 3128 11: 1501 12: 1527 13: 2130 14: 2003 15: 1397 16: 1396
           Vulnerabilities: Type: itlb_multihit status: Not affected
           Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown 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: Full AMD retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Lucienne driver: amdgpu v: kernel
           Display: x11 server: X.Org 1.20.4 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz
           OpenGL: renderer: llvmpipe (LLVM 7.0 128 bits) v: 3.3 Mesa 18.3.6
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition Audio driver: snd_hda_intel
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel
           Sound Server: ALSA v: k5.10.0-0.bpo.8-amd64
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi
           IF: wlp1s0 state: up mac: <filter>
Drives:    Local Storage: total: 1.40 TiB used: 25.10 GiB (1.8%)
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB block size:
           physical: 512 B logical: 512 B
           ID-2: /dev/sda type: USB model: SPCC Sol id State Disk size: 476.94 GiB block size: physical: 512 B logical: 512 B
Partition: ID-1: / raw size: 39.06 GiB size: 38.20 GiB (97.79%) used: 8.86 GiB (23.2%) fs: ext4 dev: /dev/dm-2
           ID-2: /boot raw size: 420.0 MiB size: 398.7 MiB (94.93%) used: 92.7 MiB (23.2%) fs: ext4 dev: /dev/sda2
           ID-3: /home raw size: 421.34 GiB size: 413.73 GiB (98.19%) used: 16.15 GiB (3.9%) fs: ext4 dev: /dev/dm-3
           ID-4: swap-1 size: 15.89 GiB used: 0 KiB (0.0%) fs: swap swappiness: 60 (default) cache pressure: 100 (default)
           dev: /dev/dm-1
Sensors:   System Temperatures: cpu: 43.2 C mobo: N/A
           Fan Speeds (RPM): cpu: 2300
Info:      Processes: 340 Uptime: 8m Memory: 15.11 GiB used: 1.22 GiB (8.1%) Shell: zsh inxi: 3.0.32


Have you tested with another mouse yet, because if this is happening on several other distros then this is starting to sound more hardware related. A wired mouse would probably be the best alternate model to test.


If you install fwupd you can use it to update your Logitech firmware (if it requires updating).


Also, some Logitech mice require special software to function correctly in Linux. Search the AUR to find if your model has such software available in the AUR repository.


Please report on whether copying large files to another location creates the same issue. Try copying a large file to a USB flashdrive if you do not have another hard drive to test with. Just out of curiosity, are you trying to save these large files to a non Linux file system (such as an NTFS partition).


Which kermels have you tested?
Be sure to test at least linux-lts, linux, and linux-hardened


Is this enabled^^^ ?


Install htop, iotop, and ps_mem and check if any processes are looking out of line from the norm when you start downloading (when the issue begins to occur). is the RAM/Swap or CPU usage high at these times? Htop iotop and ps_mem are all terminal applications that you should learn to use for diagnostic purposes.


Try changing to a different wifi channel and bandwidth in your router’s settings configuration page.


As a troubleshooting step you should test if the same issue occurs when using an Ethernet connection, (if you have a wired option available to you).


You might also want to test installing the linux-firmware.git package to see if there is any improvement.


It would also be a good idea to check if there has been a new bios update issued for your laptop.


Please answer all questions and confirm all suggestions you have tested (and list all results). You did not answer some of my prior questions or provide feedback on some earlier suggestions. Without providing full feedback remote troubleshooting is very difficult, so please do not skip providing any required information.


1 Like

Give me some time to check all those suggestion.

I have tried an old wired mouse and it doesn't jerk at all. So the problem is related to that particular mouse (or model of mouse). :+1:

More to come. I will check other suggestion. It is very late here and I should sleep!

Thank you again,
                         Bernard
1 Like

As I suspected the mouse itself is the major source of your problems. There is a possibility that some of my other suggestions may help it function properly, (but I wouldn't hold my breath).

2 Likes