<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - unplugging headphones sets volume to 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93259#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - unplugging headphones sets volume to 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93259">bug 93259</a>
              from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>(In reply to Raymond from <a href="show_bug.cgi?id=93259#c7">comment #7</a>)
<span class="quote">> (In reply to Tanu Kaskinen from <a href="show_bug.cgi?id=93259#c6">comment #6</a>)
> > (In reply to Raymond from <a href="show_bug.cgi?id=93259#c5">comment #5</a>)
> > > 
> > > If switch is already muted, there is no point to change volume control to
> > > zero dB(maximum) nor Off (minimum)
> > 
> > It also doesn't hurt. And in theory there could be a volume element without
> > a switch element, in which case the volume matters.


> If the headphone is already unpluged, do pulseaudio really need to mute HP
> playback switch or turn HP volume off.  </span >

The Headphone element is not the only element that affects headphone volume. If
the Master element is at high level prior to plugging in headphones, and the
to-be-restored volume for headphones is low, there will be a spike in the
volume if the headphones are not muted, because the Master volume is initially
too high.

<span class="quote">> > > Do pulseaudio store headphone volume and restore the user selected level
> > > after restart/reboot
> > 
> > Yes.

> Can the user dump database to verify pulseaudio had store the headphone and
> speaker volume? 

> eg. User want to set hp to 50% and speaker at 75%</span >

We don't have native tools for dumping the database contents. Pulseaudio
supports three different database formats, the format is decided during
building. The "tdb" and "gdbm" formats probably have some tools for examining
the database contents. The "simple" format is homegrown, and doesn't have tools
for dumping the database contents.

The database is the file with "device-volumes" in its name under
~/.config/pulse, if you want to take a look.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>