LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-17-2008, 08:54 PM   #1
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Rep: Reputation: 15
/dsp gone!


I recently have been messing around with my memory in my PC, I finally got that straight and upgraded... Now my problem is that when I started (startx) in root, I got an Error that said:

[AO OSS] audio_setup: can't open audio
device /dev/dsp: No such file or directory.

what do you think has happened?.. it can't be the memory, because even before I upgraded it has been doing this.

(If there is an exact thread dealing with this problem, please direct me.)(maybe I overlooked it)
 
Old 10-17-2008, 09:06 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Have you checked for the existence of the file using ls /dev/dsp? Here is the result on my box:

Code:
crw-rw---- 1 root audio 14, 3 2008-10-17 18:47 /dev/dsp
Have you checked that your user account is a member of the audio group?
 
Old 10-17-2008, 09:43 PM   #3
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Woodsman View Post
Have you checked for the existence of the file using ls /dev/dsp? Here is the result on my box:

Code:
crw-rw---- 1 root audio 14, 3 2008-10-17 18:47 /dev/dsp
Have you checked that your user account is a member of the audio group?
I did, it said:

Code:
ls: cannot access /dev/dsp: No such file or directory
 
Old 10-18-2008, 07:07 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Sounds like you need to modprobe alsa-oss

Did you recompile your kernel after mem upgrade?
 
Old 10-18-2008, 07:34 AM   #5
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
Sounds like you need to modprobe alsa-oss

Did you recompile your kernel after mem upgrade?
no, I didnt compile it when I installed it. was I supposed to? I never heard that I had to, however, I did hear the same about Gentoo, but not slack..
 
Old 10-18-2008, 09:20 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe run alsaconf as root ?
Why do you startx as root and not as regular user ?
What is your X session, KDE ? if yes, go to control center / sound and set sound to alsa, not oss
 
Old 10-18-2008, 09:59 AM   #7
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by keefaz View Post
Maybe run alsaconf as root ?
Why do you startx as root and not as regular user ?
What is your X session, KDE ? if yes, go to control center / sound and set sound to alsa, not oss
I normally use the user account, not Root. I run KDE, I did what u told me.. Ill run ALSA agin.
 
Old 10-18-2008, 12:03 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Did you try modprobe alsa-oss yet?

I only asked about compiling kernel if you had needed to enable large memory support or something. It's not something you would need to do when installing slack unless you have >4GB ram.
 
Old 10-18-2008, 04:07 PM   #9
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
Did you try modprobe alsa-oss yet?

I only asked about compiling kernel if you had needed to enable large memory support or something. It's not something you would need to do when installing slack unless you have >4GB ram.
so what do I do about this missing file (dsp)?
 
Old 10-18-2008, 04:38 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Have you run alsaconf yet ?
I believe after run this command, /dev/dsp should be available
if not, maybe run /etc/rc.d/rc.alsa
 
Old 10-18-2008, 04:51 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I'm fairly sure that /dev/dsp is generated by loading alsa oss emulation module. Thats why I suggested modprobing alsa-oss.

If you haven't tried it yet or don't know how, open a terminal, su to root, type command 'modprobe alsa-oss'.

If you get no error try ls /dev/dsp again. If it has worked then you may need to add the command to /etc/rc.d/rc.modules with full path: '/sbin/modprobe alsa-oss'.
 
Old 10-18-2008, 04:58 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
There is no module named "alsa-oss", the script /etc/rc.d/rc.alsa should load the required modules at boot (if it executable of course)
Sample from rc.alsa:
Code:
...
load_alsa_oss_modules() {
  if ! cat /proc/modules | tr _ - | grep -wq snd-pcm-oss ; then
    echo "Loading OSS compatibility modules for ALSA."
    modprobe snd-pcm-oss
    modprobe snd-seq-oss
    modprobe snd-mixer-oss
  fi
}
...
 
Old 10-18-2008, 06:10 PM   #13
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by keefaz View Post
There is no module named "alsa-oss", the script /etc/rc.d/rc.alsa should load the required modules at boot (if it executable of course)
Sample from rc.alsa:
Code:
...
load_alsa_oss_modules() {
  if ! cat /proc/modules | tr _ - | grep -wq snd-pcm-oss ; then
    echo "Loading OSS compatibility modules for ALSA."
    modprobe snd-pcm-oss
    modprobe snd-seq-oss
    modprobe snd-mixer-oss
  fi
}
...
that script is there in that file already..
 
Old 10-18-2008, 06:46 PM   #14
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 dvap
that script is there in that file already..
Yes, but is that script executable? The command `ls -l /etc/rc.d/rc.alsa` should show the following output:
Code:
-rwxr-xr-x 1 root root 2671 2008-04-01 01:18 /etc/rc.d/rc.alsa*
If it is NOT rwxr-xr-x and owned by root:root, you can use the following commands (as root) to fix the permissions:
Code:
# chown root:root /etc/rc.d/rc.alsa
# chmod 755 /etc/rc.d/rc.alsa
You could also just try running the script, using the following command (as root):
Code:
# /etc/rc.d/rc.alsa
 
Old 10-18-2008, 07:52 PM   #15
dvap
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1/Ubuntu 8.10
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by T3slider View Post
Yes, but is that script executable? The command `ls -l /etc/rc.d/rc.alsa` should show the following output:
Code:
-rwxr-xr-x 1 root root 2671 2008-04-01 01:18 /etc/rc.d/rc.alsa*
If it is NOT rwxr-xr-x and owned by root:root, you can use the following commands (as root) to fix the permissions:
Code:
# chown root:root /etc/rc.d/rc.alsa
# chmod 755 /etc/rc.d/rc.alsa
You could also just try running the script, using the following command (as root):
Code:
# /etc/rc.d/rc.alsa
ok, I did that and got:
Code:
 Loading OSS compatibility modules for ALSA.
Loading ALSA mixer settings:  /usr/sbin/alsactl restore
 
  


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
LXer: DSP Video Processing Without DSP Programming via Open Source APIs LXer Syndicated Linux News 0 11-07-2006 05:21 PM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
/dev/dsp Casket Linux - Newbie 6 11-13-2005 10:47 AM
where is my /dev/dsp ??? phunkymunky Slackware 7 03-21-2004 12:46 PM
/dev/dsp ixion Linux - General 7 01-09-2003 06:45 AM

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

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