Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-06-10 09:31:53 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2012-06-10 09:35:00 (GMT)
commitd40c299b8b8b28177e2824e4e00a55556db2faf3 (patch)
tree4bbc991cf5042eeff346f390eb1b157da6ab009d
parentde20ece226e444a386efa6d751e17088d5763d0c (diff)
uy#1756 (sub-issue): Fix sound-not-being-heard via pulseaudio-sink. Pulseaudio's default-sink is muted by default. Thus, it needs to be un-muted.
-rw-r--r--config/sugar-client-conf.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/config/sugar-client-conf.sh b/config/sugar-client-conf.sh
index 43208c8..d0d07d6 100644
--- a/config/sugar-client-conf.sh
+++ b/config/sugar-client-conf.sh
@@ -56,5 +56,40 @@ sugar-client session
# Performing xmodmap customizations
xmodmap xmodmap.conf
+# uy#1756 (resolution to one of several sub-issues):
+# Pulseaudio's default-sink is muted by default.
+# Thus, it needs to be un-muted.
+#
+# Some Notes ::
+#
+# a)
+# PulseAudio-Server functions in the context of a user-profile.
+# That is why, the scripts are present in olpc user's X's profile.
+# It is strongly discouraged to do anything in root's context.
+#
+# As a proof :: If these scripts are put in 'olpc-configure'
+# (which runs in root's context), the un-muting simply does not work !!!
+#
+#
+# b)
+# The PulseAudio server started automatically at some point, but not
+# soon enough to query it via 'pactl' tool. Thus, we start it
+# (the first time) here. Multiple (re)starts of PulseAudio does
+# no harm.
+#
+#
+# c)
+# Back-Quotes and Dollar signs need to be escaped.
+
+
+pulseaudio --start
+
+pulseaudio_default_sink=\`pactl stat | grep "Default Sink: " | sed s/"Default Sink: "//\`
+
+pactl set-sink-mute \${pulseaudio_default_sink} 0
+
+# uy#1756 (resolution to one of several sub-issues)
+# ENDS.
+
__EOF__