我是 Ubuntu 的菜鸟。我的 Ubuntu 中的蓝牙无法使用。它在 Windows 中工作正常,但在 Ubuntu 中却不行。我在 Ubuntu 论坛中搜索了很多页面,但没有一个能让蓝牙工作。我想我知道问题所在。我将它粘贴在下面:
anvesh@anvesh-Lenovo-G500:~$ sudo rfkill list
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
anvesh@anvesh-Lenovo-G500:~$ lsusb; dmesg | grep -i firmware
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 105b:e065
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04f2:b3bb Chicony Electronics Co., Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
答案1
首先我们需要获取一些文件
sudo apt-get install linux-headers-generic build-essential
wget https://www.dropbox.com/s/f503f6r686riiow/fw-105b_e065.hcd
echo btusb | sudo tee -a /etc/modules
如果uname -a
显示你有一个 3.13 内核,那么
wget https://www.dropbox.com/s/rlv2prqzzptcr6f/bluetooth-trusty.tar.gz
tar -zxf bluetooth-trusty.tar.gz
cd bluetooth
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp ~/fw-105b_e065.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd
sudo cp ~/fw-105b_e065.hcd /lib/firmware/
sudo modprobe btusb
如果你有 3.16 内核
wget https://www.dropbox.com/s/uocd0xqaprm4yvi/bluetooth.utopic.tar.gz
tar -zxf bluetooth.utopic.tar.gz
cd bluetooth
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp ~/fw-105b_e065.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd
sudo modprobe btusb
如果更新安装的新内核尚不支持该设备,则需要执行以下操作才能使其再次运行
cd bluetooth
make -C /lib/modules/$(uname -r)/build M=$PWD clean
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo modprobe -r btusb
sudo modprobe btusb
如果您有不同系列的内核,只需在注释中添加它即可。如果您执行sudo update-usbids
并查看,lsusb
您应该注意到 ID 为 105b:e065 的设备被识别为 Broadcom BCM43142A0 蓝牙