As I keep on debugging, I seem to have found an error in journalctl that leads me further... among many informative lines of messages from bluetooth and pulseaudio, I found this one: Sep 01 16:55:48 maldacena.feilner-it.net pulseaudio[5809]: Assertion '! pa_hashmap_isempty(data.profiles)' failed at ../src/modules/bluetooth/module- bluez5-device.c:2261, function add_card(). Aborting. That's what happened right after reboot, no other script run. I only did a "bluetoothctl power on" followed by a "bluetoothctl connect ..." Then the log entry came, and I did a "killall -9 pulseaudio", then both bluetoothd, wireplumber and pulseaudio would work fine, no errors. Seems I found the core of the mistake. Sidenote: The "killall -9 pulseaudio" does not "stop" the daemon of pa running. But the new instance works, other than the first one. I'll keep looking into this. Thanks already for rubberducking... :-) Am Freitag, 1. September 2023, 10:28:31 CEST schrieb Markus Feilner:
Hi there,
am I the only one with problems getting bluetooth to work in a 1:1 setup? My Ryzen 7 machine should always autoconnect on boot to its dedicated stereo. Both turn on at the same time, no other machine connects to the BT reciever
I am running Tumbleweed with KDE, plasma and pulseaudio 16.1 on a kernel 6.4.11-1-default, the CPU is an AMD Ryzen 7 PRO 5850U
Here's a script that I have to run - sometimes several times, and often I still have to power on bluetooth and connect to the stereo manually, in the KDE widget (strangely, bluetoothctl won't do the trick, most of the times). Once connected, Bluetooth works as desired, until the next reboot.
I am still digging in the logfiles, but maybe these commands here are helpful for someone... Feel free to PM me if you have similar problems and / or send me links, any help is much appreciated.
I know there's better ways of doing the following, esp. the sudo sections... :-)
#!/bin/bash # sudo /sbin/modprobe -r btusb -r btintel sudo /sbin/modprobe btusb btintel sudo rfkill unblock bluetooth sudo service bluetooth restart sleep 3s bluetoothctl power on bluetoothctl connect 0C:A6:94:D1:77:5D sleep 3s sudo service bluetooth restart bluetoothctl connect 0C:A6:94:D1:77:5D pactl get-default-sink pactl set-default-sink bluez_sink.0C_A6_94_D1_77_5D.a2dp_sink
-- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - Sustainable Open Source Strategy, Networking, Politics, Journalism Knowledge Management, Rubber Ducks, Trainings, Workshops, Documentation https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) https://mastodon.cloud/@mfeilner https://mastodon.social/@FeilnerIT PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Mastodon, Matrix, Jabber, ...