You are not logged in.

#1 2014-11-18 04:05:14

pablox
Member
From: /home/chile/santiago/
Registered: 2008-05-14
Posts: 183
Website

[SOLVED] Pulseaudio and two x11 sessions

I use xmonad, and sometimes (sadly), get's some weird issues with window sizes that had led me to strange and irreproducible freezes. I just want to play, so I tried to start a new xsession using the same user, but using another window manager,

$ xinit lxde -- :1

But, I found that while it works ok, I don't have any sound on the second server, sound only comes when I'm on the first one. I can even start playing mutic on the second one, but I only listen it on the the first one.

I have read about adding the user to the audio group, but I understand it's a bit hacky. I have read a lot of articles and threads, but most of them speak about more than one user.

If this can be achieved trough  a new user, I guess it would be ok too.

Another curious thing too, is that if I run something like  the following in the second xserver

$ aplay /usr/share/sounds/alsa/Front_Center.wav

It looks like is "stuck", if I switch to the first one, I listen "Front Center", switching back, results in returning to the shell.

Last edited by pablox (2014-11-24 01:11:56)


Geeks & Linux Atelier
An eye for an eye ... ends in making everybody blind -- Mahatma Gandhi
dotfiles

Offline

#2 2014-11-24 01:11:44

pablox
Member
From: /home/chile/santiago/
Registered: 2008-05-14
Posts: 183
Website

Re: [SOLVED] Pulseaudio and two x11 sessions

I managed to workaround this issue using this:

xinit lxde -- :1 -nolisten tcp vt2 

It seems that the actual problem is that by the former, loginctl doesn't manage the created xserver, and therefore getfacl was showing that the new server wasn't having access to the sound devices (that's why using sudo aplay -l actually showed them).

It wasn't necessary to add myself to the audio group either.


Geeks & Linux Atelier
An eye for an eye ... ends in making everybody blind -- Mahatma Gandhi
dotfiles

Offline

Board footer

Powered by FluxBB