蓝牙无法在Ubuntu 14.04中运行

我的笔记本电脑是sony VPCEH15EN。 在Ubuntu的早期版本中,如12.04和13.10,我的蓝牙曾经正常工作。 但是现在在Ubuntu 14.04中它无效。

这是sudo lshw -C network的输出

 *-network description: Wireless interface product: AR9285 Wireless Network Adapter (PCI-Express) vendor: Qualcomm Atheros physical id: 0 bus info: pci@0000:07:00.0 logical name: wlan0 version: 01 serial: cc:af:78:b3:e5:0f width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=ath9k driverversion=3.13.0-24-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn resources: irq:16 memory:92500000-9250ffff *-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:13:00.0 logical name: eth0 version: 06 serial: 78:84:3c:e7:0f:5a size: 10Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s resources: irq:41 ioport:2000(size=256) memory:91404000-91404fff memory:91400000-91403fff *-network description: Ethernet interface physical id: 1 logical name: wwan0 serial: fe:66:3d:53:82:83 capabilities: ethernet physical configuration: broadcast=yes driver=qmi_wwan driverversion=22-Aug-2005 firmware=WWAN/QMI device ip=10.49.48.237 link=yes multicast=yes 

lspci的输出

 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) 00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4) 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b4) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04) 07:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01) 0d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01) 13:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) 

ifconfig的输出

 eth0 Link encap:Ethernet HWaddr 78:84:3c:e7:0f:5a UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:491 errors:0 dropped:0 overruns:0 frame:0 TX packets:491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:52829 (52.8 KB) TX bytes:52829 (52.8 KB) wlan0 Link encap:Ethernet HWaddr cc:af:78:b3:e5:0f UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) 

这是lsusb的输出

 Bus 002 Device 006: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse Bus 002 Device 005: ID 8564:1000 Bus 002 Device 004: ID 0b38:0010 Gear Head 107-Key Keyboard Bus 002 Device 008: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode) 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 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth Bus 001 Device 003: ID 064e:a302 Suyin Corp. 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 

检查你的dmesg日志:

 dmesg | grep -i blue 

就我而言,我遇到了缺少固件的问题:

 $ dmesg | grep -i blue [ 2.216624] Bluetooth: Core ver 2.18 [ 2.216639] Bluetooth: HCI device and connection manager initialized [ 2.216644] Bluetooth: HCI socket layer initialized [ 2.216646] Bluetooth: L2CAP socket layer initialized [ 2.216653] Bluetooth: SCO socket layer initialized [ 2.237027] Bluetooth: Firmware file "ath3k-1.fw" not found [ 2.414454] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 2.414457] Bluetooth: BNEP filters: protocol multicast [ 2.414464] Bluetooth: BNEP socket layer initialized [ 2.419758] Bluetooth: RFCOMM TTY layer initialized [ 2.419767] Bluetooth: RFCOMM socket layer initialized [ 2.419772] Bluetooth: RFCOMM ver 1.11 

这解决了:

 sudo apt-get install linux-firmware 

希望这很有帮助。

我有两台笔记本电脑 – 东芝和富士通都很老,都是Windows 7和Ubuntu 14.04 LTE 32位双启动电脑。 两台计算机和两种操作系统均可正常工作,蓝牙连接到Bose mini soundlink扬声器,可播放音乐。 我使用USB蓝牙加密狗作为链接,一切正常。

然而,使用更新的笔记本电脑,运行64位版本的Ubuntu 14.04 LTE的东芝Satellite Pro C50-A-1K9尽管使用相同的加密狗和相同的扬声器,但我无法使蓝牙工作。 第一次找到设备时,尝试配对,但要求从设备输入特定的4位数代码。 这当然是不可能的,因为Bose mini soundlink扬声器没有键盘! 在第一次之后搜索蓝牙设备的进一步尝试一无所获。 如果我然后回到旧的记事本计算机,他们也无法使用Windows或Ubuntu 14.04 32位找到该设备。 我强烈怀疑64位版本的Ubuntu 14.04 LTE已经向扬声器发送了一个代码,以防止它之后通过蓝牙进行链接。

如果其他人有Bose mini soundlink扬声器并且需要克服这个问题,那么

  1. 首先打开扬声器,然后在扬声器发出蜂鸣声时按住蓝牙按钮约十秒钟,然后再使用旧计算机和Windows 7或Ubuntu 14.04 LTE 32位再次对扬声器执行恢复出厂设置。
  2. 避免使用Ubuntu 14.04 LTE 64位版本的蓝牙,直到非常熟练的程序员发现错误为止!

USB 3.0(xhci)和Atheros蓝牙设备存在问题。 我找到的解决方法涉及将echo3 echo "blacklist ath3k" | sudo tee /etc/modprobe.d/ath3k.conf echo "blacklist ath3k" | sudo tee /etc/modprobe.d/ath3k.conf然后在稍后使用/etc/rc.local到modprobe ath3k gksudo gedit /etc/rc.local并在线路出口0上方添加modprobe ath3k重新启动并带任何运气蓝牙将工作