<div dir="ltr">Thanks for your reply, Tanu. <div><br></div><div>Could you please clarify what kind of session do you have in mind, how would I check for a list of these sessions? I'll proceed with my troubleshooting from there. Apparently, all I need is to make openvt to create a session. </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-18 5:48 GMT-04:00 Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanu.kaskinen@linux.intel.com" target="_blank">tanu.kaskinen@linux.intel.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2014-09-17 at 11:27 -0400, Alex K wrote:<br>
> Hi team,<br>
><br>
><br>
> I have a puzzling question crossing PulseAudio and systemd-logind<br>
> behavior. In short, if you open a new virtual terminal with sudo<br>
> openvt -vlu, there will be no sound in it, because dynamic ACL<br>
> on /dev/snd/* doesn't include your account.<br>
><br>
><br>
> How to reproduce:<br>
> 1. Switch to first VT and login (Ctrl+Alt+F1)<br>
> 2. Open a new virtual terminal: sudo openvt -vlu (it is likely going<br>
> to be tty8)<br>
> 3. Switch to tty8: Ctrl+Alt+F8<br>
> 4. Try to play a sound: play /path/to/wav/file.wav<br>
><br>
><br>
> Play command will be stuck until you switch to another VT: ACLs get<br>
> updated, sound gets played in the background.<br>
><br>
><br>
> What would be a good way to fix it?<br>
<br>
</span>PulseAudio doesn't have any control over the ACLs, the systemd mailing<br>
list would be the right place to ask.<br>
<br>
FWIW, I tried the steps you gave on Fedora 20, and I observed the same<br>
behaviour. I'm not sure this is a bug, however. The ACLs are set based<br>
on who has an active session on the seat. When you logged in in tty1, a<br>
new session was created, and it was marked as active. When you created a<br>
new tty with openvt, no new session was created. When you switched to<br>
the new tty, the session on tty1 was marked as inactive, and since there<br>
was no session bound to tty8, from logind's point of view no session was<br>
active, hence no access to the sound card for anyone.<br>
<br>
The question is that should a new session be created when creating a new<br>
tty with openvt. I don't know the answer to that. (Another alternative<br>
would be to tie the session on tty1 also to tty8, but I don't think that<br>
makes sense.)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tanu<br>
<br>
<br>
</font></span></blockquote></div><br></div>