FS#72540 - Bluetooth disconnects from dbus after suspend, causing bluetoothd to stop
Attached to Project:
Arch Linux
Opened by Gideon Farrell (gtf21) - Monday, 25 October 2021, 13:26 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 19 February 2022, 20:03 GMT
Opened by Gideon Farrell (gtf21) - Monday, 25 October 2021, 13:26 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 19 February 2022, 20:03 GMT
|
Details
Description:
On wake from suspend, bluetoothctl / bluez no longer works. Requires the service to be restarted. See logs, 100% reproducible. Additional info: Kernel: 5.14.14 Output of `pacman -Qs bluetooth`: local/blueman 2.2.2-1 local/bluez 5.62-1 local/bluez-libs 5.62-1 local/bluez-utils 5.62-1 local/hidapi 0.11.0-1 local/libldac 2.0.2.3-1 local/pulseaudio-bluetooth 15.0-1 local/sbc 1.5-2 Log file output: Oct 23 14:59:01 anaximander systemd[1]: Starting Bluetooth service... Oct 23 14:59:01 anaximander bluetoothd[639]: Bluetooth daemon 5.62 Oct 23 14:59:01 anaximander systemd[1]: Started Bluetooth service. Oct 23 14:59:01 anaximander bluetoothd[639]: Starting SDP server Oct 23 14:59:01 anaximander bluetoothd[639]: Bluetooth management interface 1.21 initialized Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_> Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_x> Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_> Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_x> Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_> Oct 23 15:00:06 anaximander bluetoothd[639]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_x> Oct 23 17:26:24 anaximander bluetoothd[639]: Controller resume with wake event 0x0 Oct 23 20:16:19 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:16:19 anaximander bluetoothd[639]: src/profile.c:ext_auth() Hands-Free Voice gateway rejected 74:5C:4B:C6> Oct 23 20:16:21 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:16:21 anaximander bluetoothd[639]: src/profile.c:ext_auth() Hands-Free Voice gateway rejected 74:5C:4B:C6> Oct 23 20:16:21 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:16:21 anaximander bluetoothd[639]: profiles/audio/a2dp.c:auth_cb() Access denied: org.bluez.Error.Rejected Oct 23 20:16:21 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:16:21 anaximander bluetoothd[639]: profiles/audio/avctp.c:auth_cb() Access denied: org.bluez.Error.Reject> Oct 23 20:17:20 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:17:20 anaximander bluetoothd[639]: src/profile.c:ext_auth() Hands-Free Voice gateway rejected 74:5C:4B:C6> Oct 23 20:17:21 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:17:21 anaximander bluetoothd[639]: profiles/audio/a2dp.c:auth_cb() Access denied: org.bluez.Error.Rejected Oct 23 20:17:21 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 20:17:21 anaximander bluetoothd[639]: profiles/audio/avctp.c:auth_cb() Access denied: org.bluez.Error.Reject> Oct 23 23:08:17 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 23:08:17 anaximander bluetoothd[639]: src/profile.c:ext_auth() Hands-Free Voice gateway rejected 74:5C:4B:C6> Oct 23 23:08:17 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 23:08:17 anaximander bluetoothd[639]: profiles/audio/a2dp.c:auth_cb() Access denied: org.bluez.Error.Rejected Oct 23 23:08:17 anaximander bluetoothd[639]: Authentication attempt without agent Oct 23 23:08:17 anaximander bluetoothd[639]: profiles/audio/avctp.c:auth_cb() Access denied: org.bluez.Error.Reject> Oct 24 12:52:48 anaximander bluetoothd[639]: Controller resume with wake event 0x0 Oct 24 18:44:59 anaximander bluetoothd[639]: Controller resume with wake event 0x0 Oct 25 09:27:39 anaximander bluetoothd[639]: Controller resume with wake event 0x0 Oct 25 09:27:53 anaximander bluetoothd[639]: Disconnected from D-Bus. Exiting. Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_x> Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc> Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_x> Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc> Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_x> Oct 25 09:27:53 anaximander bluetoothd[639]: Endpoint unregistered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc> Oct 25 09:27:53 anaximander bluetoothd[639]: Stopping SDP server Oct 25 09:27:53 anaximander bluetoothd[639]: Exit Oct 25 09:27:53 anaximander systemd[1]: bluetooth.service: Deactivated successfully. Oct 25 09:27:53 anaximander systemd[1]: bluetooth.service: Consumed 30.594s CPU time. Steps to reproduce: 1. system starts, `systemctl status bluetooth` should show bluetooth is running 2. close laptop lid to trigger suspend 3. wait for a bit to ensure the system has entered suspend 4. wake the machine, try to use bluetoothctl -- it fails 5. restart bluetooth `systemctl restart bluetooth` -- bluetooth now works |
This task depends upon
for existing kernel bluetooth bugs or file a new one:
https://bugzilla.kernel.org/query.cgi (linux-bluetooth or driver-bluetooth)
The temporary fix to restart bluetooth with `systemctl restart bluetooth` works, but it's not ideal having to do this, as it was not an issue before.