BaReinhard / Super-Simple-Raspberry-Pi-Audio-Receiver-Install

Super Easy installation to make your Raspberry Pi an Audio Receiver
GNU Affero General Public License v3.0
488 stars 88 forks source link

Set default BT volume #152

Open Abrow87 opened 5 years ago

Abrow87 commented 5 years ago

When I connect via bluetooth the volume starts up at 100% and I have to set to 30% per smartphone buttons. Can I set the volume to 30% automatically when I connect?

huncksas commented 3 years ago

The script installs a file "/usr/local/bin/bluez-udev" -> there, the handling of connecting / disconnecting the devices is handled. You could try following:

  1. do a backup of the file
  2. search for the "amixer cset numid=3 90%" and replace it with your wanted 30%
  3. reboot

double check at which point in code you are changing... it should be somehow self-explanatory as the script is separated in "device add", "device removal" parts and so on.