LinuxQuestions.org
Review your favorite Linux distribution.
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 06-25-2004, 07:46 AM   #61
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30

Still can't solve my sound issue

http://revenant.qsurf.org/a.jpg

Below is me modules.conf

# --- 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. ---

alias char-major-195 nvidia
 
Old 06-25-2004, 07:55 AM   #62
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Check your permissions on /dev/audio*, mixer*, midi* dsp*, pcm* and sequencer*.
 
Old 06-25-2004, 08:10 AM   #63
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Aussie
Check your permissions on /dev/audio*, mixer*, midi* dsp*, pcm* and sequencer*.
root@slacker:/dev# ls audio -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 audio -> audio0
root@slacker:/dev# ls mixer -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 mixer -> mixer0
root@slacker:/dev# ls midi -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 midi -> midi00
root@slacker:/dev# ls dsp -l
lrwxrwxrwx 1 root root 4 Jun 10 02:56 dsp -> dsp0
root@slacker:/dev# ls sequencer -l
crw-rw--w- 1 root sys 14, 1 Aug 29 2003 sequencer
root@slacker:/dev#

Don't have pcm though.

Last edited by subaruwrx; 06-25-2004 at 08:17 AM.
 
Old 06-25-2004, 08:57 AM   #64
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Check the contents of /dev/snd too.
 
Old 06-25-2004, 09:08 AM   #65
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Aussie
Check the contents of /dev/snd too.
root@slacker:/dev/snd# dir
controlC0 hwC1D2 midiC0D0 midiC1D2 midiC2D4 midiC3D6 pcmC0D4c pcmC1D1c pcmC1D6c pcmC2D3c pcmC3D0c pcmC3D5c
controlC1 hwC1D3 midiC0D1 midiC1D3 midiC2D5 midiC3D7 pcmC0D4p pcmC1D1p pcmC1D6p pcmC2D3p pcmC3D0p pcmC3D5p
controlC2 hwC2D0 midiC0D2 midiC1D4 midiC2D6 pcmC0D0c pcmC0D5c pcmC1D2c pcmC1D7c pcmC2D4c pcmC3D1c pcmC3D6c
controlC3 hwC2D1 midiC0D3 midiC1D5 midiC2D7 pcmC0D0p pcmC0D5p pcmC1D2p pcmC1D7p pcmC2D4p pcmC3D1p pcmC3D6p
hwC0D0 hwC2D2 midiC0D4 midiC1D6 midiC3D0 pcmC0D1c pcmC0D6c pcmC1D3c pcmC2D0c pcmC2D5c pcmC3D2c pcmC3D7c
hwC0D1 hwC2D3 midiC0D5 midiC1D7 midiC3D1 pcmC0D1p pcmC0D6p pcmC1D3p pcmC2D0p pcmC2D5p pcmC3D2p pcmC3D7p
hwC0D2 hwC3D0 midiC0D6 midiC2D0 midiC3D2 pcmC0D2c pcmC0D7c pcmC1D4c pcmC2D1c pcmC2D6c pcmC3D3c seq
hwC0D3 hwC3D1 midiC0D7 midiC2D1 midiC3D3 pcmC0D2p pcmC0D7p pcmC1D4p pcmC2D1p pcmC2D6p pcmC3D3p timer
hwC1D0 hwC3D2 midiC1D0 midiC2D2 midiC3D4 pcmC0D3c pcmC1D0c pcmC1D5c pcmC2D2c pcmC2D7c pcmC3D4c
hwC1D1 hwC3D3 midiC1D1 midiC2D3 midiC3D5 pcmC0D3p pcmC1D0p pcmC1D5p pcmC2D2p pcmC2D7p pcmC3D4p
root@slacker:/dev/snd#

All the files here are character devices.
 
Old 06-26-2004, 05:36 AM   #66
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
 
Old 06-26-2004, 05:44 AM   #67
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
That makes two of us doing that now.
 
