LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   /dsp gone! (https://www.linuxquestions.org/questions/slackware-14/dsp-gone-677231/)

dvap 10-17-2008 08:54 PM

/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)

Woodsman 10-17-2008 09:06 PM

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?

dvap 10-17-2008 09:43 PM

Quote:

Originally Posted by Woodsman (Post 3314102)
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

dive 10-18-2008 07:07 AM

Sounds like you need to modprobe alsa-oss

Did you recompile your kernel after mem upgrade?

dvap 10-18-2008 07:34 AM

Quote:

Originally Posted by dive (Post 3314409)
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..

keefaz 10-18-2008 09:20 AM

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

dvap 10-18-2008 09:59 AM

Quote:

Originally Posted by keefaz (Post 3314581)
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.

dive 10-18-2008 12:03 PM

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.

dvap 10-18-2008 04:07 PM

Quote:

Originally Posted by dive (Post 3314781)
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)?

keefaz 10-18-2008 04:38 PM

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

dive 10-18-2008 04:51 PM

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

keefaz 10-18-2008 04:58 PM

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


dvap 10-18-2008 06:10 PM

Quote:

Originally Posted by keefaz (Post 3314980)
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..

T3slider 10-18-2008 06:46 PM

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

dvap 10-18-2008 07:52 PM

Quote:

Originally Posted by T3slider (Post 3315052)
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



All times are GMT -5. The time now is 03:56 PM.