AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1109895
Accepted
curl-up
curl-up
Asked: 2019-01-16 02:55:13 +0800 CST2019-01-16 02:55:13 +0800 CST 2019-01-16 02:55:13 +0800 CST

WiFi干扰蓝牙音频

  • 772

在联想 Y530 上运行 Kubuntu 18.10。

就其本身而言,WiFi 连接和蓝牙扬声器工作正常。如果两者都运行,则会引入严重干扰。这首先导致 WiFi 连接下降到速度的 10% 以下(在某些情况下,上传完全失败),以及 BT 信号严重干扰/跳过。

我尝试设置options iwlwifi bt_coex_active=N,/etc/modprobe.d/iwlwifi.conf这完全禁用了我的 BT(编辑:见下文)。然后我将它设置为bt_coex_active=0并删除了 Blueman(不确定它的删除是否重要),这解决了 WiFi 问题,但如果使用 WiFi,BT 信号仍然无法正常工作(仍然严重跳过)。

编辑:我现在尝试N再次将其设置为,它与0. 不知道为什么它以前不起作用。

在 Windows 上,一切正常。此外,如果我从手机连接到扬声器,一切都很好——这意味着它可能不是信号本身被卡住了(遗憾的是,我的路由器不支持 5GHz,所以我无法彻底检查)。我尝试更改 WiFi 频道,但没有任何效果。

可能是驱动问题,但使用 WiFi USB 适配器时也会出现同样的问题。可能是这样的,虽然这个适配器被声明为“正在使用”用于连接,但它并没有真正使用,而且 WiFi 仍在通过内置购物车进行 - 我不知道如何检查这一点。

这是这些问题通常要求的输出,请询问是否需要更多输出。谢谢!

$ uname -a
Linux mylenovo 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ sudo lshw -class network
  *-network                 
       description: Wireless interface
       product: QCA9377 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: wlp7s0
       version: 31
       serial: 00:f4:8d:ed:2b:99
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.18.0-13-generic firmware=WLAN.TF.1.0-00002-QCATFSWPZ-5 ip=192.168.5.19 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:145 memory:a4200000-a43fffff
  *-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:08:00.0
       logical name: enp8s0
       version: 15
       serial: e8:6a:64:49:a5:e4
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix 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=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:17 ioport:3000(size=256) memory:a4504000-a4504fff memory:a4500000-a4503fff


$ lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Device a369 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Device a334 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Device a335 (rev f0)
00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
06:00.0 Non-Volatile memory controller: Sandisk Corp Device 5002
07:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)


$ ethtool -i enp8s0
driver: r8169
version: 2.3LK-NAPI
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version: 
bus-info: 0000:08:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
wireless kubuntu bluetooth-speaker 18.10
  • 2 2 个回答
  • 2947 Views

