void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.6k stars 2.17k forks source link

bluetooth broken after update #45801

Open ObscureXwing opened 1 year ago

ObscureXwing commented 1 year ago

Is this a new report?

Yes

System Info

xuname : Void 6.4.12_1 x86_64 AuthenticAMD notuptodate rrrmDDDFFFFFFFFFFFFFFFFFFFFFF ; hardware : MinisForum X500 (Ryzen 7 5700G) with WiFi 6 AX200 and Bluetooth ; DE : MATE(X11)

Package(s) Affected

bluez-5.68_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Just like I used to do before, start the pc, open blueman(MATE), connect to my wireless headphones, then work/play multimedia etc

Actual behaviour

Bluetooth no longer works, when i try to open blueman it crashes, then i tried to run blueman-manager in terminal and saw the following errors :

blueman-manager 21.31.36 ERROR    Manager:147 on_dbus_name_appeared: Default adapter not found, trying first available.
blueman-manager 21.31.36 ERROR    Manager:151 on_dbus_name_appeared: No adapter(s) found, exiting

It's like the system doesn't see bluetooth anymore, rfkill shows nothing (just empty, weird), bluetoothctl says : No default controller available

dmesg | grep Blue :

[    3.770632] Bluetooth: Core ver 2.22
[    3.770639] Bluetooth: HCI device and connection manager initialized
[    3.770642] Bluetooth: HCI socket layer initialized
[    3.770643] Bluetooth: L2CAP socket layer initialized
[    3.770645] Bluetooth: SCO socket layer initialized
[    6.410992] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    6.410994] Bluetooth: BNEP filters: protocol multicast
[    6.410997] Bluetooth: BNEP socket layer initialized

ls /var/service/ :

NetworkManager
agetty-tty1
agetty-tty2
agetty-tty3
agetty-tty4
agetty-tty5
agetty-tty6
avahi-daemon
bluetoothd
dbus
elogind
haveged
sddm
udevd
wpa_supplicant

hcitool dev :

Devices:

xbps-query -l | grep blue :

ii blueman-2.3.5_1                                             GTK+ Bluetooth Manager
ii bluez-5.66_1                                                Bluetooth tools and daemons
ii bluez-alsa-3.1.0_1                                          Bluetooth Audio ALSA Backend
ii bluez-cups-5.66_1                                           CUPS printer backend for Bluetooth printers
ii bluez-deprecated-5.68_1                                     Bluetooth tools and daemons - deprecated tools
ii libbluetooth-5.68_1                                         Library to use the Bluez Linux Bluetooth Stack
ii libspa-bluetooth-0.3.74_1                                   Server and user space API to deal with multimedia pipelines - bluetooth plugins

lspci -k :

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
    Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
    Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
    Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
    Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
    Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller
    Kernel driver in use: piix4_smbus
    Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
    Subsystem: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
    Kernel driver in use: k10temp
    Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. OM3PDP3 NVMe SSD (rev 01)
    Subsystem: Kingston Technology Company, Inc. OM3PDP3 NVMe SSD
    Kernel driver in use: nvme
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
    Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
    Kernel driver in use: r8169
    Kernel modules: r8169
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
    Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
    Kernel driver in use: r8169
    Kernel modules: r8169
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c8)
    Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 1636
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
    Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
    Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
    Kernel driver in use: ccp
    Kernel modules: ccp
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 7914
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
    Subsystem: Advanced Micro Devices, Inc. [AMD] Device 7914
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
    Subsystem: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
    DeviceName: Realtek ALC1220
    Subsystem: Conexant Systems, Inc. Device 0200
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

Tried restarting the bluetoothd daemon, to no avail, tried plugging in the btusb kernel module, deleted configurations in /var/lib/bluetooth and /etc/bluetooth/, used xdowngrade to do a rollback of the bluez version back, added a user to the bluetooth group, in the process, I rebooted a million times trying to do something..But looks like the problem might be somewhere else, I don't know where, but Bluetooth now simply doesn't work, not at all.

Steps to reproduce

  1. sudo xbps-install -Su
  2. reboot
  3. done
CtrlC-Root commented 1 year ago

FWIW I just updated my system and bluetooth works fine.

xbps-query -l | grep blue:

