Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122087 - media-sound/aumix-2.8 mute script bug (patch)
Summary: media-sound/aumix-2.8 mute script bug (patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 00:46 UTC by Cory Wiltshire
Modified: 2006-02-08 02:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Wiltshire 2006-02-08 00:46:46 UTC
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--------------------
Comment 1 Cory Wiltshire 2006-02-08 02:20:07 UTC
I forgot to mention, I have emailed this patch to the upstream maintainer (Trevor Johnson)
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-08 02:25:33 UTC
Applied in 2.8-r4.
I think upstream is mostly deadish, unfortunately..