Page 1 of 1
Pulseaudio / Bluetooth Problems
Posted: Sunday 27 November 2016 23:04
by DanM
I'm utterly stuck trying to get bluetooth to work on Jessie. The latest version of Bluez doesnt operate like the old one and so the guide is no good to me. I'm hoping someone here can help.
I've managed to get a bluetooth connection working just fine from the commandline (using bluetoothctl)- everything plays nicely. The issue is I just cannot for the life of me get anything to play via lua and or bash scripts and I am at a total loss. Putting a command into the on/off for a switch just reports everything is operating fine.. but with silence. Type the same command in at the command line and you hear the file. Help!
Re: Pulseaudio / Bluetooth Problems
Posted: Monday 28 November 2016 9:09
by stlaha2007
I guess domoticz runs as daemon under root account and you're running commandline under pi.
I think the configured bluetooth devices is done 'only' under thr useraccount pi, hence root doesn't have the configuration to use your bleutoothspeaker.
Perhaps configure bleutoothh device with sudo 'config-tools' and try or you need to set password on root and switch to it with su -..
The later has some seccurity caveats... so you need to walk trough al sorts of stuff like ssh etcetera...
Sent from my K00C using Tapatalk
Re: Pulseaudio / Bluetooth Problems
Posted: Monday 28 November 2016 19:15
by stlaha2007
Also reread your post: have you entered the command correctly into the on/of script part of that switch? Like script:///home/pi/scripts/to-play-bt-audio.sh
Re: Pulseaudio / Bluetooth Problems
Posted: Monday 28 November 2016 19:33
by DanM
Its 100% correct in the 'on' dialogue (I used to have it working via a different soundcard). You were right the first time... pulseaudio just doesnt want to run as root

Re: Pulseaudio / Bluetooth Problems
Posted: Wednesday 11 April 2018 22:18
by DewGew
Anyone had any luck with pulseaudio? Or is there any other solution for this?
Re: Pulseaudio / Bluetooth Problems
Posted: Tuesday 17 April 2018 9:11
by DewGew
I got pulsaudio working great with my rpi 3 with stretch. I followed those guides:
First I installed pulseaudio:
http://youness.net/raspberry-pi/how-to- ... berry-pi-3
Then I add pulseaudio to run as service. Is needed to run script with sound in domoticz.
https://github.com/davidedg/NAS-mod-con ... Audio5.txt