ii blueman-2.3.5_1                                             GTK+ Bluetooth Manager
ii bluez-5.68_1                                                Bluetooth tools and daemons
ii libbluetooth-5.68_1                                         Library to use the Bluez Linux Bluetooth Stack
ii libspa-bluetooth-0.3.77_1                                   Server and user space API to deal with multimedia pipelines - bluetooth plugins

ls /var/service/ | sort:

NetworkManager
agetty-tty1
agetty-tty2
agetty-tty3
agetty-tty4
agetty-tty5
agetty-tty6
avahi-daemon
bluetoothd
chronyd
cupsd
dbus
lightdm
spacenavd
sshd
udevd

dmesg | grep Blue:

[   10.513535] Bluetooth: Core ver 2.22
[   10.513553] Bluetooth: HCI device and connection manager initialized
[   10.513555] Bluetooth: HCI socket layer initialized
[   10.513557] Bluetooth: L2CAP socket layer initialized
[   10.513559] Bluetooth: SCO socket layer initialized
[   10.659551] Bluetooth: hci0: Device revision is 2
[   10.659555] Bluetooth: hci0: Secure boot is enabled
[   10.659556] Bluetooth: hci0: OTP lock is enabled
[   10.659556] Bluetooth: hci0: API lock is enabled
[   10.659557] Bluetooth: hci0: Debug lock is disabled
[   10.659557] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   10.659558] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[   10.661479] Bluetooth: hci0: Found device firmware: intel/ibt-0040-4150.sfi
[   10.661499] Bluetooth: hci0: Boot Address: 0x100800
[   10.661500] Bluetooth: hci0: Firmware Version: 98-13.23
[   11.596144] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   11.596148] Bluetooth: BNEP filters: protocol multicast
[   11.596153] Bluetooth: BNEP socket layer initialized
[   12.176185] Bluetooth: hci0: Waiting for firmware download to complete
[   12.176554] Bluetooth: hci0: Firmware loaded in 1479591 usecs
[   12.176697] Bluetooth: hci0: Waiting for device to boot
[   12.192662] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[   12.192692] Bluetooth: hci0: Device booted in 15683 usecs
[   12.193052] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-4150.ddc
[   12.194737] Bluetooth: hci0: Applying Intel DDC parameters completed
[   12.197789] Bluetooth: hci0: Firmware timestamp 2023.13 buildtype 1 build 62562
[   12.265676] Bluetooth: MGMT ver 1.22
[   18.925570] Bluetooth: RFCOMM TTY layer initialized
[   18.925579] Bluetooth: RFCOMM socket layer initialized
[   18.925583] Bluetooth: RFCOMM ver 1.11

So it may be related to your hardware or system setup.

vxld100 commented 1 year ago

I've had the same issue, and on two of my devices. It's definitely not a rare occurrence with obscure configuration.

Luciogi commented 1 year ago

you guys should share that which wifi/bluethooth chips installed on motherboard I am using AX201 it works fine on KDE plasma with bluedevil also check https://docs.voidlinux.org/config/bluetooth.html

bali-BR commented 11 months ago

Hello, I'm a layman here on git hub and I'm not sure if I'm in the right topic. I have an Apple rechargeable wireless Magic Mouse and it stopped working with the latest bluez update (5.70_2) on my void linux 20230628-xfce. I downgraded to version 5.70_1 (sudo xdowngrade /var/cache/xbps/bluez-5.70_1.xbps) and when I restarted the system it started working again, not yet as it should (I think it should start automatically after the first configuration and pairing, but for now it's good). It was the quickest solution I found at the moment and if there is another, please let me know.

bali-BR commented 11 months ago

And for now, to prevent from being updated during a system update: sudo xbps-pkgdb -m hold bluez-5.70_1

classabbyamp commented 11 months ago

the only difference between _1 and _2 is this: https://github.com/void-linux/void-packages/commit/6ad1c2bc842a008bdedd55f2039577951dabc5fb#diff-39c975121fa5b35a8047a9fb902b68c28287752cec67cf9b37ba714b76db4d16

you could try setting ClassicBondedOnly=false in the config

bali-BR commented 11 months ago

I did it. I added the line "ClassicBondedOnly=false" to /etc/bluetooth/main.conf. Then I unheld bluez and updated it to _2 and then I rebooted the system but it didn't work. I downgraded to _1 again...

bali-BR commented 11 months ago

If there was only a change in the ClassicBondedOnly default, from false to true, perhaps I changed the wrong config file