You are not logged in.

#1 2024-05-13 22:08:49

surfer
Member
Registered: 2024-05-10
Posts: 5

Bluetooth speaker not connecting on system startup

Dear arch experts,

For context: I am using the pipewire/pipewire-pulse/wireplumber stack.

I have a bluetooth speaker connected to my PC for audio. I managed to get the bluetooth device connected (and paired and trusted) and the audio works fine.

However, I am experiencing a frustrating problem that I cannot get it to automatically connect when the system starts.

After a fresh boot:
`journalctl -r -b0 -u bluetooth`

May 13 23:35:29 cyxwel bluetoothd[838]: src/gatt-database.c:client_ready_cb() Failed to create GATT service entry in local database
May 13 23:35:29 cyxwel bluetoothd[838]: src/gatt-database.c:database_add_app() Failed to add service
May 13 23:35:29 cyxwel bluetoothd[838]: src/gatt-database.c:database_add_service() Failed to add characteristic
May 13 23:35:29 cyxwel bluetoothd[838]: src/gatt-database.c:database_add_chrc() Failed to create characteristic entry in database
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05_duplex
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05_duplex
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream_duplex
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_0
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_1
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc_xq
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc_xq
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aac
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aac
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_hd
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx_hd
May 13 23:35:29 cyxwel bluetoothd[838]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/ldac
May 13 23:34:30 cyxwel bluetoothd[838]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 00:22:D9:00:1A:BE: Protocol not available
May 13 23:34:29 cyxwel bluetoothd[838]: Battery Provider Manager created
May 13 23:34:28 cyxwel bluetoothd[838]: Bluetooth management interface 1.22 initialized
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support csip plugin
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support ccp plugin
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support micp plugin
May 13 23:34:28 cyxwel bluetoothd[838]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support vcp plugin
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support mcp plugin
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support bass plugin
May 13 23:34:28 cyxwel bluetoothd[838]: src/plugin.c:init_plugin() System does not support bap plugin
May 13 23:34:28 cyxwel bluetoothd[838]: Starting SDP server
May 13 23:34:28 cyxwel systemd[1]: Started Bluetooth service.
May 13 23:34:28 cyxwel bluetoothd[838]: Bluetooth daemon 5.75
May 13 23:34:28 cyxwel systemd[1]: Starting Bluetooth service...

There is a simple manual fix, which is to restart the bluetooth service:

`sudo systemctl restart bluetooth`

after which the journal for bluetooth looks like this:

May 13 23:53:57 cyxwel bluetoothd[14927]: /org/bluez/hci0/dev_00_22_D9_00_1A_BE/sep7/fd0: fd(29) ready
May 13 23:53:53 cyxwel bluetoothd[14927]: src/gatt-database.c:client_ready_cb() Failed to create GATT service entry in local database
May 13 23:53:53 cyxwel bluetoothd[14927]: src/gatt-database.c:database_add_app() Failed to add service
May 13 23:53:53 cyxwel bluetoothd[14927]: src/gatt-database.c:database_add_service() Failed to add characteristic
May 13 23:53:53 cyxwel bluetoothd[14927]: src/gatt-database.c:database_add_chrc() Failed to create characteristic entry in database
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05_duplex
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05_duplex
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream_duplex
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_0
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_1
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc_xq
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc_xq
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aac
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aac
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_hd
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx_hd
May 13 23:53:53 cyxwel bluetoothd[14927]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource/ldac
May 13 23:53:53 cyxwel bluetoothd[14927]: Battery Provider Manager created
May 13 23:53:53 cyxwel bluetoothd[14927]: Bluetooth management interface 1.22 initialized
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support csip plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support ccp plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support micp plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support vcp plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support mcp plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support bass plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: src/plugin.c:init_plugin() System does not support bap plugin
May 13 23:53:53 cyxwel bluetoothd[14927]: Starting SDP server
May 13 23:53:53 cyxwel systemd[1]: Started Bluetooth service.
May 13 23:53:53 cyxwel bluetoothd[14927]: Bluetooth daemon 5.75
May 13 23:53:53 cyxwel systemd[1]: Starting Bluetooth service...
May 13 23:53:53 cyxwel systemd[1]: Stopped Bluetooth service.
May 13 23:53:53 cyxwel systemd[1]: bluetooth.service: Deactivated successfully.
May 13 23:53:53 cyxwel bluetoothd[838]: Exit
May 13 23:53:53 cyxwel bluetoothd[838]: Stopping SDP server
May 13 23:53:53 cyxwel bluetoothd[838]: Battery Provider Manager destroyed
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05_duplex
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05_duplex
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/opus_05
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/opus_05
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream_duplex
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/faststream
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_0
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_ll_1
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc_xq
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc_xq
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/sbc
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/sbc
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aac
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aac
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/aptx_hd
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink/aptx_hd
May 13 23:53:53 cyxwel bluetoothd[838]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource/ldac
May 13 23:53:52 cyxwel systemd[1]: Stopping Bluetooth service...
May 13 23:53:52 cyxwel bluetoothd[838]: Terminating

So I am stuck restarting the bluetooth service on every boot, which seems silly and is quite annoying.

I very much would like this to happen automatically. Any ideas or suggestions how to achieve that?

Last edited by surfer (2024-05-13 22:09:37)

Offline

#2 2024-05-13 23:59:09

zdislavo
Member
From: uk halifax
Registered: 2024-05-13
Posts: 43
Website

Re: Bluetooth speaker not connecting on system startup

try

    Install the bluez package, providing the Bluetooth protocol stack.
    Install the bluez-utils package, providing the bluetoothctl utility. ...
    The generic Bluetooth driver is the btusb kernel module. ...
    Start/enable bluetooth.

Offline

#3 2024-05-14 20:12:08

surfer
Member
Registered: 2024-05-10
Posts: 5

Re: Bluetooth speaker not connecting on system startup

I have both of those packages installed, thats how I got the device to connect.

The bluetooth connection works fine, the problem is that I have to forcibly restart the bluetooth service on every boot:

`sudo systemctl restart bluetooth`

Offline

#4 2024-05-14 21:09:15

surfer
Member
Registered: 2024-05-10
Posts: 5

Re: Bluetooth speaker not connecting on system startup

I also have tried the package `bluetooth-autoconnect`.

The log for that service:

May 14 18:44:12 cyxwel bluetooth-autoconnect[845]: error connecting to device /org/bluez/hci0/dev_00_22_D9_00_1A_BE: br-connection-profile-unavailable
May 14 18:44:12 cyxwel bluetooth-autoconnect[845]: connecting to device /org/bluez/hci0/dev_00_22_D9_00_1A_BE
May 14 18:44:11 cyxwel systemd[1]: Started Bluetooth autoconnect service.

Offline

#5 2024-08-11 20:24:27

zdislavo
Member
From: uk halifax
Registered: 2024-05-13
Posts: 43
Website

Re: Bluetooth speaker not connecting on system startup

i get you now it just restart after reboot you need to type this because is disable
to check

systemctl is-enabled bluetooth

To enable it, run

systemctl enable bluetooth 

This effectively starts the service at boot, so you won't need to run it each time via terminal

systemctl start bluetooth 

Offline

Board footer

Powered by FluxBB