lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
493 stars 94 forks source link

no sound output #54

Open romankc opened 6 years ago

romankc commented 6 years ago

I am running Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux on a Pi 3 Model B.

Everything in the logs looks normal and I am able to pair two Android devices and transmit audio. However, no audio is played on the Pi. I tested with another audio source (Youtube) directly on the Pi and it works without issues.

What else can I check?

Jul 25 13:42:22 raspberrypi kernel: [ 17.835836] Bluetooth: Core ver 2.22 Jul 25 13:42:22 raspberrypi kernel: [ 17.835965] NET: Registered protocol family 31 Jul 25 13:42:22 raspberrypi kernel: [ 17.835972] Bluetooth: HCI device and connection manager initialized Jul 25 13:42:22 raspberrypi kernel: [ 17.837503] Bluetooth: HCI socket layer initialized Jul 25 13:42:22 raspberrypi kernel: [ 17.837529] Bluetooth: L2CAP socket layer initialized Jul 25 13:42:22 raspberrypi kernel: [ 17.837581] Bluetooth: SCO socket layer initialized Jul 25 13:42:22 raspberrypi kernel: [ 17.853566] Bluetooth: HCI UART driver ver 2.3 Jul 25 13:42:22 raspberrypi kernel: [ 17.853580] Bluetooth: HCI UART protocol H4 registered Jul 25 13:42:22 raspberrypi kernel: [ 17.853586] Bluetooth: HCI UART protocol Three-wire (H5) registered Jul 25 13:42:22 raspberrypi kernel: [ 17.853802] Bluetooth: HCI UART protocol Broadcom registered Jul 25 13:42:23 raspberrypi kernel: [ 17.972109] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Jul 25 13:42:23 raspberrypi kernel: [ 17.972119] Bluetooth: BNEP filters: protocol multicast Jul 25 13:42:23 raspberrypi kernel: [ 17.972134] Bluetooth: BNEP socket layer initialized Jul 25 13:42:23 raspberrypi kernel: [ 18.162852] Bluetooth: RFCOMM TTY layer initialized Jul 25 13:42:23 raspberrypi kernel: [ 18.162939] Bluetooth: RFCOMM socket layer initialized Jul 25 13:42:23 raspberrypi kernel: [ 18.163680] Bluetooth: RFCOMM ver 1.11 Jul 25 13:44:06 raspberrypi kernel: [ 88.052067] input: 9C:65:B0:53:4A:EA as /devices/virtual/input/input0 Jul 25 13:47:44 raspberrypi kernel: [ 306.103269] input: 9C:65:B0:53:4A:EA as /devices/virtual/input/input1 Jul 25 13:48:30 raspberrypi kernel: [ 352.117235] input: 9C:65:B0:53:4A:EA as /devices/virtual/input/input2

jamie-marchant commented 6 years ago

I appear to be having the same issue. (as we discussed in the other issue thread) My source is an Android tablet. I am hearing the "connect/disconnect" sound when I connect it but no other sound. Also have a Pi 3 B(says "Pi 3 B V1.2"). Am using the 3.5MM output. Would be really cool to stream audio to my receiver from across the room.

kiai72 commented 5 years ago

same issue here. i have a 3b+. i hear connect and diconnect sound. youtube in rasbian works - but i can't hear audio that's received via A2DP. (i'm using 3,5 jack)

shivams commented 5 years ago

I am having the same issue here on Pi 3B using Raspbian Stretch.

For me, somehow the problem gets resolved when a second device connects. Second device's sound is then played on RPi. This is weird.

jamie-marchant commented 5 years ago

This program started working for me today after getting some updates.

shivams commented 5 years ago

@jamie-marchant Interesting. Could you mention what were those updates?

jamie-marchant commented 5 years ago

I have not used my Pi in a long time so there where a lot of updates, you can look them over here: https://pastebin.com/sJmGLX4Q. I think I saw a BlueAlsa update.

shivams commented 5 years ago

@jamie-marchant Can you tell us your current Raspbian version, Alsa version and other important information that might be helpful? I will try to update my Pi to the same versions and then see.

jamie-marchant commented 5 years ago

I have Raspbain version 9, AlSA Driver Versoin k4.14.79-v7+. As I said before I am using the 3.5mm output.

shivams commented 5 years ago

The issue has indeed gone away after upgrading my pi:

sudo apt upgrade

I think the issue can be closed. Thanks a lot @jamie-marchant

Qalzone commented 5 years ago

Updating bluealsa (sudo apt-get install bluealsa) solved the problem for me as you suspected

arfanon commented 4 years ago

the problem is because raspberry source the sound throw hdmi by default you just have to change the raspi-config=>advanced options=>audio=>force 3.5mm

Alouxndre commented 3 years ago

I checked my setup and tried the different solutions I read but nothing worked. No sound in output.... I am not hearing "connect/disconnect" sound neither. What else can I do ? thks all

arfanon commented 3 years ago

I checked my setup and tried the different solutions I read but nothing worked. No sound in output.... I am not hearing "connect/disconnect" sound neither. What else can I do ? thks all

the problem is because raspberry source the sound throw hdmi by default you just have to change the raspi-config=>advanced options=>audio=>force 3.5mm

Alouxndre commented 3 years ago

ok you are right. Actually, I tried with HDMI cable unplugged. -> It works !!!!! So I replug HDMI cable and I force 3.5 mm as you explained to me. I reboot and I try -> It not works. Then the matter comes from my rasp configuration but I don't know what can I do uname -a -> Linux raspberrypi 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux.

Do you know why ?

arfanon commented 3 years ago

if you checked the config after the reboot probably it will be reset to default , you can edit .bashrc and force your settings so everytime you reboot the config will re-execute