<br><br>
<div class="gmail_quote">On Mon, Mar 1, 2010 at 3:55 PM, <span dir="ltr">&lt;<a href="mailto:f-myth-users@media.mit.edu">f-myth-users@media.mit.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">   &gt; Date: Sat, 27 Feb 2010 14:00:45 +0000<br>
<div class="im">   &gt; From: Mike Perkins &lt;<a href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</a>&gt;<br><br></div>
<div class="im">   &gt; Tortise wrote:<br>   &gt; [...]<br>   &gt; &gt; 1. Open Terminal from &quot;Applications-&gt;Accessories-&gt;Terminal&quot;<br>   &gt; &gt; 2. copy-paste the following command into the Terminal:<br>
   &gt; &gt; gksudo gedit /etc/init.d/alsa-utils<br>   &gt; &gt; 3. Replace the following line (which is line 372 in the<br>   &gt; &gt; /etc/init.d/alsa-utils file):<br>   &gt; &gt; mute_and_zero_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br>
   &gt; &gt; with the following line:<br>   &gt; &gt; # mute_and_zero_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br>   &gt; &gt; So you need to comment out that line to prevent the script from muting<br>   &gt; &gt; your soundcard during boot.<br>
   &gt; &gt; 4. Reboot and recheck mixer settings<br>   &gt; &gt;<br>   &gt; Unbelievable. Who on earth thought that resetting sound levels to zero on shut<br>   &gt; down *and muting them* was a good idea in the first place?<br>
<br></div>But wait a minute here.  Below is what appears to be the relevant<br>section from /etc/init.d/alsa-utils in my Ubuntu 9.10 (-not-<br>MythBuntu; I don&#39;t know if that makes a difference).<br><br>Yes, it looks like they&#39;re muting when alsa is stopped.  But it also<br>
appears that they&#39;re attempting to reset the levels on start; there&#39;s<br>a bunch of other logic in there to save/restore.  (I have done zero<br>other debugging on this since it&#39;s not my issue, but it shouldn&#39;t be<br>
hard for someone to trace through the calls in the init script.)<br><br>In short, while muting on shutdown does seem weird, it looks like the<br>real bug is the failure to restore levels on reboot.  (Unless the OP<br>is shutting down alsa and -not- rebooting and then checking levels,<br>
but I don&#39;t think he said he was doing this.)<br><br>I still think something&#39;s buggy either in restoration in general (but<br>I suspect there&#39;d be a ton of bug reports lodged against it) or on the<br>OP&#39;s machine in particular (file permissions? something else?)<br>
<br>I&#39;d imagine other MythBuntu users would be complaining of this, too,<br>if the problem was that muting wasn&#39;t being undone on reboot.  Are they?<br><br>case &quot;$1&quot; in<br> start)<br>       EXITSTATUS=0<br>
       TARGET_CARD=&quot;$2&quot;<br>       case &quot;$TARGET_CARD&quot; in<br>         &quot;&quot;|all) TARGET_CARD=all ; log_action_begin_msg &quot;Setting up ALSA&quot; ;;<br>       esac<br>       if ! card_OK &quot;$TARGET_CARD&quot;; then<br>
               [ &quot;$TARGET_CARD&quot; = &quot;all&quot; ] &amp;&amp; log_action_end_msg &quot;$( [ ! &quot;$2&quot; ] ; echo $? ; )&quot; &quot;none loaded&quot;<br>               exit $?<br>       fi<br>       preinit_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br>
       if ! restore_levels &quot;$TARGET_CARD&quot; ; then<br>               sanify_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br>               restore_levels &quot;$TARGET_CARD&quot; &gt;/dev/null 2&gt;&amp;1 || :<br>
       fi<br>       [ &quot;$TARGET_CARD&quot; = &quot;all&quot; ] &amp;&amp; log_action_end_msg_and_exit &quot;$EXITSTATUS&quot;<br>       exit $EXITSTATUS<br>       ;;<br> stop)<br>       EXITSTATUS=0<br>       TARGET_CARD=&quot;$2&quot;<br>
       case &quot;$TARGET_CARD&quot; in<br>         &quot;&quot;|all) TARGET_CARD=all ; log_action_begin_msg &quot;Shutting down ALSA&quot; ;;<br>         *) log_action_begin_msg &quot;Shutting down ALSA card ${TARGET_CARD}&quot; ;;<br>
       esac<br>       card_OK &quot;$TARGET_CARD&quot; || log_action_end_msg_and_exit &quot;$( [ ! &quot;$2&quot; ] ; echo $? ; )&quot; &quot;none loaded&quot;<br>       store_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br>

<div class="im">       mute_and_zero_levels &quot;$TARGET_CARD&quot; || EXITSTATUS=1<br></div>       log_action_end_msg_and_exit &quot;$EXITSTATUS&quot;<br>       ;;<br> restart|force-reload)<br>       EXITSTATUS=0<br>       $0 stop || EXITSTATUS=1<br>
       $0 start || EXITSTATUS=1<br>       exit $EXITSTATUS<br>       ;;<br> reset)<br>       TARGET_CARD=&quot;$2&quot;<br>       case &quot;$TARGET_CARD&quot; in<br>         &quot;&quot;|all) TARGET_CARD=all ; log_action_begin_msg &quot;Resetting ALSA&quot; ;;<br>
         *) log_action_begin_msg &quot;Resetting ALSA card ${TARGET_CARD}&quot; ;;<br>       esac<br>       card_OK &quot;$TARGET_CARD&quot; || log_action_end_msg_and_exit &quot;$( [ ! &quot;$2&quot; ] ; echo $? ; )&quot; &quot;none loaded&quot;<br>
       preinit_levels &quot;$TARGET_CARD&quot;<br>       sanify_levels &quot;$TARGET_CARD&quot;<br>       log_action_end_msg_and_exit &quot;$?&quot;<br>       ;;<br> *)<br>       echo &quot;Usage: $MYNAME {start [CARD]|stop [CARD]|restart [CARD]|reset [CARD]}&quot; &gt;&amp;2<br>
       exit 3<br>       ;;<br>esac<br>
<div>
<div></div>
<div class="h5">_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div>
<div><br> </div>
<div> </div>
<div>I&#39;ve had similar trouble on two different ubutnu machines.  One of them seemed to solve the problem by itself, and almost immediately thereafter, my other machine that was not exhibiting the behavior, started exhibiting the behavior. Sounds like a ghost to me.  The one that had the problem and solved it by itself was an ASUS board (I&#39;m not sure who makes the on board sound card) and the one that began doing it afterword, is a Zotac ion B board (also not sure what sound chip that has).  So it could be related, or not.  I&#39;ve done nothing to affect the sound other than to unmute it with alsamixer whenever I reboot (which isn&#39;t all that often). When I do reboot, it&#39;s normally at an inconvenient time, and definitely has an impact on the WAF. </div>