[pulseaudio-discuss] pulseaudio start stop
duportail
poort at telenet.be
Wed Apr 6 08:18:59 PDT 2011
Op 6-4-2011 16:50, Colin Guthrie schreef:
> Hello,
>
> *THIS IS IMPORTANT* As I stated last time, please keep the list CC'ed on
> replies.
>
>
>
> 'Twas brillig, and duportail at 06/04/11 15:24 did gyre and gimble:
>> Correct,this is for a multiseat setup.However,the same user cannot login
>> twice on the same computer.
>> What I mean is:when I log in a user on ,say, display 1,(this with
>> kde),pulseaudio runs and the deault sink is set as in the script.
>> If I logout this user, and log him in on another display, pulse is not
>> starting because of the /temp/.esd-$UID.
> Does the same user have a different home directory, or is their home
> directory cleaned out by some other script?
>
> If this is the case, then I suspect that PulseAudio is *still running*
> from the previous session, but you've trashed it's runtime dir and pid
> files, thus it doesn't know it's still running and it tries to start
> again, but the old process still has /tmp/.esd-$UID/socket open and thus
> prevents the other PA process from using it.
>
> PA will not exit immediately after logout but will adhere to it's
> exit-idle-timeout value (see /etc/pulse/daemon.conf). If you set this to
> a suitably low value, then this should avoid the issue.
>
>> When I remove this, just before the user logs in on another display, all
>> runs well.
> If you prefer, you can comment out module-esound-protocol in
> /etc/pulse/default.pa as this will prevent the loading of esound support
> and thus the opening of this file.
>
> However, if my suspicion (above) is correct, then there could be other
> problems (like the old pulseaudio still having the h/w open and thus
> "hogging" it from the new one) and you should probably ensure PA is
> properly killed on logout (or before /home/$USER is reset).
>
>
> HTHs
>
> Col
>
Yes, this is correct, after a time the /tmp/.esd-$UID/socket is going away.
The home dir of the user is cleaned (reset) just before login (with
gdm).So the /home/$USER/.pulse dir is empty.
The users' KDE autostart function runs the pulse script and the default
sink is set.
This way the user can take place at no matter what display he chooses
,log in and have sound.
If I assign a pulse-audio-sink(usb-audio) per user, than the user must
always login at the same display(thus where this usb-sound card is)
It is very important to assing a sink to a display: in a school with 500
students and multiple multiseatcomputers, the students must be able to
take place at no matter what display and no matter what
multiseatcomputer and have sound..
I just have to find a way that pulse not choose the default
soundcard,when a soundcard is defective.
gd,
More information about the pulseaudio-discuss
mailing list