Re: [Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Good job David!!! On Tue, Aug 24, 2010 at 10:16 AM, David Henningsson <433...@bugs.launchpad.net> wrote: > FYI, I just wrote a small wiki article about the audio group: > https://wiki.ubuntu.com/Audio/TheAudioGroup -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
FYI, I just wrote a small wiki article about the audio group: https://wiki.ubuntu.com/Audio/TheAudioGroup -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Apologies; I had thought that this bug was going in a different direction. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
No, that's really the same bug. users-admin shouldn't show that group at all since it's plainly broken. This behavior doesn't make sense. That's why I said we should remove the audio group, which would fix the bug for all people that were added to it without noticing. If that doesn't seem right, let's remove the line from users-admin. ** Changed in: consolekit (Ubuntu) Status: New => Triaged ** Changed in: consolekit (Ubuntu) Importance: Undecided => Medium ** Changed in: gnome-system-tools (Ubuntu) Status: Fix Released => Triaged -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
I created a separate bug on the issue: https://bugs.launchpad.net/ubuntu/+source/system-tools- backends/+bug/593110 -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Well, I really appreciate the workaround proposed by Igor, great job, many thanks! At least it has made sound to work more predictable. However, I believe the issue is broader than just playing with the "audio" group. Since it affects not 100% of users and some of them are used to hear sound without any problems regardless of logged in users. It should be a clear root cause stated by developers re: why this has happened. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
On the contrary, it's ridiculously easy to do. I admitted myself access to a friend's computer for shared access (both admins). Upon setting it up my profile, I glanced through the permissions and found that it would be worthwhile for me to have access to Video, Audio, etc. Thus, I checked them all, thinking it was neat that I can deny such things to users. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Chauncellor: at least, if you were able to play with permissions, you should be able to find this bug report. With the new users-admin, it's harder to tweak fine-grained permissions, so hopefully nobody will do this anymore. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Well, the fact remains that this needs to be fixed! I messed up user switching because I innocently gave myself permission to merely "use" the sound card. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Description changed: + 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/privilege + escalation) needs to enable audio only for users belonging to audio + group (when they are at the console), and leave it disabled for users + not in the audio group. + + + 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/example-content/Aesop'\''s_Fables,_Volume_1_(Fable_1)_-_The_Fox_and_The_Grapes.spx 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/example-content/Ubuntu_Free_Culture_Showcase/SpiritOfUbuntu.ogv while the first user audio is still not finished. 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>Applications, but doesn't output any sound, and moving the application individual sound sliders only affect the sound being played in session 2. All that was handled properly in Jaunty and previous Ubuntu releases. ProblemType: Bug Architecture: i386 AudioDevicesInUse: - USERPID ACCESS COMMAND - /dev/snd/controlC0: paphro 9493 F pulseaudio + USERPID ACCESS COMMAND + /dev/snd/controlC0: paphro 9493 F pulseaudio Card0.Amixer.info: - Card hw:0 'Intel'/'HDA Intel at 0xea30 irq 22' -Mixer name : 'Realtek ALC889A' -Components : 'HDA:10ec0885,1458a002,00100101' -Controls : 38 -Simple ctrls : 21 + Card hw:0 'Intel'/'HDA Intel at 0xea30 irq 22' + Mixer name : 'Realtek ALC889A' + Components : 'HDA:10ec0885,1458a002,00100101' + Controls : 38 + Simple ctrls : 21 Date: Sun Sep 20 22:09:30 2009 DistroRelease: Ubuntu 9.10 NonfreeKernelModules: nvidia Package: alsa-base 1.0.20+dfsg-1ubuntu4 PackageArchitecture: all ProcEnviron: - LANG=en_GB.UTF-8 - SHELL=/bin/bash + LANG=en_GB.UTF-8 + SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-10.34-generic SourcePackage: alsa-driver Uname: Linux 2.6.31-10-generic i686 -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Also affects: consolekit (Ubuntu) Importance: Undecided Status: New -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Instead pulling users from the audio group etc. to make user switching work, device-kit configuration needs to take user groups into account. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Mind you that I'd consider any device-kit privilege escalation implementation that isn't configured to support/use (be itself easily configurable by) standard unix user group memberships as a regression. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Milan, I think that removing audio group is not a good idea. There are at least 2 reasons. 1. It might affect a lot of system components at least udev, libmtp, alsa which might cause regressions. 2. It would prevent group based access control to the audio device - mind that /dev is dynamic, so configuring back /dev/dsp group owned by audio will not be that easy - i.e. this kind of access control is crucial if your box is used remotely as a juke box. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Milan, that would be a very unwise thing to do for an LTS. Of particular import is the fact that not every Ubuntu derivative uses PulseAudio. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Chris: what about removing the 'audio' from from the system altogether? ATM we still show it as a privilege in the Advanced dialog, which can be misleading. Groups that aren't used shouldn't be created in the first place, and users-admin will then hide them. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
This bug was fixed in the package gnome-system-tools - 2.29.91-0ubuntu2 --- gnome-system-tools (2.29.91-0ubuntu2) lucid; urgency=low * debian/patches/26_user_profiles_conf.patch: - Don't add users to the audio group. This is consistent with user-setup and fixes an issue with sound device permissions when switching between users. Thanks to Igor Wojnicki for spotting this (LP: #433654) -- Chris CoulsonSun, 07 Mar 2010 11:56:59 + ** Branch linked: lp:~ubuntu-desktop/gnome-system-tools/ubuntu ** Changed in: gnome-system-tools (Ubuntu) Status: In Progress => Fix Released -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Changed in: gnome-system-tools (Ubuntu) Importance: Undecided => Medium ** Changed in: gnome-system-tools (Ubuntu) Assignee: (unassigned) => Chris Coulson (chrisccoulson) ** Changed in: gnome-system-tools (Ubuntu) Status: Confirmed => In Progress -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Hi Igor, Thanks so much for this! U-DA-MAN! Igor Wojnicki wrote: > Guys I found it!!! Here is the solution! > > 1st the lucid daily build (28.02.10) doesn't perform better than karmic, but > it gave me some clues. > When it logged in (the daily build) as ubuntu I started rythmbox to play. > I added another user aa. > I switched to aa, and... the music stopped playing :) > then I started rhtythmox as aa, it plays nice. > Swithed back to ubuntu and bummer, aa music keeps playing > So I added another user bb and repeated the procedure but swichinch between > aa and bb. In either case whichever user starts the music first it gets > access to the audio device and it's not willing to give it beack upon > switching. > Why than ubuntu user behaves differently, giving back access to the audio > device? > I checked permissions: System->User Settings->Advanced->User Priviledges. > It turns out that by default ubuntu DOES NOT have 'Use audio devices checked' > hmmm interesting. > So I unchecked this option for both aa and bb users. Guess what It started > working! > > So I went back to karmic to investigate the user privileges there. ANd > guess what, by default a desktop user has 'Use audio device' checked. So > I unchecked it and... sound upon user switching started to work :) > > Bottom line. If you want to have a user, which currently uses the > display, to have access to the sound device with all the benefits from > sound muting upon user switch, you need to uncheck 'Use audio devices' > privileges for this user. As a matter of fact I unchecked it for all my > users. > > These privileges are very confusing then. > I guess their proper interpretation is that if: > - checked: the user locks the audio device as long as he wants, no sound > switching upon user switching, > - unchecked: the user which currently uses the display has access to the > audio device, sound switching takes place upon user switching. > > Ant the last word. I think it is very sad what happens here. None of the > developers/packagers could help the community with this problem. But the > solution was there! It seems that this is a kind of undocumented feature > nobody knows about. Isn't there something wrong with software/package > care at ubuntu then? > > Anyway, have fun with your audio now! > -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Luke you're right. Fortunately ubiquity (which is the ubuntu installer) seems to work just fine - at least according to its changelog: user-setup (1.27ubuntu1) karmic; urgency=low * Resynchronise with Debian. Remaining changes: - Add the initial user to the adm, dip, lpadmin, and sambashare groups too, and to the admin group if no root password is set. Do not add them to the audio, video, floppy, dip, netdev, powerdev, or scanner groups. ... -- Colin Watson Wed, 24 Jun 2009 13:59:33 +0100 There are user default groups defined in d-i/source/user-setup/debian /user-setup-udeb.templates (see ubiquity sources) which match the changelog. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
The user created during install is not created via the GNOME tools, but via the low level command-line components to create users, so the first user should not be in the audio group. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Good point Erik. I'm not sure about that 'Administrator Profile' either - that's why I didn't propose to change it. But It seems to be reasonable to remove audio group from all three profiles. I guess packaging is not a problem, committing the changes and making them to Lucid might be though. I already posted a question to gnome-system-tools maintainers: https://answers.launchpad.net/ubuntu/+source/gnome-system-tools/+question/103004 We'll see what they think about it. Besides I posted the solution to the forum: http://ubuntuforums.org/showthread.php?t=1420051 -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
What about the user that is made when installing? Isn't that an administrator? I think we should make it so that the user that is created when you install works properly too. (I'm just not sure if it is based off the administrator profile. If it is, is it the right thing to make the administrator not part of the sound group by default?) I (somewhat) know how to package, so I could(would like to) try to make a patch and debdiff for this, but before I do that, I want to make sure that we agree on what is the correct changes to make. (It would also be nice to have advice from someone who knows what implications this might have, like the package maintainer.) -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Changed in: gnome-system-tools (Ubuntu) Status: New => Confirmed -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Regarding the property 'Use audio device' and my motion (comment #48). Giving it a second thought the rename might be unfortunate. Especially if one does not have consolekit installed. If consolekit IS NOT installed than assigning a user to audio group makes an audio device accessible to him, which translates into 'Use audio device' property which does that (by the way it seems that all these properties translate into assigning the user to particular groups). If console kit IS installed, than upon log in/user switching, it applies, through udev, acl to make /dev/{snd,audio,mixer) accessible by the user which logs in/is switched to. Than, assiginig a user to audio group doesn't make any sense and the name is misleading. Bottomline. Since consolekit depends on ubuntu-dektop, which makes it default and necessary package for ubuntu, the best solution would be not to include a default desktop user in the audio group. It can be performed by altering the gnome user profiles in /etc/gnome-system- tools/users/profiles, see included attachment. ** Attachment added: "profiles" http://launchpadlibrarian.net/39965106/profiles -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Actually the problem is more general and it regards permissions to access certain devices (and files in /dev directory). Historically if a user needs access to particular device he is assigned to a group which group-owns the device file. It has worked for ages in the unix world i.e. access to an audio device, cdrom, cd burner etc. This group based approach has several well known limitations. Now it seems that such an access is controlled by consolekit/policykit/udev, which makes some sense, at least because of the dynamic nature of /dev directory. The gnome-system-tools and especially users-admin seem not to know anything about acl. I'm not sure whether it's good or bad - it depends, espoecially that gnome is cross platform - on other systems /dev might be static or there might be no acl at all. So I guess it should be up to the ubuntu team to keep the group assignments and acl sane and well documented, and the entire mechanism clear. Unfortunatelly I haven't found any explanation of it :( in the documentation. Perhaps a good idea it is to start a thread about it in the ubuntu formums. However, in my opinion, such a big thing as device access policy should be officially documented - not reverse engineered! -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
I couldn't seem to get the fix mentioned to work with existing users on both karmic and lucid. It seems to work after a restart though. So I can confirm that the fix works, after a restart. I second Igor Wojnicki 's suggestion, with one additional thing:either upgrade the setting to unchecked if it is checked, or ask the user about it. I had trouble with this bug for a long time before I tried to file a bug about this and found this bug. So, I imagine lots of people who don't usually file bugs wouldn't know about the fix, and the bug would still affect them after the default was updated, because their settings, which didn't change from the default, wouldn't be changed to the new default, right? -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Changed in: pulseaudio (Ubuntu) Status: Confirmed => Invalid -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
As per latest comments, this is not a pulseaudio bug. ** Changed in: pulseaudio (Ubuntu) Status: Confirmed => Invalid ** Changed in: pulseaudio (Ubuntu) Status: Invalid => Confirmed ** Changed in: pulseaudio (Ubuntu) Assignee: Luke Yelavich (themuso) => (unassigned) -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
PS2. Disabling 'Use audio device' removes the user from audio group. And since /dev/dsp is acl controlled, access to it is granted to the user which currently uses the display. I guess that the ACL magic is done by policykit/udev - but i'm not sure though. So, to enable sound switching with user switching, just remove your users from audio group. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Also affects: gnome-system-tools (Ubuntu) Importance: Undecided Status: New -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
PS. I would like to make a motion to: 1. rename the property 'Use audio device' to 'Use audio device exclusively', 2. make it unchecked by default, 3. document it. It would apply to users-admin application in gnome-system-tools. -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Guys I found it!!! Here is the solution! 1st the lucid daily build (28.02.10) doesn't perform better than karmic, but it gave me some clues. When it logged in (the daily build) as ubuntu I started rythmbox to play. I added another user aa. I switched to aa, and... the music stopped playing :) then I started rhtythmox as aa, it plays nice. Swithed back to ubuntu and bummer, aa music keeps playing So I added another user bb and repeated the procedure but swichinch between aa and bb. In either case whichever user starts the music first it gets access to the audio device and it's not willing to give it beack upon switching. Why than ubuntu user behaves differently, giving back access to the audio device? I checked permissions: System->User Settings->Advanced->User Priviledges. It turns out that by default ubuntu DOES NOT have 'Use audio devices checked' hmmm interesting. So I unchecked this option for both aa and bb users. Guess what It started working! So I went back to karmic to investigate the user privileges there. ANd guess what, by default a desktop user has 'Use audio device' checked. So I unchecked it and... sound upon user switching started to work :) Bottom line. If you want to have a user, which currently uses the display, to have access to the sound device with all the benefits from sound muting upon user switch, you need to uncheck 'Use audio devices' privileges for this user. As a matter of fact I unchecked it for all my users. These privileges are very confusing then. I guess their proper interpretation is that if: - checked: the user locks the audio device as long as he wants, no sound switching upon user switching, - unchecked: the user which currently uses the display has access to the audio device, sound switching takes place upon user switching. Ant the last word. I think it is very sad what happens here. None of the developers/packagers could help the community with this problem. But the solution was there! It seems that this is a kind of undocumented feature nobody knows about. Isn't there something wrong with software/package care at ubuntu then? Anyway, have fun with your audio now! -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Attachment added: "User 2's log from 'dummy output' run" http://launchpadlibrarian.net/39894878/pulseverbose_user2_dummy.log -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Ok, I think I figured out the difference between getting a dummy output or having the output there but not working for the second user. If user 1 starts playing something before user 2 logs in an starts their client, then user 2 can't see (or select) the output in Sound Preferences (which usually would give them a dummy output if they have no other sound devices, right?). If both users have their pulseaudio going before one starts to play something, then user 2 can see the output device, but their sound applications can't play anthing. I'll attach the logs. ** Attachment added: "pulseverbose_user1_dummy.log" http://launchpadlibrarian.net/39894859/pulseverbose_user1_dummy.log -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Attachment added: "Log from first user" http://launchpadlibrarian.net/39894555/pulseverbose_user1.log -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
Ok, I followed the instructions on the wiki. I disabled autospawning for both users and then started pulseaudio as specified on both users. Then on user 1 I started playing a .ogg. Opened sound preferences and and verfied that the music player showed up. Switched to user 2. (Could still hear user 1 sound. Login was silent) Opened sound preferences and switched to the same out put device as user 1 (I have to sound output devices: headphones and internal sound card). Tried to play another song with totem. Totem opened, but wouldn't play. I could still hear user a sound. After awhile user 1 's song finished and user 2 's song started, and then eventually finished. Stopped both pulseaudio instances. ** Attachment added: "pulseverbose_user2.log" http://launchpadlibrarian.net/39894506/pulseverbose_user2.log -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 433654] Re: [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences
** Summary changed: - [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 -- [Karmic]&[Lucid] Only one user has sound; no hw shows in Sound Preferences https://bugs.launchpad.net/bugs/433654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs