Only one user gets sound with privilege "Use audio devices"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
consolekit (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
gnome-system-tools (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
pulseaudio (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Bug Description
Sound does not work for different users if they belong to the audio group.
A workaround is to remove the users from the audio group. With this however simply managing individual device access based on standard group memberships stops working (regression).
Consolekit (like any kit handling device permissions/
----
Steps to reproduce the bugs:
1. Create 2 new users, user1 and user2 (to be sure you use Karmic default settings).
2. Restart. Login as one user, then double click on /usr/share/
3. Switch to second user. The sound from the first user is still playing uninterrupted, even at gdm stage.
2. As the second user, double click on /usr/share/
Result: First user prevent any sound to be played as second user (with Totem, the video even doesn't start, but with other applications you can sometimes get the video but no audio). When the first user audio finishes to play, audio can be played as user2, but that would block audio for user1 if you switch back to its session.
Expected behavior: like in Jaunty and previous releases, sound from one user should stop playing when another session is active. In Jaunty and earlier, even VT had sound from one user when logged as this user, and from the other when logged as him.
Some audio applications on one session also prevent any sound to be played for the other user session even when they have nothing to play.
(Note: this is not a multi-seat setup, but a single seat computer with multiple user accounts.
See attached screenshots for details).
Other example: a first user has a session open, playing sound with Amarok (paused) on a Gnome desktop.
The second user chose "Switch user" in FUSA, then login. The new session doesn't have any sound, and the "Sound Preferences" window only lists "Dummy Output - Stereo" in the Output tab (Screenshot 1). In the hardware tab, nothing appears (Screenshot 2).
When the first user closes Amarok, the second user now has the hardware showing in the Hardware tab (Screenshot 3) but no sound, since the Profile is "Analog Stereo Duplex" (should be Analog Stereo Output"). When the user changes it to the right Profile, sounds works (see also Screenshot 4, compared to Screenshot 1 when no sound was played).
The second user can now play sound, for example a flash video.
Now though, the first user doesn't have any sound when coming back to its session (or more exactly, the only sound he can hear is the flash video being played in the second user's session, even though the users have switched. Any audio application the first user opens shows in Sound preferences>
All that was handled properly in Jaunty and previous Ubuntu releases.
ProblemType: Bug
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xea300000 irq 22'
Mixer name : 'Realtek ALC889A'
Components : 'HDA:10ec0885,
Controls : 38
Simple ctrls : 21
Date: Sun Sep 20 22:09:30 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: alsa-base 1.0.20+
PackageArchitec
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: alsa-driver
Uname: Linux 2.6.31-10-generic i686
Related branches
- Chris Coulson: Pending requested
-
Diff: 37 lines (+11/-1) (has conflicts)2 files modifieddebian/changelog (+10/-0)
src/users/privileges-table.c (+1/-1)
description: | updated |
Changed in alsa-driver (Ubuntu): | |
status: | Incomplete → New |
tags: |
added: regression-release removed: regression-potential |
tags: | added: amd64 lucid |
Changed in pulseaudio (Ubuntu): | |
status: | New → Confirmed |
summary: |
- [Karmic] Only one user has sound; no hw shows in Sound Preferences + [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound + Preferences |
Changed in pulseaudio (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in gnome-system-tools (Ubuntu): | |
status: | New → Confirmed |
Changed in gnome-system-tools (Ubuntu): | |
assignee: | nobody → Chris Coulson (chrisccoulson) |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
description: | updated |
summary: |
- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound - Preferences + Only one user gets sound with privilege "Use audio devices" |
Changed in gnome-system-tools (Ubuntu): | |
assignee: | Chris Coulson (chrisccoulson) → nobody |
Please un-assign and comment if you can't address this.