Volume at Startup


I have the Volumio set up on a Model A pi using the onboard audio and if I reboot the Pi the volume is set to max when the Pi boots back up, does anyone know a way to set the volume to a certain level at start up, this would be required if using speakers or headphones? Currently I am jumping out of my skin at startup so any help would be great.


not the most elegant solution

make sure the system don’t start mpd, will be started by Volumio anyway

sudo update-rc.d mpd remove

edit /var/www/command/player_wrk.php

        pcntl_signal(SIGHUP, SIG_IGN);
 // --- DEMONIZE --- //

+sysCmd('/usr/bin/aplay /var/www/command/silence.wav');
+sysCmd('/usr/bin/amixer set PCM `/usr/bin/amixer get PCM | grep % | cut -d[ -f2 | cut -d] -f1`');
 // change /run and session files for correct session file locking
 sysCmd('chmod 777 /run');

 // reset DB permission

silence.wav.zip (46 Bytes)