LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-26-2014, 07:32 AM   #1
here_and_there
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Rep: Reputation: Disabled
problems with sound under jessie


Hello,

I am having some troubles with sound under jessie 64bits. The problem is certainly due to insufficient permissions, but I am looking for a proper way to solve it.

Actually when running xfce4 mixer it says

Quote:
GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.
If I run it as root, it works fine and I can hear sound. If I add my user to the audio group sound works as well. The problem is that I have an ldap with couple hundred users and I don't think that adding them all is the proper way to do the thing.

Here is some additional information

Quote:
root@host:~# hwinfo --sound
19: PCI 1b.0: 0403 Audio device
[Created at pci.328]
Unique ID: u1Nb.JCtCKYv9IN3
SysFS ID: /devices/pci0000:00/0000:00:1b.0
SysFS BusID: 0000:00:1b.0
Hardware Class: sound
Model: "Intel C600/X79 series chipset High Definition Audio Controller"
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0x1d20 "C600/X79 series chipset High Definition Audio Controller"
SubVendor: pci 0x1028 "Dell"
SubDevice: pci 0x05d2
Revision: 0x06
Driver: "snd_hda_intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xfb220000-0xfb223fff (rw,non-prefetchable)
IRQ: 78 (257 events)
Module Alias: "pci:v00008086d00001D20sv00001028sd000005D2bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown

27: PCI 200.1: 0403 Audio device
[Created at pci.328]
Unique ID: 2Oa+._fw38BDFkM0
Parent ID: _Znp.nMBktMhAWbC
SysFS ID: /devices/pci0000:00/0000:00:02.0/0000:02:00.1
SysFS BusID: 0000:02:00.1
Hardware Class: sound
Model: "nVidia GK107 HDMI Audio Controller"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x0e1b "GK107 HDMI Audio Controller"
SubVendor: pci 0x10de "nVidia Corporation"
SubDevice: pci 0x094c
Revision: 0xa1
Driver: "snd_hda_intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xfb080000-0xfb083fff (rw,non-prefetchable)
IRQ: 36 (99 events)
Module Alias: "pci:v000010DEd00000E1Bsv000010DEsd0000094Cbc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #10 (PCI bridge)
Quote:
root@host:~# ls -la /dev/snd/
total 0
drwxr-xr-x 3 root root 280 nov. 26 13:42 .
drwxr-xr-x 19 root root 3440 nov. 26 13:42 ..
drwxr-xr-x 2 root root 80 nov. 26 13:42 by-path
crw-rw----+ 1 root audio 116, 2 nov. 26 13:42 controlC0
crw-rw----+ 1 root audio 116, 6 nov. 26 13:42 controlC1
crw-rw----+ 1 root audio 116, 5 nov. 26 13:42 hwC0D0
crw-rw----+ 1 root audio 116, 10 nov. 26 13:42 hwC1D0
crw-rw----+ 1 root audio 116, 4 nov. 26 13:42 pcmC0D0c
crw-rw----+ 1 root audio 116, 3 nov. 26 13:42 pcmC0D0p
crw-rw----+ 1 root audio 116, 7 nov. 26 13:42 pcmC1D3p
crw-rw----+ 1 root audio 116, 8 nov. 26 13:42 pcmC1D7p
crw-rw----+ 1 root audio 116, 9 nov. 26 13:42 pcmC1D8p
crw-rw----+ 1 root audio 116, 1 nov. 26 13:42 seq
crw-rw----+ 1 root audio 116, 33 nov. 26 13:42 timer
Quote:
Linux host 3.16.0-4-amd64 #1 SMP Debian 3.16.7-2 (2014-11-06) x86_64 GNU/Linux
The strangest thing is that I have a similar install on a next-by machine and sound works well without any particular setups.

Any help would be welcome.

Best regards,

--
 
Old 11-26-2014, 01:42 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I suspect if you check the file permissions on the working box they will be the same.

Users that use sound should be members of the audio group. This should be, I think, set up by default, if the user is created when the system was installed.

Groups control the access to the system by putting them in groups. You can add groups of your own too.

I see no way that having permission to use audio is going to be a threat as long as the users are not part of the admin group and certainly not root group or sudo group.

They can mess with the user land configuration as much as they want and it will only effect them. Any configuration they do will go in the appropriate ~/.foo file in their /home/<user name> directory and only be activated when they are logged in and will only effect them.

Other users will be using the user configuration settings that they set up from those same files in their /home/user directory.
 
Old 11-27-2014, 06:18 AM   #3
here_and_there
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello wigdet,

Quote:
Originally Posted by widget View Post
I suspect if you check the file permissions on the working box they will be the same.
The permissions are the same on all the boxes. The group audio has no members on any of the machines. Although on couple of them I have sound and on the rest no sound at all.

Quote:
Originally Posted by widget View Post
Users that use sound should be members of the audio group. This should be, I think, set up by default, if the user is created when the system was installed.
All my users are ldap users, created dynamically. This means that each time that I add a new user, I should also modify the /etc/group file on every single machine. This is a bit tedious.

Thank you for any further comments,

Best,

--
 
Old 11-27-2014, 10:34 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
That would be tedious but if your boxes are all connected to the same control box all the time you should be able to pretty easily build a sed command that would modify all the files at once.

I have a splitting headache right now and not about to even think how that would be set up. But if you mount all your systems in the box you manage them from in /mnt you should be able to set up a command to add what you need

Might be easier with cat but I really can't think straight right now.

EDIT;
Nope can't think. The easy thing to do is a series command for addgroup or adduser I suspect.

Seems like you should be able to configure adduser to add new users to the group audio when you create the user.

Last edited by widget; 11-27-2014 at 10:39 PM.
 
Old 11-28-2014, 06:58 AM   #5
here_and_there
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
It's not very logical though. As I've mentioned, there are machines with no users in the audio group and with working sound. After exactly the same installation process, there other machines with no sound. My question is how to get to know the reason for working or not working of a device (given that on the machines, on which sound is not working as user, it is indeed working as super-user).

Best,

--
 
Old 11-28-2014, 10:23 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
The group audio has no members on any of the machines. Although on couple of them I have sound and on the rest no sound at all.
The problem is that when you created users you didn't add specify users groups. What command did you use to add the user? Did you use useradd or adduser, because adduser is interactive & prompts for group.
 
Old 12-01-2014, 06:17 AM   #7
here_and_there
LQ Newbie
 
Registered: Oct 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello,

as stated in my first post, the users are added via ldap. In my nsswitch file, there is a compat, ldap statement.

Best,

--
 
  


Reply



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
[SOLVED] Problems with Radeon video card in Debian Jessie testing okiemel Linux - Software 5 01-04-2014 05:45 PM
[SOLVED] Sound stopped working after update to Jessie goumba Debian 15 12-12-2013 04:28 AM
[SOLVED] Debian Jessie + Enlightenment E17 Git`s - problems BaptismOfFire Linux - Software 2 10-16-2013 03:48 PM
Wheezy or Jessie? userzero Debian 2 05-25-2013 09:01 PM
Sound Problems: CD works, no system/mp3/video sound tabnaka SUSE / openSUSE 5 01-13-2006 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:28 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