Sound stops when switching user
Hello
We are two users on the same desktop system. We always use one user to play music since AFAIK it's not possible to share the Amarok database.
However, when we switch from the "Amarok-user" to the other user the sound stops. Amarok keeps playing but I guess the other user takes over the sound.
Is this fixable? We're using Ubuntu Hardy.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2008-04-22
- Last reply:
- 2008-12-23
| Harvey Muller (hlmuller) said : | #1 |
Thomas,
This is a bit of a shot in the dark, because I don't use Amarok. But you want to check that second user is in the audio group:
$ grep audio /etc/group
If the second user's name is not included in that group, you can add it by:
$ adduser <usesrname> audio
That will add the user to the group.
Please report back here and let me know if this resolves your question, or if you require further information.
Thanks,
Harvey
Hello
Both users are included in the audio group. Both users can play music, just not at the same time and also, both users have ESD enabled.
| Harvey Muller (hlmuller) said : | #3 |
Thomas,
As I mentioned previously, I'm not a wolf user. But I located this in the forums:
http://
Might it help?
Please let me know if this resolves the question, if not I'll step out of the way.
Thanks,
Harvey
Thanks but I have seen that way of sharing Amaroks db. But this doesn't solve my audio problem...
| Christoph Langner (chrissss) said : | #5 |
The reason is PulseAudio. PulseAudio stops all sound if you switch to another console and/or switch to a different user. I don't know if there is a workaround.
| Harvey Muller (hlmuller) said : | #6 |
Thomas,
I've just installed Amarok, and created a new user to test what you are trying to do.
Based on my testing, I don't see that it is possible to continue playing a sound track while switching users. Your observation that each user has their own instance of sound is verifiable by the following:
1. Log in to first user
2. Run in terminal:
$ ls -l /dev/shm
3. Note permissions and user/group names for pulse-shm-*
4. Switch to second user
5. Run in terminal:
$ ls -l /dev/shm
6. Note permissions and user/group names for second pulse-shm-*
This indicates that each instance of pulse is only readable by the individual user, and demonstrates that each user has their own instance.
Research shows database sharing is possible however. But this is not what you are trying to achieve.
So to repeat, it does not look like it is possible to continue a song while switching amongst different users on the desktop.
What I have observed however, is that if a song is playing in amarok for User A, and the desktop is switched to User B anbd then back to User A, the song will still be playing.
Please report back here and let me know if this resolves your original question, or if you require further information.
Thanks,
Harvey
| Christoph Langner (chrissss) said : | #7 |
Btw, MPD would be the better solution for your task.
| Harvey Muller (hlmuller) said : | #8 |
Hi Thomas,
I'm just checking back in to see if the information provided Solved your question. If so, please report back here and change the status of the question.
Thanks!
Harvey
| Michael Nagel (nailor) said : | #9 |
corresponding bug is filed at https:/
| Amorphous (amorphous) said : | #10 |
I have the same issue, and could it be that using ALSA could be a solution?
This was fine before, but seems to have changed in hardy. Am i right in thinking that Gutsy was using asla??? and could a change to alsa solve this?
hopeful...
| Amorphous (amorphous) said : | #11 |
I have the same issue, and could it be that using ALSA could be a solution?
This was fine before, but seems to have changed in hardy. Am i right in thinking that Gutsy was using asla??? and could a change to alsa solve this?
hopeful...
| Juaco (kankito) said : | #12 |
AFAICT is a problem in pulseaudio, and i'm sorry to say it looks to be by design (the concept of the ubuntu devs is to have different "sound sessions" per user).
It has a workaround though, which i've applied succesfully. See https:/
Can you help with this problem?
Provide an answer of your own, or ask Thomas N for more information if necessary.

