You are not logged in.

#1 2024-03-28 19:36:42

UM-Li
Member
Registered: 2021-07-30
Posts: 4
Website

[SOLVED] bluez v5.73: Bluetooth Dies after Resuming from Hibernation

Since bluez got updated to v5.73, bluetooth stops working after resuming from hibernation.

Controller info (before hibernation):

$ bluetoothctl show
Controller 90:E8:68:E8:16:74 (public)
        Manufacturer: 0x005d (93)
        Version: 0x08 (8)
        Name: asus-e210
        Alias: ASUS E210
        Class: 0x006c010c (7078156)
        Powered: yes
        PowerState: on
        Discoverable: no
        DiscoverableTimeout: 0x000000b4 (180)
        Pairable: yes
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (03b80e5a-ede8-4b33-a751-6ce34ec4c700)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0549
        Discovering: no
        Roles: central
        Roles: peripheral
Advertising Features:
        ActiveInstances: 0x00 (0)
        SupportedInstances: 0x05 (5)
        SupportedIncludes: appearance
        SupportedIncludes: local-name 

But bluetoothctl fails to find the controller after resume:

# Hibernate and resume...
$ bluetoothctl show
No default controller available

I tried doing these:

What have not worked

Running rfkill returns the same before and after hibernation; nothing seems to be blocked, nor does rfkill unblock bluetooth solve the issue:

$ rfkill
ID TYPE      DEVICE              SOFT      HARD
 0 bluetooth asus-bluetooth unblocked unblocked
 1 bluetooth hci0           unblocked unblocked
 2 wlan      phy0           unblocked unblocked

Reloading the btusb kernel module returns no error, but does not solve the issue either.

What have worked

Restarting bluetooth.service after resuming works, but bluetoothd seems frozen and has to be killed first:

systemd[1]: Stopping Bluetooth service...
systemd[1]: bluetooth.service: State 'stop-sigterm' timed out. Killing.
systemd[1]: bluetooth.service: Killing process 751 (bluetoothd) with signal SIGKILL.
systemd[1]: bluetooth.service: Main process exited, code=killed, status=9/KILL
systemd[1]: bluetooth.service: Failed with result 'timeout'.
systemd[1]: Stopped Bluetooth service.
systemd[1]: bluetooth.service: Consumed 3min 29.184s CPU time, 3.6M memory peak, 492.0K memory swap peak.
systemd[1]: Starting Bluetooth service...
bluetoothd[3179]: Bluetooth daemon 5.73
systemd[1]: Started Bluetooth service.
bluetoothd[3179]: Starting SDP server
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support bap plugin
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support bass plugin
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support mcp plugin
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support vcp plugin
bluetoothd[3179]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support micp plugin
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support ccp plugin
bluetoothd[3179]: src/plugin.c:init_plugin() System does not support csip plugin
bluetoothd[3179]: Bluetooth management interface 1.22 initialized
bluetoothd[3179]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Failed (0x03)
bluetoothd[3179]: Battery Provider Manager created
bluetoothd[3179]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
bluetoothd[3179]: Failed to clear UUIDs: Failed (0x03)
bluetoothd[3179]: Failed to add UUID: Failed (0x03)
bluetoothd[3179]: Failed to add UUID: Failed (0x03)
bluetoothd[3179]: Failed to add UUID: Failed (0x03)
bluetoothd[3179]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters
bluetoothd[3179]: Endpoint registered: ...

Downgrading bluez to v5.72 solves the issue as well.

Others

The kernel generates these error messages when resuming from hibernation, though they are present with both bluez v5.72 and 5.73:

kernel: Bluetooth: hci0: urb 000000004afd1851 failed to resubmit (113)
kernel: btusb 1-8:1.0: suspend error -16
kernel: btusb 1-8:1.1: suspend error -16 

There are also these bluetoothd journal entries before the system hibernates:

bluetoothd[751]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
bluetoothd[751]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters
bluetoothd[751]: profiles/input/hog-lib.c:proto_mode_read_cb() Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_read_cb() Error reading Report value: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
bluetoothd[751]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error

Last edited by UM-Li (2024-04-17 18:49:54)


Мяу?

Offline

#2 2024-03-28 23:04:08

seth
Member
Registered: 2012-09-03
Posts: 51,659

Re: [SOLVED] bluez v5.73: Bluetooth Dies after Resuming from Hibernation

Online

#3 2024-04-17 18:49:43

UM-Li
Member
Registered: 2021-07-30
Posts: 4
Website

Re: [SOLVED] bluez v5.73: Bluetooth Dies after Resuming from Hibernation

Updated bluez to v5.75 today and the issue has disappeared.  I will mark this as solved.


Мяу?

Offline

Board footer

Powered by FluxBB