The /usr/bin/mute script included in media-sound/aumix does not work properly. After running the script once to mute the sound, it saves the master volume as 0. The intended behavior is that it saves the current volume, so that the next time the script is run, the volume will be unmuted. I tested this with both aumix-2.8-r2 and aumix-2.8-r3. I haven't tested this on other architectures, so it may or may not be AMD64-specific. The following patch fixes the bug: ------------Start Patch-------------- diff -Naur aumix-2.8/src/mute aumix-2.8.fixed/src/mute --- aumix-2.8/src/mute 2002-03-18 18:09:18.000000000 -0700 +++ aumix-2.8.fixed/src/mute 2006-02-08 01:05:39.999902848 -0700 @@ -8,7 +8,8 @@ volumes=$(aumix -vq |tr -d ,) if [ $(echo $volumes | awk '{print $2}') -ne 0 -o \ $(echo $volumes | awk '{print $3}') -ne 0 ]; then - aumix -S -v 0 + aumix -S + aumix -v 0 else aumix -L > /dev/null fi ------------End Patch--------------------
I forgot to mention, I have emailed this patch to the upstream maintainer (Trevor Johnson)
Applied in 2.8-r4. I think upstream is mostly deadish, unfortunately..