LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-22-2009, 12:13 PM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
kde-4.22 no sound for regular (non-root) users


I just installed Mandrivia-2009.1 & have no sound playback as a regular user. Root user has no problem with sound.If I add "SUID" to the
permissions of the sound application or start the application as "Root" sound will play.

It appears to be a permissions problem but it might be a device identity problem too. I noticed that KDE4 "PHONON" lists different
"MUSIC" devices for Root & Regular (Non-Root) Users. Also, the Root devices will play a test sound but User devices will complain "Audio
Play Back Device HDA NVidia Does Not Work. Falling Back To Default"

Note the different warnings displayed below by the Audacious program when a sound file is played Root user & when it is played by a Regular (Non-Root) user. It seems like audacious wants a mixer called hw:0,0 but can't use it because it is reserved for the Root user by KDE PHONON sound manager.

Here is some info about my sound:

cat /proc/asound/card0/codec#0:....

Codec: Realtek ALC883


aplay -L:....

Default:CARD=NVidia
HDA NVidia, ALC883 Analog
Default Audio Device

HDA NVidia, ALC883 Digital
IEC958 (S/PDIF) Digital Audio Output

lspci | grep -i audio:....

00:05.0 Audio device: nVidia Corporation MCP61 High Definition
Audio (rev a2)

kcmshell4 kcm_phonon (RUN AS "ROOT" USER) --Output Preferences For
The "Music" Category:....

Default
hw:0,0 (ALC883 Analog)
hw:0,1 (ALC883 Digital)

kcmshell kcm_phonon (RUN AS "REGULAR" USER) --Output Preferences
ForThe "Music" Category:....

HDA NVidia () ALSA: x-phonon : CARD=0,DEV=0
HDA NVidia () #1 ALSA: plughw : CARD=0,DEV=1
default

audacious Alida_Waltz.mp3: (RUN AS "REGULAR" USER) {NO SOUND
OUTPUT}:....

** (audacious:20233): WARNING **: alsa_get_mixer(): Attaching to
mixer hw:0 failed: No such file or directory
ALSA lib confmisc.c:768parse_card) cannot find card '0'

audacious Alida_Waltz.mp3 (RUN AS "ROOT" USER) {SOUND FILE PLAYS}:....

** (audacious:20574): WARNING **: Unable to connect to dbus: Did
not receive a reply. Possible causes include:the remote
application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network
connection was broken.

Thanks for reading this post & I hope someone can help get my sound working for regular users.
 
Old 05-22-2009, 03:46 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
A couple of random suggestions:

1. Is your regular user account part of the audio group?

2. Do regular users have permissions on /dev/dsp and /dev/mixer? If not
Code:
chmod 666 /dev/dsp
chmoe 666 /dev/mixer
 
Old 05-23-2009, 01:33 AM   #3
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
kde-4.22 no sound for regular (non-root) users

Thanks for your suggestions. I did play around with with Permissions, Owners & Groups & still couldn't get sound for users. However, I finally got user sound by editing my /etc/security/console.perms.d/50-mandriva.perms file. I added the following:

<sound>=/dev/dsp* /dev/snd/*
<console> 0666 <sound> 0600 root

Here are the current permissions:

/dev/dsp stan root 0666
/dev/mixer root audio 0660

I was really surprised this worked because like I sad, I tried setting permissions before without any luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
v9.1 Slackware: no sound for regular users? Laurana Slackware 16 09-20-2007 03:50 PM
Grant Configuring SUDO Root Privileges to Regular Users +Problem+ redir Fedora 2 02-26-2007 11:10 AM
"Out of range" Error for regular users but not root geekychic Linux - Hardware 2 04-01-2005 09:25 AM
Giving regular users access to certain root-only commands slickrcbd Linux - Newbie 4 12-24-2003 07:27 AM
I can't login regular users in KDE on Mandrake 9.2 Aerlock Linux - Newbie 1 10-20-2003 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration