修复Ubuntu 18.1蓝牙耳机链连接失败的问题!

问题:蓝牙耳机可以配对但是无法连接!
解决问题:

《修复Ubuntu 18.1蓝牙耳机链连接失败的问题!》 问题.gif

在Ubuntu软件中下载BluetoothManager。

《修复Ubuntu 18.1蓝牙耳机链连接失败的问题!》 BluetoothManager.png

在BluetoothManager中出现了错误日志

《修复Ubuntu 18.1蓝牙耳机链连接失败的问题!》 blueman-manager.gif

Google关键词得到一篇文章https://zach-adams.com/2014/07/bluetooth-audio-sink-stream-setup-failed/

安装pulseaudio蓝牙模块
sudo apt-get install pulseaudio-module-bluetooth
如果问题仍然存在则运行
pactl load-module module-bluetooth-discover

实际情况是系统中已经安装最新版的pulseaudio蓝牙模块软件包,执行第二句命令后
问题得到了解决:

《修复Ubuntu 18.1蓝牙耳机链连接失败的问题!》 成功解决.gif
《修复Ubuntu 18.1蓝牙耳机链连接失败的问题!》 Bluetooth Manager.gif

那么pactl是什么工具呢?pactl load-module module-bluetooth-discover是什么意思呢?

查资料找到了文档http://manpages.ubuntu.com/manpages/cosmic/man1/pactl.1.html

pactl 是一个PulseAudio声音服务控制器(PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do advanced operations on your sound data as it passes between your application and your hardware. Things like transferring the audio to a different machine, changing the sample format or channel count and mixing several sounds into one are easily achieved using a sound server.),pactl被用来向PulseAudio声音服务发出控制指令,pact只能执行一部分操作,pacmad可以执行完整的设置。

load-module NAME [ARGUMENTS …]
Load the specified module with the specified arguments into the running sound server. Prints the numeric index of the module just loaded to STDOUT. You can use it to unload the module later.

那么pactl load-module module-bluetooth-discover的意思就是加载module-bluetooth-discover模块,那么这个问题的原因就已经出来了,是因为module-bluetooth-discover模块未被加载。

    原文作者:靳兆鲁
    原文地址: https://www.jianshu.com/p/635e75c2b051
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