[systemd-devel] Systemd not correctly handle audio device acls for the active session?
Kawing Chiu
kawing.chiu.sysu at gmail.com
Fri Mar 28 05:33:09 PDT 2014
I get no sound in my desktop when using the following way to start the
desktop: from a virtual terminal, say vt2, run:
(setsid startx -- vt7 &).
That is, startx in a virtual terminal other than the current one. The
"setsid" is not relevant here, without it, (startx -- vt7 &) won't
work, either. However, if I play something in the desktop and then
SWITCH BACK to vt2, the sound comes. If I log into another virtual
terminal, for example, vt1, the sound comes, too. Just as long as I
switch back to desktop on vt7, the sound stops. Furthermore, if I
start X by:
(setsid startx -- vt2 &)
that is, in the same virtual terminal, then all problems are gone,
pulseaudio works perfectly.
At first, I thought this is because pulseaudio cannot correctly
recognize the current active session. But the pulseaudio developer
told me that it is because pulseaudio cannot get the permission to
access audio devices under /dev/snd/*. And these permission is
supposed to be set by systemd
(https://bugs.freedesktop.org/show_bug.cgi?id=76672). I've checked
that on my system: when in desktop(vt7), `getfacl /dev/snd/controlC0`
gives no acl permission to the current user while running the same
command in vt2 shows that correct acl permission is given to the
current user.
So I'm asking for help here. Is this a misconfiguration or a bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140328/ea90211b/attachment-0001.html>
More information about the systemd-devel
mailing list