PulseAudio volume resets to 100% every reboot

  • I configured my RPI3 for Network Audio Receiving via PulseAudio according to the wiki and everything works great.

    Additionally, I set volume to 50%: pactl set-sink-volume alsa_output.0.stereo-fallback 50%

    However, after the system restarts the volume resets back to 100% which nearly killed my dog. I tried adding the pactl command into /storage/.config/autostart.sh but it has no effect.

    How can I set the volume to 50% by default?

  • I am not sure what you mean. Like I said I running pactl set-sink-volume alsa_output.0.stereo-fallback 50% will set the volume to 50% but it does not persist over system reboot and adding that command into autostart.sh has no effect.

    Running pactl set-sink-volume 50% without a sink name/index doesn't work:

    You have to specify a sink name/index and a volume

  • Thanks for testing. I just copied that from another thread, and it doesn't work on my RPi, too. Sorry.

    After some more research, I suggest this:

    1) Make PulseAudio's daemon.conf editable by creating a copy:

    cp /etc/pulse/daemon.conf /storage/.config/pulse-daemon.conf.d

    2) Open it by nano editor:

    nano /storage/.config/pulse-daemon.conf.d/daemon.conf

    3) Activate flat-volumes setting by removing the leading ";" character and set it to no:

    Code
    flat-volumes = no

    4) Save the file (Strg + S), leave the editor (Strg + X) and reboot.

  • I have searched countless websites and wikis and setting flat-volumes = no should solve my problem. I followed the advice above but unfortunately after I reboot the system the volume is reset to 100% again every time.