笔记本电脑型号:
Acer E5-471G
适配器型号: QCWB335 WLAN/蓝牙二合一适配器
Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
操作系统:
Arch Linux
内核版本:
5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000 x86_64 GNU/Linux
准备工作:
1.安装必要软件
blueman
bluez
bluez-hid2hci
bluez-utils
pulseaudio-bluetooth
症状:
使用 bluetoothctl 命令工具,检查蓝牙状态,提示没有控制器。
root:~# bluetoothctl
[bluetooth]# devices
No default controller available
使用 rfkill 命令工具,没看到蓝牙设备信息root:~# rfkill list
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
=======================================================
【知识储备】:
1. Atheros QCA9565 / AR9565 网卡驱动和蓝牙驱动不一样:
网卡驱动:ath9k
蓝牙驱动:ath3k
ref:
https://wireless.wiki.kernel.org/en/users/drivers/ath3k
https://wireless.wiki.kernel.org/en/users/drivers/ath9k
2. acer_wmi 驱动导致蓝牙无法启动。
ref:
https://itectec.com/ubuntu/ubuntu-qualcomm-atheros-bluetooth-4-0-not-working-on-ubuntu-16-04/
【解决方法】:
/etc/modprobe.d 目录下建立一个文本文件(文件名自定,比如:bluetooth-fix.conf),写入下面两行代码
options ath9k btcoex_enable=1 bt_ant_diversity=1
blacklist acer_wmi
【解释】:
options ath9k btcoex_enable=1 bt_ant_diversity=1
修改 网卡驱动参数,减少 WiFi 与蓝牙的互相干扰(无线网上传速率受影响严重,蓝牙耳机声音卡顿)
ref:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746164
blacklist acer_wmi
禁用 acer_wmi 驱动。该驱动会导致蓝牙无法启动,蓝牙图标无法出现在面板通知栏。
blacklist acer_wmi 可由 install acer_wmi /bin/false 代替,后者彻底禁用驱动,强力!
目前发现,禁用 acer_wmi 驱动 对我笔记本的影响是 WLAN 快键开关失效(Fn+F3)。
其他快捷开关仍然正常工作,比如:显示屏LED背光开关,背光亮度高低,音量大小,音乐播放控制,触摸板开关,静音开关,数字键盘锁定……
!!注意:是否必须 blacklist acer_wmi?
答:必须,否则蓝牙无法启动。 在系统启动时禁用,不要在进桌面后禁用,否则键盘无响应。
acer_wmi is a driver to allow you to control various parts of your Acer laptop hardware under Linux which are exposed via ACPI-WMI.
acer_wmi 是一个驱动程序,允许您在 Linux 下通过 ACPI-WMI 提供的接口,控制 Acer 笔记本电脑硬件的各个部分。
ref:
https://gitlab.inria.fr/blare/kblare/-/raw/0f8f86c7bdd1c954fbe153af437a0d91a6c5721a/Documentation/laptops/acer-wmi.txt
=======================================================
蓝牙正常后,使用命令查看状态:
root:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
root:~# lsmod | grep -i bt
btusb 69632 0
btrtl 28672 1 btusb
btbcm 16384 1 btusb
btintel 32768 1 btusb
bluetooth 724992 44 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm
root:~# lsmod | grep acer
acer_wmi 28672 0
sparse_keymap 16384 1 acer_wmi
rfkill 28672 8 acer_wmi,bluetooth,cfg80211
i8042 32768 1 acer_wmi
wmi 36864 3 acer_wmi,wmi_bmof,mxm_wmi
video 53248 2 acer_wmi,i915
其它参考:
深度linux 无线网卡,在Deepin Linux系统无线网卡、蓝牙模块驱动安装和出现问题的解决…
https://blog.csdn.net/weixin_28716723/article/details/116659254

