void-linux / void-packages

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

Bluez looses control after scan, bluetooth somehow become a zombie process #52732

Open SpidFightFR opened 21 hours ago

SpidFightFR commented 21 hours ago

Is this a new report?

Yes

System Info

Void 6.11.4_1 x86_64 AuthenticAMD uptodate FFFFFF

Package(s) Affected

bluez-5.76_1

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

N.A

Expected behaviour

scan on should display the available bluetooth devices

Actual behaviour

[bluetooth]# scan on
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# Failed to start discovery: org.bluez.Error.InProgress
[bluetooth]# scan off
[bluetooth]# Failed to stop discovery: org.bluez.Error.Failed

Steps to reproduce

  1. bluetoothctl
  2. scan on
SpidFightFR commented 21 hours ago

yesterday it worked normally, but i guess another update randomly broke it for some reasons...

SpidFightFR commented 6 hours ago

I tried running btmon like the archwiki suggest, in a desperate attempt to get more info:

Bluetooth monitor ver 5.76
btmon[11524]: = Note: Linux version 6.11.4_1 (x86_64)                                                                                                                                0.537217
btmon[11524]: = Note: Bluetooth subsystem version 2.22                                                                                                                               0.537221
= New Index: E0:0A:F6:73:7B:8E (Primary,USB,hci0)                                                                                                                             [hci0] 0.537223
= Open Index: E0:0A:F6:73:7B:8E                                                                                                                                               [hci0] 0.537224
= Index Info: E0:0A:F6:73:7B:8E (Realtek Semiconductor Corporation)                                                                                                           [hci0] 0.537225
bluetoothd[893]: @ MGMT Open: bluetoothd (privileged) version 1.23                                                                                                          {0x0001} 0.537227

bluetoothctl[11542]: @ MGMT Open: bluetoothctl version 1.23                                                                                                                {0x0002} 11.759877
bluetoothd[893]: @ MGMT Command: Start Discovery (0x0023) plen 1                                                                                                    {0x0001} [hci0] 13.237297
        Address type: 0x07
          BR/EDR
          LE Public
          LE Random
@ MGMT Event: Command Complete (0x0001) plen 4                                                                                                                      {0x0001} [hci0] 13.237313
      Start Discovery (0x0023) plen 1
        Status: Busy (0x0a)
        Address type: 0x07
          BR/EDR
          LE Public
          LE Random
bluetoothctl[11542]: @ MGMT Close: bluetoothctl                                                                                                                            {0x0002} 30.328488
SpidFightFR commented 6 hours ago

It's weird, because it works on my desktop, but not on my laptop. Despite the both of them having similar configurations.

I noticed as well that Bluez only detects some devices (My smart tv for example) but not other devices such as my bluetooth mouse.

It's really weird.