SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=1
options snd-emu10k1 index=0
# --- END: Generated by ALSACONF, do not edit. ---
Did you try alsaconf ? ALso for my part, I put all users who I want to access audio in audio group in /etc/group ( audio gid is 17 ), then I chown -R root:audio /dev/snd; chown root:audio /dev/dsp*; chown root:audio /dev/sequencer ; chown root:audio dev/amidi* ; chown root:audio /dev/sndstat; chown root:audio /dev/audio* ... I forget surelly some but the idea is to chown root:audio all audio devices in /dev
Originally posted by keefaz Did you try alsaconf ? ALso for my part, I put all users who I want to access audio in audio group in /etc/group ( audio gid is 17 ), then I chown -R root:audio /dev/snd; chown root:audio /dev/dsp*; chown root:audio /dev/sequencer ; chown root:audio dev/amidi* ; chown root:audio /dev/sndstat; chown root:audio /dev/audio* ... I forget surelly some but the idea is to chown root:audio all audio devices in /dev
Yup, tried alsaconf. It could not detect any sound card. But when I did lspci, my sound card is listed there.
btw, what is -R root:audio for? Changing ownership from root to audio group?
And why do you change the ownership? I thought changing the permission will do?
I would not change permissions for files in /dev if I were you, only if you know exactly what you do.
Change group ownerchip for videos/audio file devices has the advantage to provide video and audio device access for all users in audio and video group, no need to be root to listen mp3 for example, nor playing or ripping dvds.
Change group ownerchip for videos/audio file devices has the advantage to provide video and audio device access for all users in audio and video group, no need to be root to listen mp3 for example, nor playing or ripping dvds.
I thought thats under permission? Giving users permission to play music, video etc?
Hmm, if lspci sees the sound card, I'm thinking maybe you just don't have the drivers for the card installed? Are they modules that you built them as? If they are, are they loaded?
permission is for read, write, execute a file then ownership let the system decide which user/group has the right to do the previous action (read, write, execute).
So for example if (as root) you did chmod -x /bin/bash (do no try it lol), all users, ever root himself won't be abble to execute bash (wich would be annoying).
First is permissions, second is ownerchip, if you tweak permissions to /dev devices, ever root won't be abble to access devices.
As I said try to add your user to audio and video groups in /etc/group
then chown root:audio /dev/mixer* (change group for all mixer files)
chown root:audio /dev/dsp*
chown root:audio /dev/sequencer*
chown root:audio /dev/audio*
and for video :
chown root:video /dev/fb*
chown root:video /dev/vbi*
chown root:video /dev/video*
chown root:video /dev/vtx*
The part in /etc/group should be like :
audio:x:17:YourUser
video:x:18:YourUser
if video and audio groups do not exist add them by :
# groupadd -g 17 audio
# groupadd -g 18 video
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.