Bug 77497 - start-pulseaudio-{x11,kde}: should kill pulseaudio daemon if it started it
Summary: start-pulseaudio-{x11,kde}: should kill pulseaudio daemon if it started it
Status: RESOLVED INVALID
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-15 19:29 UTC by Felipe Sateler
Modified: 2014-04-15 20:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Wait until x session ends and then kill pulseaudio (1.38 KB, text/plain)
2014-04-15 19:29 UTC, Felipe Sateler
Details

Description Felipe Sateler 2014-04-15 19:29:57 UTC
Created attachment 97424 [details]
Wait until x session ends and then kill pulseaudio

When start-pulseaudio-* starts pulseaudio, it doesn't kill it on x session end, causing log annoyances and possibly race conditions with alsa shutdown (alsa may mute devices before pulseaudio quits, so pulseaudio stores the wrong volume).

Attached is a patch applied in debian to mitigate such issues. Unfortunately, this adds a dependency on xprop.

PS: another extra improvement would be to avoid starting the daemon if it is already running, and thus avoiding a "daemon already running" log message.
Comment 1 Felipe Sateler 2014-04-15 20:22:06 UTC
I just saw that Balint had already posted a version of the patch to the list, which is the correct way to do this. Sorry for the noise.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.