You are not logged in.

#1 2024-03-09 02:36:52

arenevier
Member
Registered: 2011-12-09
Posts: 5

bluetooth does not work after resuming from hibernation

Hi,

When I resume from hibernation, bluetooth does not work. The bluetooth service seems "stuck". bluetoothctl timeouts with:

bluetoothctl
Waiting to connect to bluetoothd...[bluetooth]#

Bluetooth service is show as running

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-03-08 18:24:44 PST; 7min ago
       Docs: man:bluetoothd(8)
   Main PID: 1187 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 47732)
     Memory: 2.8M (peak: 3.5M)
        CPU: 1min 32.389s
     CGroup: /system.slice/bluetooth.service
             └─1187 /usr/lib/bluetooth/bluetoothd

Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support vcp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support micp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support ccp plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: src/plugin.c:init_plugin() System does not support csip plugin
Mar 08 18:24:44 archlinux bluetoothd[1187]: Bluetooth management interface 1.22 initialized
Mar 08 18:24:44 archlinux systemd[1]: Started Bluetooth service.
Mar 08 18:24:45 archlinux bluetoothd[1187]: Battery Provider Manager created
Mar 08 18:24:45 archlinux bluetoothd[1187]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
Mar 08 18:24:45 archlinux bluetoothd[1187]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters

If I restart it, bluetooth service takes a very long  time to stop (like  1 or 2 minutes). But eventually, after a restart, bluetooth works correctly.

Does anyone else experience this issue?

Offline

#2 2024-03-12 16:20:47

sebweber51480
Member
Registered: 2024-03-12
Posts: 1

Re: bluetooth does not work after resuming from hibernation

Hello,
Exactly the same here.
No solution found yet.
SW.

Offline

#3 2024-03-22 19:12:27

julienfalque
Member
Registered: 2016-06-17
Posts: 43

Re: bluetooth does not work after resuming from hibernation

Same for me, even with linux-lts: bluetoothctl gets stuck. systemctl gets stuck too when trying to restart the bluetooth service.

Offline

#4 2024-03-22 19:40:20

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

Re: bluetooth does not work after resuming from hibernation

Did this happen after updating bluez?
https://bbs.archlinux.org/viewtopic.php?id=293772

Offline

#5 2024-03-23 09:23:53

julienfalque
Member
Registered: 2016-06-17
Posts: 43

Re: bluetooth does not work after resuming from hibernation

This thread describes different problems but I just tried downgrading bluez, bluez-utils and bluez-libs to older versions. After trying various combinations, I can say the issue happens between bluez-5.72-2 and bluez-5.73-3 (I don't have intermediary versions in my package cache). No issues with latest versions of bluez-utils and bluez-libs.

Offline

#6 2024-03-27 15:01:18

Laman
Member
Registered: 2020-07-18
Posts: 2

Re: bluetooth does not work after resuming from hibernation

For me, the issue persists, even with the current bluez:

extra/bluez 5.73-4 [installed]
extra/bluez-libs 5.73-4 [installed]
extra/bluez-utils 5.73-4 [installed]

Offline

#7 2024-04-01 17:33:32

jorgenwiki
Member
Registered: 2024-04-01
Posts: 5

Re: bluetooth does not work after resuming from hibernation

Same issue here.
blueman-manager complains also about no activation by D-Bus with a possible cause the graphics setup of D-bus (most with or sometimes without hibernating). I discovered this at the same time the hibernation issue was a problem. Until recent no problems at all.

On 13-3-2024 a new main.conf is installed in /etc/bluetooth. I just made de standard configuration default, Still broken with hibernation. At the end of the files some defaults are changed (e.g. channels that now default to 1 in stead of 3).

I've installed:
local/blueman 2.4-1
    GTK+ Bluetooth Manager
local/bluez 5.73-4
    Daemons for the bluetooth protocol stack
local/bluez-libs 5.73-4
    Deprecated libraries for the bluetooth protocol stack
local/bluez-utils 5.73-4
    Development and debugging utilities for the bluetooth protocol stack
local/hidapi 0.14.0-2
    Simple library for communicating with USB and Bluetooth HID devices
local/pulseaudio-bluetooth 17.0-3
    Bluetooth support for PulseAudio
local/sbc 2.0-1
    Bluetooth Subband Codec (SBC) library

Last edited by jorgenwiki (2024-04-01 18:46:19)

Offline

#8 2024-04-01 20:23:17

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

Re: bluetooth does not work after resuming from hibernation

The issue is w/ bluez 5.73 and the mitigation to downgrade to 5.72
The number behind the dash signifies a rebuild of the package that could have multiple reasons (but apparently no patch for this was applied) - you can look them up n the package version history on packages.archlinux.org

Offline

#9 2024-04-15 08:40:36

jorgenwiki
Member
Registered: 2024-04-01
Posts: 5

Re: bluetooth does not work after resuming from hibernation

Hi all, upgrade to 5.74-1 seems to fix this issue,
I just got an upgrade and tested resume (once) and it seems fine after resuming from hibernation.

Offline

#10 2024-04-15 18:16:00

julienfalque
Member
Registered: 2016-06-17
Posts: 43

Re: bluetooth does not work after resuming from hibernation

Same here: issue fixed with bluez 5.74-1.

Offline

#11 2024-04-15 19:38:22

Niicide
Member
Registered: 2024-04-10
Posts: 7

Re: bluetooth does not work after resuming from hibernation

I have bluez 5.74-1 (latest version) and I seem to be experiencing a similar issue. If I leave bluetooth on hibernation, it stops working where no sound comes out of my bluetooth device despite a video playing. I would switch the audio output to my built in laptop speakers and it would work but as soon as I switch it back to my bluetooth headphones, no sound comes out from it. The way I fix it is by simply disconnecting and recconecting the headphones which fixes it but this issue happens every time I leave my system on idle for 30 mins to an hour.

Offline

#12 2024-04-15 22:16:57

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

Re: bluetooth does not work after resuming from hibernation

If I leave bluetooth on hibernation … every time I leave my system on idle for 30 mins to an hour.

This thread is about https://wiki.archlinux.org/title/Hibernation
What if you add "btusb.enable_autosuspend=n" to the https://wiki.archlinux.org/title/Kernel_parameters ?
Do you have problem w/ other BT devices, too?

Offline

Board footer

Powered by FluxBB