Bug 237852

Summary: sound doesn't properly work with f-u-switching/ConsoleKit (dmix)
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: pulseaudioAssignee: Lennart Poettering <lpoetter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davidz, lkundrak, pierre-bugzilla, rvokal, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-28 20:58:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 237860    

Description Bill Nottingham 2007-04-25 18:25:46 UTC
Note: this bug may end up being fixed somewhere else.

Description of problem:

If you have one user that logs in on the desktop, ConsoleKit grants them ACL
access to the sound device. They then start a mixer applet, and potentially
other apps that use the sound device.

You then use fast-user-switching to switch to another user. ConsoleKit then
grants this new user ACL access to the sound device. So, apps then open the
sound device...

... and all fail, because they do not have the proper dmix IPC key to talk to dmix.

Some exit with an error (play). Some produce no sound (flash player). Some hang
(rhythmbox). In any case, it's bad.

Version-Release number of selected component (if applicable):

alsa-utils-1.0.14-0.5.rc2.fc7
fast-user-switch-applet-2.17.4-4.fc7
ConsoleKit-0.2.1-2.fc7

Comment 1 David Zeuthen 2007-04-25 18:48:22 UTC
(In reply to comment #0)
> Note: this bug may end up being fixed somewhere else.
> 
> Description of problem:
> 
> If you have one user that logs in on the desktop, ConsoleKit grants them ACL
> access to the sound device. They then start a mixer applet, and potentially
> other apps that use the sound device.

Actually HAL does but that's besides the points.

> ... and all fail, because they do not have the proper dmix IPC key to talk to
dmix.
> 
> Some exit with an error (play). Some produce no sound (flash player). Some hang
> (rhythmbox). In any case, it's bad.

Quite clearly an ALSA bug wouldn't you agree? Anyway, the solution, however, I
think lies elsewhere: PulseAudio. Reassigning to alsa-utils regardless.

I've also bug 237860 to track these issues (another one is that DRI only works
on the first session)


Comment 2 Martin Stransky 2008-02-22 10:57:17 UTC
PulseAudio should handle it now, right?

Comment 3 Lubomir Kundrak 2008-02-28 18:21:51 UTC
Right. This problem disappears once gnome volume control is replaced with
pavucontrol.

Comment 4 Lennart Poettering 2008-03-28 20:58:17 UTC
g-v-c already can access the PA mixer thorugh gst. I think this problem is fixed
now.