<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The "pacmd set-default-sink" command doesn't work anymore (as of v11.x)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102987#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The "pacmd set-default-sink" command doesn't work anymore (as of v11.x)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102987">bug 102987</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>The behaviour that Nils sees is indeed expected. But the behaviour on Xavion's
machine is not. PulseAudio sees that HDMI is available and headphones are not.
In this situation the HDMI sink should automatically become the default.

Can you attach (use the "Add an attachment" link, don't paste to the comment
box) the verbose log of the pulseaudio server? Instructions for getting the
log:

1. Disable automatic starting of PulseAudio. If your distro uses
systemd's socket activation to start PulseAudio, run

    systemctl --user --now mask pulseaudio.service pulseaudio.socket

If your distro doesn't do that, put "autospawn = no" to
~/.config/pulse/client.conf.

2. Stop pulseaudio with "killall pulseaudio" (the previous systemctl
command might have stopped it already, though).

3. Start pulseaudio in a terminal with verbose logging:

    pulseaudio -vv

4. Run "pactl set-default-sink alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1"

5. Stop pulseaudio with ctrl-c.

6. To return things back to normal, run

    systemctl --user unmask pulseaudio.service pulseaudio.socket

if you masked the service before. And remove the "autospawn = no" line
from client.conf if you added it there.</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>