Logitech wireless scroll lag/delays

Glad to hear your mouse is performing better in Bluetooth mode.

I never use BT because of its security vulnerabilities. When using the Logitech. Unifying Receiver in 2.4 GHz mode refreshing the device via a script used to help when it was lagging.

I just came across that old script of mine, and I thought it might come in handy for Logitech users experiencing lag with their USB mouse.

#!/bin/bash
#reset device by ID
#cat ~/.local/bin/reset-mouse.sh
#reset Logitech, Inc. Unifying USB Receiver  046d:c52b
set -euo pipefail
IFS=$'\n\t'

VENDOR="046d"
PRODUCT="c52b"

for DIR in $(find /sys/bus/usb/devices/ -maxdepth 1 -type l); do
  if [[ -f $DIR/idVendor && -f $DIR/idProduct &&
        $(cat $DIR/idVendor) == $VENDOR && $(cat $DIR/idProduct) == $PRODUCT ]]; then
    echo 0 > $DIR/authorized
    sleep 0.5
    echo 1 > $DIR/authorized
  fi
done

Create the ~/.local/bin/reset-mouse.sh script, then make it executable.

In the past this script corrected all mouse lag for me when I executed it via a bash alias. I can only hope it will still prove useful to others using tthe Logitech Unifying Receiver.

2 Likes