Ubuntu startup / login sound can be very loud, but I like to have it. I wrote a script that uses amixer to set the volume to 25%. This is the level that I like, but when I use TV-out or headphones, I need to increase the volume. It seems I can not run the script until the input sound starts. I tried cron @reboot and put a symlink to the script in / etc / rc3.d / and in my .bash_profile script. Only the third method actually sets the volume correctly, but after playing the input sound.
Ideally, I want to run a script when I am logged out at night, or just before the ubuntu login screen is displayed.
Here is the volume setting:
`/usr/bin/amixer -c 0 sset Master,0 25% > /dev/null`
Recommendations for other methods are evaluated.
source
share