Old 06-26-2004, 07:29 AM   #68
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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

Last edited by keefaz; 06-26-2004 at 07:31 AM.
 
Old 06-26-2004, 08:13 AM   #69
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
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?

Last edited by subaruwrx; 06-26-2004 at 08:23 AM.
 
Old 06-26-2004, 12:31 PM   #70
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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.
 
Old 06-26-2004, 05:17 PM   #71
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by keefaz


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?

Getting confused with permission and ownership.
 
Old 06-26-2004, 08:39 PM   #72
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
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?
 
Old 06-26-2004, 08:54 PM   #73
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by subaruwrx
root@slacker:/dev# ls audio -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 audio -> audio0
root@slacker:/dev# ls mixer -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 mixer -> mixer0
root@slacker:/dev# ls midi -l
lrwxrwxrwx 1 root root 6 Jun 10 02:56 midi -> midi00
root@slacker:/dev# ls dsp -l
lrwxrwxrwx 1 root root 4 Jun 10 02:56 dsp -> dsp0
root@slacker:/dev# ls sequencer -l
crw-rw--w- 1 root sys 14, 1 Aug 29 2003 sequencer
root@slacker:/dev#

Don't have pcm though.
sorry to be a pain but, could you do the ls thing again but use the "*" ie.

ls -al /dev/audio*
ls -al /dev/mixer*
ls -al /dev/dsp*
ls -al /dev/sequencer*

all you saw before was the permissions of the links (usually/always 777)
 
Old 06-27-2004, 04:19 AM   #74
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Tuttle
sorry to be a pain but, could you do the ls thing again but use the "*" ie.

ls -al /dev/audio*
ls -al /dev/mixer*
ls -al /dev/dsp*
ls -al /dev/sequencer*

all you saw before was the permissions of the links (usually/always 777)
Sure.

Code:
root@slacker:/dev# ls -al /dev/audio*
lrwxrwxrwx    1 root     root            6 Jun 10 02:56 /dev/audio -> audio0
crw-rw--w-    1 root     sys       14,   4 Aug 29  2003 /dev/audio0
crw-rw--w-    1 root     sys       14,  20 Aug 29  2003 /dev/audio1
crw-rw--w-    1 root     sys       14,  36 Aug 29  2003 /dev/audio2
crw-rw--w-    1 root     sys       14,  52 Aug 29  2003 /dev/audio3
root@slacker:/dev# ls -al /dev/mixer*
lrwxrwxrwx    1 root     root            6 Jun 10 02:56 /dev/mixer -> mixer0
crw-rw-rw-    1 root     sys       14,   0 Aug 29  2003 /dev/mixer0
crw-rw-rw-    1 root     sys       14,  16 Aug 29  2003 /dev/mixer1
crw-rw-rw-    1 root     sys       14,  32 Aug 29  2003 /dev/mixer2
crw-rw-rw-    1 root     sys       14,  48 Aug 29  2003 /dev/mixer3
root@slacker:/dev# ls -al /dev/dsp*
lrwxrwxrwx    1 root     root            4 Jun 10 02:56 /dev/dsp -> dsp0
crw-rw--w-    1 root     sys       14,   3 Aug 29  2003 /dev/dsp0
crw-rw--w-    1 root     sys       14,  19 Aug 29  2003 /dev/dsp1
crw-rw--w-    1 root     sys       14,  35 Aug 29  2003 /dev/dsp2
crw-rw--w-    1 root     sys       14,  51 Aug 29  2003 /dev/dsp3
root@slacker:/dev# ls -al /dev/sequencer*
crw-rw--w-    1 root     sys       14,   1 Aug 29  2003 /dev/sequencer
lrwxrwxrwx    1 root     root            5 Jun 10 02:56 /dev/sequencer2 -> music
root@slacker:/dev#
 
Old 06-27-2004, 05:24 AM   #75
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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

Last edited by keefaz; 06-27-2004 at 05:25 AM.
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

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