TamsPi
Posts: 33
Joined: Sun Jul 07, 2019 8:18 am

Bluetooth not connecting at boot time

Sun Feb 05, 2023 11:37 am

Pi 400 running Bullseye
My bluetooth works fine when I pair it.
But when I reboot I get the following error
Failed to connect to Bluetooth device- Device not found by PulseAudio
Help would be appreciated

bjtheone
Posts: 2175
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: Bluetooth not connecting at boot time

Wed Feb 08, 2023 6:11 pm

Potentially is coming up in the boot process and trying to connect to the device before it is ready. A fair number of processes that are "internal" come up before all the networking is fully up and connected.

TamsPi
Posts: 33
Joined: Sun Jul 07, 2019 8:18 am

Re: Bluetooth not connecting at boot time

Wed Feb 08, 2023 7:35 pm

OK, so as that looks like being the case, is there anyway I can start it from a script when the boot is complete.
I can, of course, make the connection from the Audio menu but I want it to connect without me having to connect it manually.
It is a bluetooth speaker that works well when connected manually.

User avatar
thagrol
Posts: 8912
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: Bluetooth not connecting at boot time

Thu Feb 09, 2023 12:35 am

If you know or can find the required shell commands see here.

Given how audio configured (per user pulse audio daemon) the least complex way would be your users .bashrc or autostart file.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

TamsPi
Posts: 33
Joined: Sun Jul 07, 2019 8:18 am

Re: Bluetooth not connecting at boot time

Thu Feb 09, 2023 8:38 am

After reinstalling the OS (bullseye) I am now getting a different error.
I have bluetooth speaker (Muxili) and it works fine when I pair it.
When I reboot, sometimes it works, but other times when I boot, it is unticked in the audio menu

Could there be a way of forcing it to "tick"

Return to “Raspberry Pi OS”