[Bluez] linux under bluetooth mouse delay problem

 

introduction

Now portable devices, interfaces become less and less. So we have no reason not to use a Bluetooth mouse. Tall is not expensive.

Prior to Bluetooth 4.0, Bluetooth devices is especially cost electricity. Bluetooth 4.0 power after death, my mouse on a Microsoft Designer Mouse

Two AAA batteries can be used almost 6-8 months do not need to replace the battery. And the premise is rarely closed. Substantially in a normally open state.

Of course, this side there is a special case, and I am a little red dot emacs user, it may be several hours do not touch the mouse.

 [author: classic_tong; date: 20190921]

Foreword

But unfortunately, yes. Mouse still fragile, especially the left. Copper aging, and squeezing can easily cause damage. In particular extrusion. So finally my designer

After three years he left out of order.

Then I buy a new one, found that the delay is obvious. I thought it was the DPI or the like, so he bought one, then go to buy three. We have discovered that there was a delay problems (delays, insensitive, slow response)

Then I realized, probably a software problem.

Before we begin, I need to thank the three mouse, and Jingdong Mall. They are:

1. 2.3.

 

 

 

problem

Realizing that it is probably a software problem, only a readily google: "linux bluetooth mouse lag", questions and answers immediately appear.

Faced with the problem of people or many. A list of what useful information can be yourself, I can not see the solution below:

archlinux wiki is already given in the method:

https://wiki.archlinux.org/index.php/Bluetooth_mouse#Troubleshooting

BBS inside also discussed in detail:

https://bbs.archlinux.org/viewtopic.php?pid=1857256#p1857256

 linux kernel inside for a discussion on the subject:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/net/bluetooth?h=v5.2.8&id=33401f6ba0d9f23ca5877540375b88d7cd5b1f8f

 

Solution

The solution is simple

1. Connect Bluetooth.

This time will generate this file in the var

/var/lib/bluetooth/E4\:70\:B8\:A7\:07\:19/DF\:B6\:2E\:A4\:60\:08/info

2. Modify the file, add the following line

[ConnectionParameters]
MinInterval=6
MaxInterval=6
Latency=60
Timeout=300

3. Restart Bluetooth devices on your notebook

 

After that, my problem is solved.

Explanation about these configurations, see

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/settings-storage.txt

 

Other

Also, why the previous mouse is good, buy a new these will not it?

Presumably, bluez updated version, not the added value of these. As long as in the beginning of the configuration can be a plus, a few years ago may bluez version

Is a plus, right?

In order to rule out differences in hardware. I put the old mouse info file deleted, re-link. Configuration has not been added. So, the hardware is undifferentiated.

Finally, I chose red 3600, good-looking thing?

 

 

[author: classic_tong; date: 20190921]

 

Guess you like

Origin www.cnblogs.com/hugetong/p/11557287.html