You are not logged in.

#1 2022-08-12 03:59:07

Salkay
Member
Registered: 2014-05-22
Posts: 682

[SOLVED] Automatically connect Bluetooth headphones

I'm have a pair of Bluetooth headphones. When I turn them on, they used to automatically connect immediately. Since a few months ago, they no longer connect automatically, instead timing out after 10 minutes and turning off by themselves. They are paired, bonded, and trusted.

$ bluetoothctl
[bluetooth]# devices
Device <redacted> NC25
[bluetooth]# info <redacted>
...
	Paired: yes
	Bonded: yes
	Trusted: yes
	Blocked: no
	Connected: no

I'm using Pipewire. I also tried installing bluetooth-autoconnect, but this did not help.

I can connect the headphones manually using the Bluetooth icon in KDE Plasma's system tray. I can connect them by restarting bluetooth.service, or by restarting bluetooth-autoconnect.service. Oddly enough, if I turn the headphones off then on, they connect immediately, so it maybe feels like bluetooth is "sleeping", and I need to wake it up. Is there a way to get my headphones to connect automatically?

EDIT
I should also note that I do have Bluetooth auto-suspend disabled.

$ cat /proc/cmdline
... btusb.enable_autosuspend=n

EDIT2
Looks like this needs to be btusb.enable_autosuspend=0, which fixes it.

Last edited by Salkay (2022-10-22 05:33:16)

Offline

Board footer

Powered by FluxBB