|
本帖最后由 waitingyyy 于 2020-1-31 14:16 编辑
此贴为研究贴,欢迎大家跟帖
测试环境是N1盒子和USB移动硬盘(爱国者64G手指坏了。。。)
Emuelec 蓝牙手柄连接方法官方的办法在此官方地址,论坛内也有人专门写个中文说明,这个我就不讨论,但要补充说明官方办法少了个命令,如果不打这命令,会导致少了个linkkey,手柄睡眠后不能连上
现在出现的问题在于:
1.盒子从emuelec系统重启到安卓系统再回到emuelec系统,蓝牙手柄就不能重新连上
2.盒子在游戏系统,如果直接用键盘按Ctrl+Alt+Del重启系统,蓝牙手柄就不能重新连上
SSH进系统使用命令
- systemctl status bluetooth
复制代码 获得的结果看下图,红框内是出错的提示
用winscp进系统修改目录权限(主要嫌命令麻烦),结果是下图,虽然解决了读取问题,但还是不行(事实证明偷懒是没有好结果!)
直接用命令connect手柄是会提示连接上但出错
唯一办法就是要打以下命令删除盒子蓝牙地址才能重新用官方教程添加手柄
- rm -rf ~/.cache/bluetooth/43:45:C0:00:1F:AC
复制代码 感觉是盒子转系统有什么东西改变了,才导致盒子的蓝牙不能认已经连接的蓝牙手柄,还有一个开机启动的脚本,里面有一些蓝牙连接的脚本,老实说也不好使也不能解决问题!- #!/bin/sh
- # SPDX-License-Identifier: GPL-2.0-or-later
- # Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
- # Place any scripts you need to run at boot on this file
- # Bluetooth, Make sure you change your BT MAC address, you need to do this by SSH the first time
- # by running
- #hcitool scan
- #bluetoothctl pair youmac #改成手柄蓝牙地址也无效
- #bluetoothctl trust youmc #改成手柄蓝牙地址也无效
- # If you want to use bluetooth, uncomment every line after this one
- #BTMAC="6E:18:21:80:63:25" #蓝牙手柄地址也无效,主要每次开机不可能重新匹配吧
- #(
- #echo "agent on" | bluetoothctl
- #echo "default-agent" | bluetoothctl
- #echo "power on" | bluetoothctl
- #echo "discoverable on" | bluetoothctl
- #echo "pairable on" | bluetoothctl
- #echo "scan on" | bluetoothctl
- #echo "trust $BTMAC" | bluetoothctl
- #echo "connect $BTMAC" | bluetoothctl
- #)&
复制代码
反正彻底解决了!请关注我发人人生日的一帖!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|