必须手动启用蓝牙 - Ubuntu 22.04 Lenovo Legion

必须手动启用蓝牙 - Ubuntu 22.04 Lenovo Legion

在 上升级到最新 BIOS(J2CN40WW)后Legion 5 Pro 16IAH7H Laptop (Lenovo) - Type 82RF,Ubuntu 22.04 启动后未启用蓝牙。

我需要手动打开设置并启用蓝牙,然后它才能开始工作。对于较旧的 BIOS(v32 左右),这不是问题。

知道可能是什么问题吗?

$ uname -a
Linux laptop 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ sudo journalctl -u bluetooth.service -b
Jul 15 11:52:24 laptop systemd[1]: Starting Bluetooth service...
Jul 15 11:52:24 laptop bluetoothd[2051]: Bluetooth daemon 5.64
Jul 15 11:52:24 laptop systemd[1]: Started Bluetooth service.
Jul 15 11:52:24 laptop bluetoothd[2051]: Starting SDP server
Jul 15 11:52:24 laptop bluetoothd[2051]: Bluetooth management interface 1.21 initialized
Jul 15 11:52:24 laptop bluetoothd[2051]: Failed to set mode: Blocked through rfkill (0x12)
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSink/sbc
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSource/sbc
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Jul 15 11:52:42 laptop bluetoothd[2051]: Endpoint registered: sender=:1.93 path=/MediaEndpoint/A2DPSource/sbc_xq_552
$ sudo dmesg | grep -i bluetooth
[   11.000350] Bluetooth: Core ver 2.22
[   11.000364] NET: Registered PF_BLUETOOTH protocol family
[   11.000365] Bluetooth: HCI device and connection manager initialized
[   11.000367] Bluetooth: HCI socket layer initialized
[   11.000368] Bluetooth: L2CAP socket layer initialized
[   11.000370] Bluetooth: SCO socket layer initialized
[   11.498471] Bluetooth: hci0: Device revision is 0
[   11.498485] Bluetooth: hci0: Secure boot is enabled
[   11.498489] Bluetooth: hci0: OTP lock is enabled
[   11.498492] Bluetooth: hci0: API lock is enabled
[   11.498494] Bluetooth: hci0: Debug lock is disabled
[   11.498498] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   11.498506] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[   11.507269] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[   13.065574] Bluetooth: hci0: Waiting for firmware download to complete
[   13.066501] Bluetooth: hci0: Firmware loaded in 1522684 usecs
[   13.066621] Bluetooth: hci0: Waiting for device to boot
[   13.084524] Bluetooth: hci0: Device booted in 17556 usecs
[   13.084875] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-0041.ddc
[   13.087502] Bluetooth: hci0: Applying Intel DDC parameters completed
[   13.091586] Bluetooth: hci0: Firmware timestamp 2022.5 buildtype 1 build 38020
[   14.644428] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.644431] Bluetooth: BNEP filters: protocol multicast
[   14.644434] Bluetooth: BNEP socket layer initialized
[   32.265356] Bluetooth: RFCOMM TTY layer initialized
[   32.265361] Bluetooth: RFCOMM socket layer initialized
[   32.265363] Bluetooth: RFCOMM ver 1.11
[   45.164334] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   45.164340] Bluetooth: HIDP socket layer initialized
[   45.165120] input: Magic Keyboard with Numeric Keypad Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/bluetooth/hci0/hci0:256/0005:004C:026C.000A/input/input29
[   45.165341] input: Magic Keyboard with Numeric Keypad as /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/bluetooth/hci0/hci0:256/0005:004C:026C.000A/input/input30
[   45.165495] hid-generic 0005:004C:026C.000A: input,hidraw9: BLUETOOTH HID v1.07 Keyboard [Magic Keyboard with Numeric Keypad] on bc:6e:e2:36:61:30
[   45.488406] input: Magic Keyboard with Numeric Keypad as /devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/bluetooth/hci0/hci0:256/0005:004C:026C.000A/input/input31
[   45.488750] apple 0005:004C:026C.000A: input,hidraw9: BLUETOOTH HID v1.07 Keyboard [Magic Keyboard with Numeric Keypad] on bc:6e:e2:36:61:30

开机后蓝牙还未工作时:

$ rfkill list 1
1: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no

运行sudo rfkill unblock bluetooth启用蓝牙。BIOS 没有蓝牙配置。

答案1

rfkill list 1

两行都应该显示“否”:

1: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no

如果软阻塞是肯定的,则原因与软件有关。如果硬阻塞是肯定的,则原因与硬件有关。请使用您得到的命令和结果编辑问题。

你需要一个 ...

sudo rfkill unblock bluetooth

如果这不能解除软锁请执行以下操作......

sudo rfkill unblock all

并再次检查。

如果你需要在重启后重新应用此设置,则你的 BIOS 可能已禁用蓝牙,因此请查看:当你更新 BIOS 时,它可能已被设置为禁用(如恢复出厂设置)。你可能还需要

sudo systemctl restart bluetooth

之后rfkill

这两个命令都应该需要一次,并且在重新启动时保持您离开时的状态。如果不是,请发表评论。


如果这些有效,请测试其中一个并将其用作永久解决方案(只需要其中一个):

  • 添加rfkill.default_state=1到 GRUB 启动选项(启动时首先执行 ,如果可行,vi /etc/default/grub请执行 ,找到GRUB_CMDLINE_LINUX_DEFAULT,并在末尾添加rfkill.default_state=1(带空格) ,保存并执行sudo update-grub)。

    (您可以通过删除所添加的字符串来恢复此操作)

  • 黑名单(pilot6 的评论)将是

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

    并添加

    blacklist ideapad_laptop
    

    (您可以通过删除所添加的行来恢复此操作)

老虫子似乎与此相关(尽管是关于解锁 wifi 而不仅仅是 BT)

相关内容