hifiberry / hifiberry-os

Linux distribution optimized for audio playback
MIT License
1k stars 127 forks source link

Bluetooth 100% Volume issue. #409

Open dieterch opened 1 year ago

dieterch commented 1 year ago

Describe the bug the issue occures, when i connect from my iphone via bluetooth. Every time i press Play, e.g. In music, the Volume immediately switches to 100%. When i reduce the volume, the volume is back to 100% at the next Play Button press.

HiFiBerryOS version 20221128 on Raspberry Pi 4 Model B Rev 1.2

HiFiBerry sound card Beocreate 4-channel Amplifier

To Reproduce Steps to reproduce the behavior:

  1. under sources, switch bluetooth on and pair e.g. your iphone
  2. on the iphone check if you are connected, then open music
  3. select any piece of music ... the volume immediately goes to 100% and the music starts to play (neighbours and my wive are my witnesses :-)
  4. I checked with alsamixer on the commandline, the Softvol alsways stays at 100%, the DSPVolume jumps to 100%.

Expected behavior The volume shall stay at its previous position.

radzikem commented 1 year ago

I have the same issue when I play sound from an iPad by Bluetooth. On the Android device, it works correctly. Hardware:

HellmannK commented 1 year ago

Having the same problem here!

powertim commented 1 year ago

Hi, having opposite issue: volume always starts at 0%...

hifiberry commented 1 year ago

Different BT clients behave differently when it comes to BT volume control. As long as this isn't addressed for all systems correctly in blue-alsa, we can't do nothing. However, I would not recommend BT at al with an iPhone. Airplay is the much better and more stable choice for streaming music from an iPhone

leonka10 commented 1 year ago

I have the same problem here. It seems the volume gets set to 100% when I press play in the Spotify App on iPhone. I also noticed turning down the volume with a rotary control wired to the Raspi does lower the volume but does not effect the volume control bar on the iPhone.

I may have found a fix for some people that are facing this problem with a similar setup (Raspi, Amp, BT Dongle). It seems this is not directly a bug with HifiberryOS, i tested a few different BT Dongles and the bug does not occur on some.

Not working BT Dongles(LogiLink BT015, aplic USB BT nano V4.0) -> 100% Volume bug occurs

Working BT Dongles(Yizhet USB nano BT V4.0) -> 100% Volume bug does not occur

ayykamp commented 1 year ago

is there a list with dongles that work?

HecoP commented 10 months ago

@dieterch, thanks for the good description of the problem. For me she was very helpful. @leonka10, the reference to the Bluetooth version helped me.

As a workaround I use an old Galaxy S7. This has Bluetooth version 4.2. An S5 with version 4.0 also works. After looking at this list, an iPhone 7 should also work: https://handygad.de/howto/bluetooth-version-herausfinder/

The problem starts with Bluetooth version 5.0 and higher. These smartphones are affected.