【TX2】英伟达Nvidia TX2连接蓝牙设备

1、问题描述

买了一个蓝牙键盘(航世B.O.W 折叠键盘HB099,200大洋),尝试在连接TX2的蓝牙,试试好使不

2、安装蓝牙

Blueman 是一个适合在 GNOME 桌面环境使用的图形化蓝牙管理工具。

sudo apt-get install blueman bluez*
vi /etc/bluetooth/main.conf
//去掉行[Policy]和AutoEnable前的注释,将AutoEnable 设置为True
[Policy]
AutoEnable=true

sudo vi /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
//屏蔽下面行
# Set bluetooth power up
#ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/bin/hciconfig %k up"

3、打开蓝牙

sudo rfkill unblock bluetooth
sudo rfkill list

查看蓝牙是否启动

hciconfig

4、连接蓝牙

$bluetoothctl
[bluetooth]list	//列出可用的蓝牙控制器
[bluetooth]select //选择使用的蓝牙控制器
[bluetooth]show	//显示蓝牙控制器的详细信息
[bluetooth]power on	//打开蓝牙
[bluetooth]scan on //搜索蓝牙设备,同时打开键盘上的蓝牙
[bluetooth]scan off //结束扫描
[bluetooth]pair 01:02:03:04:05:06 //选择蓝牙设备配对
[bluetooth]connect 01:02:03:04:05:06 //连接到蓝牙设备
[bluetooth]trust 01:02:03:04:05:06 //添加信任信任设备

Guess you like

Origin blog.csdn.net/u010168781/article/details/120924286