Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting pulseaudio to work with fast user switching.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
fadlouni
n00b
n00b


Joined: 02 Oct 2004
Posts: 23
Location: Brussels, Belgium

PostPosted: Mon Aug 15, 2011 12:15 pm    Post subject: getting pulseaudio to work with fast user switching. Reply with quote

Hello.

For a long time, i'm using system-wide pulseaudio even though it's not recommended.
The reason is that at my home i have one PC, and for my wife we start another X session on another console by using "switch user" in gnome. so my X server is on vty 7 and hers is on vty 8.
if we don't use system-wide pulseaudio, then even though i see a pulseaudio instance per user, but only the first one who logged in gets sound. since i usually login first, when my wife logs in, her x session can't output any sound.

recently the system-wide use flag has been disabled in portage:
media-sound/pulseaudio-0.9.23-r1 USE="X alsa asyncns bluetooth caps dbus glib gnome tcpd udev -avahi -doc -ipv6 -jack -libsamplerate -lirc (-oss) -realtime (-system-wide) -test"

so i'm resorting to manually starting pulseaudio with system-wide option as root on every boot.

i've been googling things a lot. on some places they say that console-kit should follow the active user and so pulseaudio for the non-active user should be suspended. this would be fine by me if it's possible, but obviously this isn't happening for me.

So any suggestions on how to get this working without the un-supported/un-recommended way of using system-wide?

Regards,
Fadi.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Mon Aug 15, 2011 1:23 pm    Post subject: Reply with quote

First, check if after user switch the new user's session is being marked as active.
Post also output of 'groups' for both users.
Back to top
View user's profile Send private message
fadlouni
n00b
n00b


Joined: 02 Oct 2004
Posts: 23
Location: Brussels, Belgium

PostPosted: Mon Aug 15, 2011 2:53 pm    Post subject: Reply with quote

how do you i check if the user's session is active?

as for groups, we're both almost the same:
first one:
wheel audio cdrom video games cdrw usb users locate messagebus plugdev beagleindex OWNUSERNAME pulse-access

Second:
wheel audio cdrom video games cdrw usb users messagebus plugdev beagleindex OWNUSERNAME pulse-access
Back to top
View user's profile Send private message
fadlouni
n00b
n00b


Joined: 02 Oct 2004
Posts: 23
Location: Brussels, Belgium

PostPosted: Mon Aug 15, 2011 2:59 pm    Post subject: Reply with quote

do you mean by consolekit session output? if yes:

from my terminal (i'm on tty7, she's tty8):
fadlouni ~/ #ck-list-sessions
Session3:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':20'
x11-display-device = '/dev/tty8'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-08-15T11:30:36.230047Z'
login-session-id = ''
idle-since-hint = '2011-08-15T14:56:31.633406Z'
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-08-15T11:28:15.290126Z'
login-session-id = ''


from her terminal:
Session3:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':20'
x11-display-device = '/dev/tty8'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-08-15T11:30:36.230047Z'
login-session-id = ''
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-08-15T11:28:15.290126Z'
login-session-id = ''
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Mon Aug 15, 2011 3:43 pm    Post subject: Reply with quote

Well, ck-list-sessions output seems to be correct.
Now, to make sure it's not a permission problem, one more thing is needed - output of getfacl on the audio /dev/ nodes for each of the users.
Back to top
View user's profile Send private message
fadlouni
n00b
n00b


Joined: 02 Oct 2004
Posts: 23
Location: Brussels, Belgium

PostPosted: Mon Aug 15, 2011 4:04 pm    Post subject: Reply with quote

thanks. issue is resolved.

after you gave the hint of checking active sessions, using that in my google search landed me with this thread:
https://forums.gentoo.org/viewtopic-t-875785-postdays-0-postorder-asc-start-25.html

unloading the esd modules resolved the issue for me.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum