<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#c4">Comment # 4</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#c2">comment #2</a>)
<span class="quote">> Do pulseaudio really need to change headphone volume to off when switch to
> speake?</span >
In my opinion it's good to allow manual switching between headphones and
speakers when headphones are plugged in, and playing to both outputs at the
same time is not a good idea.
(In reply to Christoph Reiter from <a href="show_bug.cgi?id=93259#c3">comment #3</a>)
<span class="quote">> I did:
>
> 1) restart
> 2) grepped ps for pulseaudio
> 3) killed the instance not belonging to my user id with -9
> 4) grepped again and saw that it was restarted
> 5) after that volume no longer gets reset and the volume state gets
> remembered separately for headphone connected/disconnected state as I
> expected.</span >
Ok, I didn't expect the automatic restart, but I guess gdm keeps reconnecting
to pulseaudio after disconnection just like normal user sessions do (and trying
to connect to pulseaudio while it's not running triggers autospawning).
When a session is inactive (like the gdm session is inactive during your own
login session) udev removes sound card access for the inactive user. The reason
why gdm nevertheless is able to interfere with the active session is that once
pulseaudio opens the sound card mixer, it keeps the connection open. When udev
changes the mixer device permissions, that doesn't affect existing mixer
connections.
The fix is to close the mixer connection when PulseAudio detects that it lost
permissions to the sound card. I started working on that a while ago, but then
I got something else to do...</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>