You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, February 19th 2006, 1:04pm

Sound problem in multisession environment

Hi,

I am using KDE3.4 under Mandriva 2006.
When I am the only user with an open session, I do not have any sound problem. When I lock my current session and logged in with another user name, then I get the following pop up window :
Sound server informational message.
Error while initializing the sound driver.
device /dev/dsp can't be open (permission denied).
The sound server will continue using the null output device.

This does not depend on who is logged in first. It seems that when a user is the owner of /dev/dsp, then any other user can't access the device anymore (even if this user is member of the "audio" group). I did not try with root user.

Any idea to solve the problem?

Regards.

Eric.

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Sunday, February 19th 2006, 1:16pm

RE: Sound problem in multisession environment

And you did check the group permissions of /dev/dsp as well?
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

3

Sunday, February 19th 2006, 6:05pm

RE: Sound problem in multisession environment

Hi,
This is what I get with ls -als command :

crw-rw---- 1 eric audio 14, 3 fév 19 18:07 /dev/dsp

Regards.

Eric.

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

4

Monday, February 20th 2006, 9:14am

RE: Sound problem in multisession environment

OK, this works for me. So it should be possible :) Although I have

Source code

1
crw-rw----  1 root audio 14, 3 Feb 19 18:33 /dev/sound/dsp


Did you check your Sound System settings in the KDE Control Center? In my case, my "normal" use account has Alsa as sound system and my demo account has "Autodetected" (which will probably mean Alsa as well).
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

5

Sunday, February 26th 2006, 5:53pm

RE: Sound problem in multisession environment

Hi,

I've got "autodetect" too (both accounts).

Regards.

Eric.

6

Sunday, October 22nd 2006, 7:17pm

Not a KDE Issue Really

First, there's no point in directly modifying privileges on the /dev directories, since those are changed by the system on login. So any change you make will only last until next time the first user logs in. In addition, it doesn't directly involve artsd, or alsa, or any of that.

Instead, this has to do with the way Mandriva configures sound support for multiple logged-in users.

The sound devices get owned by whoever logs in first. This is inconvenient for multiple local logins, but prevents annoyance when remote users can login.

The behavior is governed by a script /etc/security/console.perms.d/50-default.perms. But there is no need to modify that. The MDV crew set it up in a flexible way.

There is a system group called audio. To let multiple logged-in users share sound, just add your non-system users to this group. In Mandriva, you do this with MCC (also called "Configure Your Computer") under System -> (blah, blah) Users on Your System. Be sure to uncheck "Filter System Users" if you don't see the audio group listed.s

At least, that works for me with MDV2007.

It'll also work even if some logins are KDE and some aren't. It's to do with how the system handles user login rather than with the particular session type.