2 个回答

  • Voted
  1. Best Answer
    KenshinPH
    2020-05-05T17:11:24+08:002020-05-05T17:11:24+08:00

    我刚刚通过购买双频路由器解决了这个问题(在 Ubuntu 20.04 上)。

    当我将 5GHz 频段的笔记本 wifi 与笔记本蓝牙中的音箱连接并在 YouTube 中播放音乐视频时,一切正常,性能一流。

    问题是蓝牙会在 2.4GHz wifi 中产生干扰,因为它也在这个频率上运行,但不会影响 5GHz 频段。

    • 3
  2. Alef Pereira
    2019-04-24T18:04:42+08:002019-04-24T18:04:42+08:00

    编辑2:

    亲爱的@ibestvinn,将我的内核升级到 4.18.0-18 对我不起作用,但我认为我解决了这个问题。

    经过一番研究,我发现@loan 提到的补丁对应于蓝牙设备04ca:3015 Lite-On Technology Corp(较旧的 QCA9377使用此芯片)。当我们的模型使用0cf3:e500 Atheros Communications, Inc.时,我下载了内核源代码来检查是否0cf3:e500包含在btusb.c黑名单中,而事实并非如此。因此,使用Jeremy31此处描述的步骤决定添加0cf3:e500,仅重新编译内核模块并替换btusb.ko内核模块,它似乎有效。

    重新编译模块的过程非常简单。我做了如下:

    1)下载内核源代码(考虑为您使用的任何版本更改“4.18.0”):

    # In a working directory, run:
    apt source linux-source-4.18.0 
    

    2) 修复此设备的代码。将 0x0cf3:e500 包含在btusb.c.

    # Here the source was extracted to linux-hwe-4.18.0.
    cd linux-hwe-4.18.0/drivers/bluetooth
    
    # Change btusb.c with editor of your choice. Ex:
    vim btusb.c
    

    在btusb.c文件中添加{ USB_DEVICE(0x0cf3, 0xe500), .driver_info = BTUSB_QCA_ROME },到static const struct usb_device_id blacklist_table[].

    文件应该是这样的:

    static const struct usb_device_id blacklist_table[] = {
        ...
        /* QCA ROME chipset */
        ...
        { USB_DEVICE(0x04ca, 0x3015), .driver_info = BTUSB_QCA_ROME },
        { USB_DEVICE(0x04ca, 0x3016), .driver_info = BTUSB_QCA_ROME },
        { USB_DEVICE(0x04ca, 0x301a), .driver_info = BTUSB_QCA_ROME },
        { USB_DEVICE(0x13d3, 0x3496), .driver_info = BTUSB_QCA_ROME },
        // This is the fix for QCA9377 bluetooth 0x0cf3:e500
        { USB_DEVICE(0x0cf3, 0xe500), .driver_info = BTUSB_QCA_ROME },
        ...
    

    3) 编译模块。您可能需要一些需要make,build-essential为此,如果未安装,请使用“sudo apt install make build-essential”进行安装。

    make -C /lib/modules/$(uname -r)/build M=$PWD modules
    

    4)“安装”并重新启动。为新的 btusb 更换 btusb 模块并重新启动。

    # You may do a backup of the old file:
    sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.backup
    
    # Copy and replace btusb.ko to module location:
    sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
    
    # Reboot and test
    reboot
    

    之后我没有遇到任何问题。无线好像还可以,蓝牙耳机好像也可以。

    如果您也可以测试,请在此处分享结果。如果它真的解决了问题,我们可以要求它包含在未来的 linux 内核版本中。

    编辑:

    亲爱的@ibestvinn,我发现了另一个问题,@Ioan 回答这个问题在 Linux 4.16 中得到了解决。看看那里。我会尝试升级我的内核并测试它。祝你好运!

    蓝牙耳机播放声音时 Wifi 变慢。高通创锐讯 QCA9377

    老的:

    这实际上不是答案,但我无法发表评论。

    --

    亲爱的@ibestvinn,我的三星笔记本电脑使用相同的网络芯片,Qualcomm Atheros QCA9377,也遇到了同样的问题。

    当我将 bt 耳机连接到计算机时,无线连接最差。音频质量受到影响,但对 Wifi 的影响简直是巨大的。对我的 AP 的 Ping 大于 5000 毫秒 - 如果没有蓝牙耳机,通常小于 6 毫秒。

    我试过options iwlwifi bt_coex_active=0了,但它对我不起作用。实际上,除非我手动启动它,否则 iwlwifi 似乎没有运行,但没有它,我的无线和蓝牙工作正常。

    这个问题真的很烦人。如果我们可以通过软件配置解决这个问题,那就太好了,因为bt和无线共享天线。

    你有运气吗?

    • 0

相关问题

  • 如何将 Ubuntu 设置为无线接入点?

  • 如何为 LG X130 上网本安装 relink 无线驱动程序

  • 无论用户是否登录,如何配置 WiFi 以在启动时登录 WPA?

  • 如何设置与 Eee PC 1005 的无线连接?[关闭]

  • 为什么我的 Kubuntu 会话在恢复后需要相当长的时间才能响应?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve