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!
Pulseaudio / Bluetooth Problems
Moderators: leecollings, remb0
-
stlaha2007
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Pulseaudio / Bluetooth Problems
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
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
-
stlaha2007
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Pulseaudio / Bluetooth Problems
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
-
DanM
- Posts: 79
- Joined: Thursday 23 October 2014 22:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Pulseaudio / Bluetooth Problems
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 
- DewGew
- Posts: 581
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Pulseaudio / Bluetooth Problems
Anyone had any luck with pulseaudio? Or is there any other solution for this?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
- DewGew
- Posts: 581
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Pulseaudio / Bluetooth Problems
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
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
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Who is online
Users browsing this forum: No registered users and 1 guest