蓝牙在 Ubuntu 14.04 中不起作用

蓝牙在 Ubuntu 14.04 中不起作用

我的笔记本电脑是索尼 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

答案1

检查你的 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

希望这有帮助。

答案2

我有两台笔记本电脑 - 一台东芝,一台富士通,两台都很旧,都是双启动电脑,分别安装了 Windows 7 和 Ubuntu 14.04 LTE 32 位。两台电脑和两个操作系统都可以通过蓝牙连接到 Bose mini soundlink 扬声器播放音乐。我使用 USB 蓝牙适配器进行连接,一切正常。

但是,使用更新的笔记本电脑 Toshiba Satellite Pro C50-A-1K9,运行 64 位版本的 Ubuntu 14.04 LTE,尽管使用相同的适配器和相同的扬声器,蓝牙仍然无法工作。第一次找到设备时,它尝试配对,但要求从设备输入特定的 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 位版本中使用蓝牙!

答案3

USB 3.0(xhci) 和 Atheros 蓝牙设备存在问题。我找到的解决方法是将 ath3k 列入黑名单,echo "blacklist ath3k" | sudo tee /etc/modprobe.d/ath3k.conf然后稍后使用 /etc/rc.local 对 ath3k 进行 modprobe, gksudo gedit /etc/rc.localmodprobe ath3k在行上方添加 exit 0 重新启动,运气好的话蓝牙就可以正常工作了

相关内容