2024年11月24日星期日 上午8:05:53

bluetooth speaker is silent Checklist

2 年 前
#3726 引用
enable bluetooth on startup (Debian 11)


step 1.启动时打开蓝牙适配器电源

要在Linux系统启动时打开蓝牙适配器的电源,请打开配置文件:

$ sudo vim /etc/bluetooth/main.conf

添加行:AutoEnable=true,如下:

[Policy]
AutoEnable=true


output

# Number of ATT channels
# Possible values: 1-5 (1 disables EATT)
# Default to 3
#Channels = 3

[Policy]
AutoEnable=true
#
# The ReconnectUUIDs defines the set of remote services that should try




other

By default in Xenial, bluetooth is not power on.[1] rfkill unblock all only unblocks the device if the device is on service and blocked. So what you need is to power on the device and make sure that the daemon, bluetoothd, is working. Thus, you may consider to edit /etc/bluetooth/main.conf to control the behavior.
https://askubuntu.com/questions/938228/how-to-enable-bluetooth-at-startup-16-04-lts
0
2 年 前
#3732 引用
1
0
2 年 前
#3733 引用
1


Open sudo gedit /etc/rc.local file.

And add the following line before the exit 0:

rfkill unblock all


Now enter the following line in a terminal:

sudo reboot


After system boots up your bluetooth would be Enable.

output



root@raspberrypi:~# cat  /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi
rfkill unblock all
exit 0
root@raspberrypi:~#




https://askubuntu.com/questions/522042/enable-bluetooth-at-startup-on-14-04?newreg=cfe85450c5ed47bd8580e5798a4b84e5
0
2 年 前
#3734 引用

#开启代理后,可以搜索并与其他蓝牙设备配对
agent on
0
2 年 前
#3735 引用
1
0
2 年 前
#3736 引用
1
0
2 年 前
#3737 引用
1
0
2 年 前
#3738 引用



[BT73]# info  9A:07:65:B4:21:EC
Device 9A:07:65:B4:21:EC (public)
  Name: BT73
  Alias: BT73
  Class: 0x00240404
  Icon: audio-headset
  Paired: yes
  Trusted: yes
  Blocked: no
  Connected: yes
  LegacyPairing: no
  UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
  UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
  UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
  UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
  UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
  UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
  Modalias: bluetooth:v05D6p000Ad0240

0
2 年 前
#3740 引用
1
0
2 年 前
#3741 引用
1
0