LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2008, 06:52 AM   #1
jbum
Member
 
Registered: Apr 2008
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
Sound mixer has no controls


I recently installed Slackware 12.1 on a Thinkpad R51. As root I tested Gnome and other newly installed applications. I created a user and logged in to find that my volume control applet in XFCE had no controls.

It looks like the following:

http://img.photobucket.com/albums/v6...ux/control.jpg

The volume control properties shows only "default" but no other item and the wannabe master has nothing in it.

http://img.photobucket.com/albums/v6...trol-props.jpg

Now this all works fine as root. Also, I can't run alsamixer as a regular user. I get "alsamixer: function snd_ctl_open failed for default: No such device" Again, there is NO problem when this is done as root.

Can someone please help me?

Last edited by jbum; 07-13-2008 at 06:54 AM.
 
Old 07-13-2008, 04:48 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Try adding your user to the audio group using the following command:
Code:
gpasswd -a username audio
For unrelated reasons, you should also make sure your user is in the plugdev, cdrom, and video groups using a similar command.
 
Old 07-13-2008, 05:03 PM   #3
jbum
Member
 
Registered: Apr 2008
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks for the reply. Was there a change in Slackware 12.1? I believe nothing special needed to be done in previous release of Slackware for a user to be able to control the sound.
 
Old 07-13-2008, 09:17 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by jbum
Thanks for the reply. Was there a change in Slackware 12.1? I believe nothing special needed to be done in previous release of Slackware for a user to be able to control the sound.
First of all, did it work?

Between 12.0 and 12.1 nothing changed in this regard. Between 11.0 and 12.0/12.1, yes, something probably changed. If you use runlevel 3, you will already be placed in the audio group by default (though not 'officially') due to /etc/login.defs, which contains the following:
Code:
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting).  Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#
# Most of these groups are self-explanatory.
#
# Note that users are added to these default groups only when
# logging into a shell with /bin/login, not when using a login
# manager such as kdm.  In that case, users who should have
# hardware access must be added to the appropriate groups
# when the user is added with adduser or useradd, or by editing
# /etc/group directly.
#
CONSOLE_GROUPS          floppy:audio:cdrom:video
This is the same in 12.0 and 12.1, I believe. If you use runlevel 4 (the graphical login), however, you will not automatically be placed in these groups and you may have trouble with audio permissions.
Code:
$ ls -l /dev/audio
crw-rw---- 1 root audio 14, 4 2008-07-13 16:35 /dev/audio
That shows that only the audio group (and root, of course) have access to /dev/audio -- and hence, you must be in the audio group unless you want trouble.

If you use the `adduser` script when adding users, it recommends groups to you, including the plugdev, cdrom, audio and video groups, I believe. In addition, it is mentioned in Slackware-HOWTO on your install CD/DVD:
Quote:
Originally Posted by Slackware-HOWTO
To make an account for yourself, use the 'adduser' program. To start it,
type 'adduser' at a prompt and follow the instructions. Going with the
default selections for user ID, group ID, and shell should be just fine
for most users. You'll want to add your user to the cdrom, audio, video
plugdev (plugable devices like USB cameras and flash memory) and scanner
groups if you have a computer with multimedia peripherals and want to be
able to access these. Add these group names, comma separated, at the
following prompt:

Additional groups (comma separated) []:
 
Old 07-15-2008, 01:38 PM   #5
jbum
Member
 
Registered: Apr 2008
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
Hi T3Slider,

Sorry for the late response. I finally did get around to doing what you suggested. It worked! I have sound now and the controls show up.

I added the user originally using "useradd", not "adduser". However, that was never a problem before. Strange!

Anyways, for some reason I wanted to try sound recording and I can't seem to get that working. I was using KRec and turned on "capture" and "mic" on but I wasn't able to capture any sound through the built-in mic (Thinkpad R51 laptop).

As for the original problem, everything seems great now.
 
  


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
ALSA(mixer) how to delete usermade softvol controls? Jykke Linux - Software 0 04-18-2006 09:43 AM
Where did my mixer controls go? kostik Linux - Hardware 3 12-23-2005 04:08 PM
no sound mixer controls jonfa Linux - Hardware 1 04-13-2005 07:41 PM
couldn't open mixer device /dev/sound/mixer pitts68 Linux - Newbie 4 11-15-2004 08:03 AM
Couldn't open mixer device /dev/sound/mixer arctic123 Linux - Newbie 4 09-22-2004 09:39 AM

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

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