You are not logged in.

#1 2022-07-07 10:04:31

kaidddd
Member
Registered: 2016-01-09
Posts: 7

[SOLVED] Bluetooth mouse lag after idle

Hi,
I've been using MX Anywhere 2S mouse in bluetooth mode for a long time and it worked well. But recently, if I stop moving the mouse for around 20 seconds and then move it again, I can fill a large lag (around 1-2s) when the mouse is touched.

I tried the solution here https://wiki.archlinux.org/title/blueto … #Mouse_lag and here https://bbs.archlinux.org/viewtopic.php?id=248133 and the mouse lag is reduced to less than 1s, but still obvious.

Here is my bluetooth info file: /var/lib/bluetooth/D4:6D:6D:77:F9:79/F2:26:12:1D:5F:A6

[General]
Name=MX Anywhere 2S
Appearance=0x03c2
AddressType=static
SupportedTechnologies=LE;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001800-0000-1000-8000-00805f9b34fb;00001801-0000-1000-8000-00805f9b34fb;0000180a-0000-1000-8000-00805f9b34fb;0000180f-0000-1000-8000-00805f9b34fb;00001812-0000-1000-8000-00805f9b34fb;00010000-0000-1000-8000-011f2000046d;

[ConnectionParameters]
MinInterval=6
MaxInterval=7
Latency=44
Timeout=216

[IdentityResolvingKey]
Key=E535E2962C92CB3AD358B986A7EEA435

[LocalSignatureKey]
Key=4D04EEB25F64C52E34F027C614841752
Counter=0
Authenticated=false

[LongTermKey]
Key=1974B9253B8B38AEB7BA246F77235A0B
Authenticated=0
EncSize=16
EDiv=40935
Rand=12757152349646354302

[DeviceID]
Source=2
Vendor=1133
Product=45082
Version=3

I've also installed evhz to monitor the mouse:

MX Anywhere 2S Mouse: Latest    87Hz, Average   658Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   658Hz
MX Anywhere 2S Mouse: Latest    89Hz, Average   627Hz
MX Anywhere 2S Mouse: Latest    84Hz, Average   609Hz
MX Anywhere 2S Mouse: Latest    93Hz, Average   609Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   609Hz
MX Anywhere 2S Mouse: Latest    90Hz, Average   495Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   325Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   155Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   150Hz
MX Anywhere 2S Mouse: Latest    90Hz, Average   120Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   106Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   105Hz
MX Anywhere 2S Mouse: Latest    89Hz, Average   106Hz
MX Anywhere 2S Mouse: Latest    89Hz, Average   106Hz
MX Anywhere 2S Mouse: Latest  8771Hz, Average   241Hz
MX Anywhere 2S Mouse: Latest  15625Hz, Average   484Hz
MX Anywhere 2S Mouse: Latest  12820Hz, Average   683Hz
MX Anywhere 2S Mouse: Latest   513Hz, Average   690Hz
MX Anywhere 2S Mouse: Latest  1119Hz, Average   688Hz
MX Anywhere 2S Mouse: Latest  1658Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    91Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    91Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    84Hz, Average   712Hz
MX Anywhere 2S Mouse: Latest    94Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    88Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    86Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    90Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    89Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    89Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    90Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    87Hz, Average   713Hz
MX Anywhere 2S Mouse: Latest    91Hz, Average   713Hz

The "MX Anywhere 2S Mouse: Latest  8771Hz, Average   241Hz" line and lines below were printed when I first move the mouse after 20 seconds. My guess is that the mouse or the bluetooth adapter goes into some kind of sleep mode, but I couldn't figure out how to turn it off...

Last edited by kaidddd (2022-07-08 07:11:32)

Offline

#2 2022-07-08 07:11:01

kaidddd
Member
Registered: 2016-01-09
Posts: 7

Re: [SOLVED] Bluetooth mouse lag after idle

Adding "btusb.enable_autosuspend=0" to kernel parameters fixes this issue.
See Bluetooth mouse sleeps after 5 seconds of inactivity, but btusb.enable_autosuspend=0 fixes it

Offline

Board footer

Powered by FluxBB