运行 Ubuntu 20.10 的 MSI GE66 笔记本电脑上的蓝牙快速开启和关闭,占用了 100% 的 CPU

运行 Ubuntu 20.10 的 MSI GE66 笔记本电脑上的蓝牙快速开启和关闭,占用了 100% 的 CPU

我刚刚在 MSI GE66 笔记本电脑上全新安装了 Ubuntu 20.10。出于某种原因,蓝牙快速切换并关闭。以下视频演示了正在发生的事情: https://youtu.be/Y7kT3Nkxkag

此外,当我运行时,htop它显示systemd-udevd使用了 100% 的 CPU(我机器上的 16 个线程之一)。运行过程中udevadm monitor不断打印以下内容:

KERNEL[14196.456057] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14196.457305] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14196.457336] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14196.457376] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24105 (rfkill)
KERNEL[14196.457501] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14196.457517] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14196.457541] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14196.457568] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14196.458030] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
UDEV  [14196.458060] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
UDEV  [14196.514604] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14196.614800] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24105 (rfkill)
KERNEL[14196.614815] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14196.614824] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14196.614846] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14196.614857] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14196.614867] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14196.625238] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14196.625276] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14196.670293] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill4297 (rfkill)
KERNEL[14197.044037] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14197.045068] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.045100] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14197.045128] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24106 (rfkill)
KERNEL[14197.045203] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.045243] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.045273] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.045327] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14197.045651] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
UDEV  [14197.045683] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.202815] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24106 (rfkill)
KERNEL[14197.202852] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14197.202862] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.202870] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.202895] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.202904] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.213432] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14197.213468] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14197.632034] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14197.633245] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.633276] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14197.633284] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24107 (rfkill)
KERNEL[14197.633380] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.633536] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.633572] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.633583] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14197.633872] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14197.650160] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill4297 (rfkill)
UDEV  [14197.650484] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.790798] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24107 (rfkill)
KERNEL[14197.790837] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14197.790862] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.790890] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.790915] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14197.790924] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14197.801383] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14197.801418] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
UDEV  [14197.804361] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
UDEV  [14197.804580] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
UDEV  [14197.957591] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
UDEV  [14198.111830] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14198.220004] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)
KERNEL[14198.221202] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14198.221232] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 (bluetooth)
KERNEL[14198.221242] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/rfkill24108 (rfkill)
KERNEL[14198.221291] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0 (usb)
KERNEL[14198.221391] add      /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14198.221427] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.1 (usb)
KERNEL[14198.221461] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-14 (usb)

到底发生了什么?我该如何解决这个问题?

编辑

这是有关我的系统的更多信息。

输出sudo lshw | grep product

    product: GE66 Raider 10UH (1542.1)
       product: MS-1542
             product: HMAA2GS6AJR8N-XN
             product: HMAA2GS6AJR8N-XN
          product: Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
          product: 10th Gen Core Processor Host Bridge/DRAM Registers
             product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)
                product: NVIDIA Corporation
                product: NVIDIA Corporation
             product: UHD Graphics
             product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
             product: Comet Lake PCH Thermal Controller
             product: Comet Lake USB 3.1 xHCI Host Controller
                product: xHCI Host Controller
                   product: SteelSeries KLC
                   product: SteelSeries ALC
                   product: Integrated Camera
                product: xHCI Host Controller
             product: Comet Lake PCH Shared SRAM
             product: Comet Lake PCH Serial IO I2C Controller #0
             product: Comet Lake PCH Serial IO I2C Controller #2
             product: Comet Lake HECI Controller
             product: Comet Lake PCI Express Root Port #17
                product: ASMedia Technology Inc.
                   product: xHCI Host Controller
                   product: xHCI Host Controller
             product: Comet Lake PCI Express Root Port #9
                product: Sandisk Corp
                   product: WDC PC SN730 SDBPNTY-1T00-1032
             product: Intel Corporation
                product: Intel Corporation
             product: Intel Corporation
                product: Intel Corporation
             product: Intel Corporation
                product: RTS525A PCI Express Card Reader
             product: Comet Lake LPC Controller
             product: Comet Lake PCH cAVS
             product: Comet Lake PCH SMBus Controller
             product: Comet Lake PCH SPI Controller
          product: PnP device PNP0c02
          product: PnP device MSI0007
          product: PnP device PNP0f13
          product: PnP device PNP0c02
          product: PnP device PNP0b00
          product: PnP device INT3f0d
          product: PnP device PNP0c02
          product: PnP device PNP0c02
          product: PnP device PNP0c02
          product: PnP device PNP0c02
       product: To Be Filled By O.E.M.

输出spci -knn | grep Net -A3; lsusb

04:00.0 Network controller [0280]: Intel Corporation Device [8086:2725] (rev 1a)
    Subsystem: Intel Corporation Device [8086:0024]
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1038:1122 SteelSeries ApS SteelSeries KLC
Bus 001 Device 067: ID 8087:0032 Intel Corp. 
Bus 001 Device 004: ID 5986:1160 Acer, Inc Integrated Camera
Bus 001 Device 003: ID 1038:1132 SteelSeries ApS SteelSeries ALC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

编辑2

即使我无法让蓝牙工作也没关系。我完全禁用它也没关系,毕竟我只是不想让它像现在这样消耗 CPU。

编辑3

我刚刚全新安装了 Ubuntu 20.04,遇到了同样的问题。

答案1

尝试了很多方法后,我可以通过以下步骤完全禁用蓝牙:

sudo vim /etc/modprobe.d/blacklist.conf

然后添加以下行: blacklist btusb

然后最后重新启动。

蓝牙不再打开和关闭,也不再消耗 CPU - 虽然这不是一个很好的解决方案,因为它最终涉及禁用蓝牙。

答案2

我在使用 5.10.24 内核的 Ubuntu 20.04.02 上遇到了同样的问题。

插入以下行/etc/udev/rules.d/81-bluetooth-hci.rules解决了我的问题:

SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0032", ATTR{authorized}="0"

基本上,通过上述设置您可以禁用英特尔蓝牙适配器。

相关内容