Quote:
echo -e "agent off\nagent DisplayOnly\ndefault-agent\ndiscoverable on\npairable on\nquit\n" | bluetoothctl
|
I think this should do the same but without having to redirect the output of echo
Code:
bluetoothctl << EOF
agent off
agent DisplayOnly
default-agent
discoverable on
pairable on
quit
EOF
I will see if I can modify the pulseaudio script to work on my system ... should I run that after pairing or before pairing ?
Not sure which is the head and which the tail of the cat chasing it's tail: do I need to setup pulse before pairing so that the audio output is presented via BT or do I need to tell pulse that there is a new audio source after pairing ?
Anyway seem to have run into trouble with the very first line:
Code:
root@e11old:~/bt_speaker# pacmd "list-sinks" | grep card: | wc -l
No PulseAudio daemon running, or not running as session daemon.
0
root@e11old:~/bt_speaker#
Remember I'm on the text console ... not sure how X starts pulseaodio but I don't have rc.plulseaudio executable.
In any case even if I start it I still get much the same:
Code:
root@e11old:~/bt_speaker# . /etc/rc.d/rc.pulseaudio start
Starting system PulseAudio daemon: /usr/bin/pulseaudio --system --disallow-module-loading &
root@e11old:~/bt_speaker# pacmd "list-sinks" | grep card: | wc -l
No PulseAudio daemon running, or not running as session daemon.
0
root@e11old:~/bt_speaker#
Quote:
So, you need something that can handle the possibilities that the BT device wasn't in range when you started OR was in range and then moved out of range while things are running and then moved back into range OR wasn't in range when you started but then later came into range.
|
Not really because the plan is to add analog audio out to a RPIzeroW and have it devoted just to doing BT audio playback ... so when I turn it on I know I want to stream audio to it and phone will be in range. Concerning the temporarily out of range I was thinking that a simple BT reconnect on phone would fix it. But it might be nice if the slackware box would remember pared devices across restarts.
Quote:
Please provide a better use case than that which you have given here.
Describe what you believe to be the normal use case.
Describe what you believe to be those slightly abnormal cases
Describe those cases that you do not ever wish to happen
|
I'm trying to find how to do something not complaining of abnormalities so not really sure what you want me to explain here.
Any information I posted is just to share my findings so people can help me.
I want to be able to have a headless slackware box (will be a RPIzeroW once I figure out how) pair automatically with let's say one and one only specific phone (maybe a list in the future) and be able to to playback music like an ordinary off the shelf BT speaker system.