Bluetooth Mouse: Sleeps too Quickly-Often

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Bluetooth Mouse: Sleeps too Quickly-Often

Post by hglee »

With a recent kernel upgrade, my Bluetooth mouse now sleeps too quickly and often, which means there's an annoying idle-lag each time the mouse must re-awaken.

System: Host: Asus FX53VD. Kernel: 4.13.0-45-generic x86_64 (64 bit gcc: 5.4.0).
Desktop: MATE 1.18.0 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia.

This same problem also appears in a discussion of the Redhat kernel, in this thread...
https://bugzilla.redhat.com/show_bug.cgi?id=570291
"Description of problem: When using a bluetooth mouse, there is a noticeable lag when moving it after leaving it idle for a few seconds. Once moving it tracks OK."

The information in this particular comment seems useful...
https://bugzilla.redhat.com/show_bug.cgi?id=570291#c13

According to that post, an "echo on > level" terminal command should patch the problem, but it doesn't for my system. I found that the "level" file already contained "on". My patch was to increase the value in the "autosuspend" file.

Altogether, I followed these steps, which delays the problem...

Code: Select all

sudo -i
cd `readlink -f /sys/class/bluetooth/hci0`
cd ../../../power/
echo 300 > autosuspend
exit
This isn't a proper solution, as a kernel fix is needed.
Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: Bluetooth Mouse: Sleeps too Quickly-Often

Post by hglee »

BTW, my Bluetooth mouse identifies as a "JETech 0884".
Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
skrrrt
Level 1
Level 1
Posts: 1
Joined: Fri Oct 29, 2021 4:09 am

Re: Bluetooth Mouse: Sleeps too Quickly-Often

Post by skrrrt »

Maybe a bit late but I had the same problem and solved it as follows:

Find vendor and product ID of your Bluetooth chip/dongle

Code: Select all

$ cat `readlink -f /sys/class/bluetooth/hci0`/../../../idVendor
$ cat `readlink -f /sys/class/bluetooth/hci0`/../../../idProduct
In my case vendor=8087 product=0a2b, Logitech MX Master 3

Create /etc/udev/rules.d/50-usb_power_save.rules (see https://wiki.archlinux.org/title/Power_ ... utosuspend)

Code: Select all

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0a2b", ATTR{power/autosuspend}="-1"
This rule disables autosuspend for your Bluetooth chip/dongle

Reload udev rules (see https://wiki.archlinux.org/title/Udev#Loading_new_rules)

Code: Select all

# udevadm control --reload
# udevadm trigger
I also had to restart bluetooth service

Code: Select all

# systemctl restart bluetooth
Locked

Return to “Hardware Support”