<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - KDE specific rule in start-pulseaudio-x11 should go"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95104">95104</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>KDE specific rule in start-pulseaudio-x11 should go
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>daemon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>markg85@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

PulseAudio 8.0 introduced a vastly improved "module-switch-on-connect" which i
like to use in KDE/Plasma 5. However, switching input to other devies as they
get connected doesn't seem to work under Plasma 5. It works just fine under
GNOME.

So i investigated this issue a bit.
It turns out that "start-pulseaudio-x11" detects a full KDE session and does
some specific module loading:

    if [ x"$KDE_FULL_SESSION" = x"true" ]; then
       /usr/bin/pactl load-module module-device-manager "do_routing=1" >
/dev/null
    fi

In my case that very line was breaking module-switch-on-connect. Removing it
made it work just as advertised in the PulseAudio 8.0 release notes.

I would like to ask to remove that line in the next release of PulseAudio.
Perhaps it had it's reasons to be there in the past, but i can't seem to find
any reason for that to still be needed. These days Plasma 5 also has a default
volume applet that is meant for PulseAudio management. In fact, kmix isn't even
part of the default install anymore (on ArchLinux at least).

Cheers,
Mark</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>