bareinhard / a2dp_bluetooth Goto Github PK
View Code? Open in Web Editor NEWBluetooth Repo to setup your Raspberry Pi (Jessie) to connect to Bluetooth Speakers/Headset
License: GNU General Public License v3.0
Bluetooth Repo to setup your Raspberry Pi (Jessie) to connect to Bluetooth Speakers/Headset
License: GNU General Public License v3.0
I have downloaded Raspbian Jessie and I am able to connect to my bluetooth speaker, thanks for your efforts. I tried all 3 OS of raspberry pi and none of it worked before.
But I am not able to hear any audio when I play wav files using omxplayer. Am I missing some of the settings?
Hi,
In my installation, the pulseaudio binary was in /usr/bin
and not in /usr/local/bin
.
Maybe the init script should be updated ?
Hi,
Was struggling for a long time to get a BT speaker (Heos) working on my RPi3 Jessie Loaded.
Until i found your script, thx a lot.
Sound is working but the auto reconnect isn't.
In my /var/log/message i found some error regarding Pulseaudio.
Dec 13 20:42:32 domoticz pulseaudio[548]: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set! Dec 13 20:42:32 domoticz pulseaudio[548]: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode! Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that. Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] main.c: If you do it nonetheless then it's your own fault if things don't work as expected. Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea. Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] module.c: module-detect is deprecated: Please use module-udev-detect instead of module-detect! Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': No such file or directory Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': No such file or directory Dec 13 20:42:32 domoticz pulseaudio[811]: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': No such file or directory
although /run/pulse.config/pulse/cookie exists it tells it can't find it.
As for .pulse-cookie it doesn't exits at all.
Also i have a /home/pi/.config/pulse/cookie, so two cookies
What can i do to recover this.
Hello,
let me know if I should ask somewhere else... I run the script and all completed successfully. I have the following device connected:
[Rockbox Cube]# info C9:50:76:0E:32:DC
Device C9:50:76:0E:32:DC (public)
Name: Rockbox Cube
Alias: Rockbox Cube
Class: 0x00240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: yes
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
However, I am not sure everything went well (and I can not hear the sound from the speaker).
pactl list sinks
Sink #1
State: RUNNING
Name: auto_null
Description: Dummy Output
Driver: module-null-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 24
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: auto_null.monitor
Latency: 7189 usec, configured 20000 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
Formats:
pcm
pactl list sink-inputs
Sink Input #429
Driver: protocol-native.c
Owner Module: 10
Client: 20
Sink: 1
Sample Specification: s32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"s32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: no
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 2811 usec
Resample method: copy
Properties:
media.name = "ALSA Playback"
application.name = "ALSA plug-in [java]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "32"
application.process.id = "3267"
application.process.user = "pi"
application.process.host = "0x0002"
application.process.binary = "java"
application.language = "en_US.UTF-8"
application.process.machine_id = "fec0adb372c843ff8ab71292bde8a6c0"
application.process.session_id = "c3"
module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"
pactl list cards
(no card?)
In case anybody can help, I am available for any test/troubleshooting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.