The original post: /r/debian by /u/Proper_Marketing674 on 2024-11-13 08:16:30.
I’m new to this forum so if I’m doing anything wrong, please let me know.
I have a Linux server running debian 12.7.
I have a problem with my bluetooth speaker attached to this server.
I’ve prepaired and connected a bluetooth speaker under a certain user (pi) and while in session, the speaker works great. Problem is: as soon as the user logs off, the speaker drops off disconnecting from bluetooth. As soon as I logon again, it will reconnect.
Background processes still running under the account, can no longer reach the bluetooth speaker then.
I also tried to schedule the playing of a mp3 file from crontab every minute. While logged on as user pi, the crontab causes the mp3 file to be played on the speaker. As soon as I logoff, it stops being played.
pi@debian12-pve:~ $ bluetoothctl
Agent registered
[CHG] Controller F4:C8:8A:60:8C:5D Pairable: yes
[bluetooth]# devices
Device 20:64:DE:AD:10:75 SRS-XB23
[CHG] Device 20:64:DE:AD:10:75 Connected: yes
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep1
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep2
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep3
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep4
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep5
[NEW] Endpoint /org/bluez/hci0/dev_20_64_DE_AD_10_75/sep6
[NEW] Transport /org/bluez/hci0/dev_20_64_DE_AD_10_75/fd3
[CHG] Transport /org/bluez/hci0/dev_20_64_DE_AD_10_75/fd3 Delay: 0x05dc (1500)
[CHG] Transport /org/bluez/hci0/dev_20_64_DE_AD_10_75/fd3 Volume: 0x006e (110)
[SRS-XB23]#