页次: 1
电脑装了manjora Linux ,信息如下
Linux Lukang-E6430 4.4.36-1-MANJARO #1 SMP PREEMPT Fri Dec 2 19:09:52 UTC 2016 x86_64 GNU/Linux
为了方便就使用了蓝牙鼠标
[lukang@Lukang-E6430 ~]$ bluetoothctl
[NEW] Controller 20:16:D8:9C:90:E2 Lukang-E6430 [default]
[NEW] Device 00:1F:20:8E:93:E6 Dell Travel Mouse WM524
但是遇到一个问题就是蓝牙鼠标使用一段时间以后会不定期的掉线,然后就怎么也连不上了,必须关机重启才才能连上。
对此我也google了一下,有下面的一些方法。我也尝试了一下,但是依然没有作用,所以在这里求助一下。下面是找到的一些方法。
Solution 1
Edit the file /etc/bluetooth/input.conf and set the parameter IdleTimeout=0 inside the [General] block.
root@nwdesktop:~# vim /etc/bluetooth/input.conf
# Configuration file for the input service
# This section contains options which are not specific to any
# particular interface
[General]# Set idle timeout (in minutes) before the connection will
# be disconnect (defaults to 0 for no timeout)
IdleTimeout=0
Restart the bluetooth service:root@nwdesktop:~# /etc/init.d/bluetooth restart
* Stopping bluetooth [ OK ]
* Starting bluetooth [ OK ]
This will prevent disconnections due to timeout from your bluetooth mice and keyboards.Solution 2
Create an udev rule that will avoid your mouse to autosuspend
root@nwdesktop:~# vi /etc/udev/rules.d/91-local.rules
ACTION=="add", SUBSYSTEM=="bluetooth", ATTR{product}=="Microsoft Bluetooth Mouse ", ATTR{power/control}="on"
root@nwdesktop:~# # udevadm control --reload-rules
Solution 3This one does not makes me proud, but... Create a script with your hidd connect command:
user@nwdesktop:~# vi /home/user/recconect.sh
#!/bin/bash
sudo hidd --connect 30:59:B7:72:A5:A7
Now, add to your crontab:root@nwdesktop:~# vi /etc/crontab
*/10 * * * * root /home/user/recconect.sh
Cheers.
第一种方法在/etc/bluetooth/文件夹中没有input.conf文件
第二种方法使用了没有效果,问题依然存在
第三种方法没有尝试
望得到大家的帮助,非常感谢!
离线
离线
蓝牙一直是很玄学 我这是连接上立马就断线
——一只ID名为稀释的小白
离线
页次: 1