Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
My Mandrake 9 KDE system has decided to have no sound - except for line input and CD player.
I cannot hear output from Xmms, Konqueror internal player, etc. Xmms shows the audio levels on the spectrum display when playing an audio file.
The master and PCM sliders in the mixer are set to maximum.
The Gnome Sound Recorder, appears to record, but there is no sound on playback.
Audacity opens a file, but there is no sound when the play button is pressed. Simlarly, on record, there is no signal amplitude.
The X-CD-Roast test for /dev/dsp does not produce a sound.
KDE Control Center/Sound/Sound Server sound test does not produce a sound.
All these functioned normally until now.
The sound card works OK on Knoppix Linux and Windows.
I have searched for solutions without success so far.
Can anyone give me some clues on what has happened?
Originally posted by Johng
My Mandrake 9 KDE system has decided to have no sound - except for line input and CD player.
I cannot hear output from Xmms, Konqueror internal player, etc. Xmms shows the audio levels on the spectrum display when playing an audio file.
The master and PCM sliders in the mixer are set to maximum.
The Gnome Sound Recorder, appears to record, but there is no sound on playback.
Audacity opens a file, but there is no sound when the play button is pressed. Simlarly, on record, there is no signal amplitude.
The X-CD-Roast test for /dev/dsp does not produce a sound.
KDE Control Center/Sound/Sound Server sound test does not produce a sound.
All these functioned normally until now.
The sound card works OK on Knoppix Linux and Windows.
I have searched for solutions without success so far.
Can anyone give me some clues on what has happened?
interesting problem
you didnot say which is your sound card!
now get a wav and a au(sun audio) file and try this
:::::
cat /dev/audio
cat /dev/dsp1
cat /dev/dsp
cat /dev/audio1
cat /dev/sndstat
particularly check the /dev/sndstat if your system recognizes a sound card
now suppose everything is ok
try a music file
say x.wav and x.au
do
cat x.au >/dev/audio or audio1
cat x.wav>/dev/dsp or dsp1(whichever is ok)
if there is any sound
just change your dsp setting in xmms and other audio players to dsp1
now another cause of your problem may be the jack of the speaker
remove the jack and try to use it in another
keep posted
Thank you rch for your valued help. I have tried the "cat" commands:
cat /dev/audio - fills terminal with "y" untill stopped
cat /dev/audio1 - "no such file or directory"
cat /dev/dsp - no reply - just hangs
cat /dev/dsp1 - "no such file or directory"
cat /dev/sndstat - "no such file or directory"
If I try a music file, cat x.au >/dev/audio and cat x.wav>/dev/dsp appear to play the audio file - the prompt returns after the time required to play the file, BUT there is no sound heard.
In the KDE Control Center/Sound/Sound Server the 'Sound I/O method' is set to 'autodetect'.
Incidentally, the bell in the terminal does not sound when I make an error - the bell moves but no sound.
The sound card is a Sound Blaster Live - there is no physical fault with it, because it does all these things under Windows and Knoppix Linux.
__________________
India Vs Australia Final
who will win? Go India!
Originally posted by Johng Thank you rch for your valued help. I have tried the "cat" commands:
cat /dev/audio - fills terminal with "y" untill stopped
cat /dev/audio1 - "no such file or directory"
cat /dev/dsp - no reply - just hangs
cat /dev/dsp1 - "no such file or directory"
cat /dev/sndstat - "no such file or directory"
If I try a music file, cat x.au >/dev/audio and cat x.wav>/dev/dsp appear to play the audio file - the prompt returns after the time required to play the file, BUT there is no sound heard.
In the KDE Control Center/Sound/Sound Server the 'Sound I/O method' is set to 'autodetect'.
Incidentally, the bell in the terminal does not sound when I make an error - the bell moves but no sound.
The sound card is a Sound Blaster Live - there is no physical fault with it, because it does all these things under Windows and Knoppix Linux.
__________________
India Vs Australia Final
who will win? Go India!
ok bad luck Australia has won
(I don't like australian team either- aren't they fed up with winning all the time)
and a million apologies for not replying earlier
this is mainly becoz this post was not in the subscription list
i don't know what happened
now /dev/dsp is not working that means something wrong with the audio driver
your sound card is simply not being detected
good news though it is partially working /dev/audio is working
and if you do cat x.au>/dev/audio there must be some sound(even if too horrible to describe)
your sound card is supported by all linux distribution
so do a lsmod
see whether
soundcore
and your sound driver module is loaded
next reply would be a little faster
you are using alsa
modify your modules.conf file
remove::
above snd-emu10k1 snd-pcm-oss
alias sound-slot-0 snd-emu10k1
add::
line starting with # are comments and could be ignored
Code:
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
# module options should go here
#leave blank if you don't know what options are there
#for a midi support
#note use snd_id instead of id (second sound card)for old alsa #drivers
options enable_midi="1"
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
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
reboot::
install alsa utils and tools
see if they are already installed
rpm -qa|grep alsa
if they are not
install it from here http://www.alsa-project.org
use any oss or alsamixer to change volume level
(your volumes are muted by default)
you can use your own preferances by editing
/etc/asound.state
and doing a
alsactl restore
keep posted
I did as you suggested - removed "above snd-emu10k1 snd-pcm-oss" and "alias sound-slot-0 snd-emu10k1"
I "copied and pasted" the script you supplied (from "#ALSA portion" to words above "reboot::"
When I rebooted, I was greeted with a Sound server informational message:
Error while initializing the sound card driver:
device /dev/dsp can't be opened (No such file or directory)
The sound server will continue, using the null output device.
AND neither the KMixer nor the Aumixer would open, which meant I could not play CD or line input.
I found an old modules.conf file (dated Dec 2002) which looks identical to the current file. The loss of sound is a recent fault, which implies that the problem is not within the modules.conf file(?).
I did as you suggested - removed "above snd-emu10k1 snd-pcm-oss" and "alias sound-slot-0 snd-emu10k1"
I "copied and pasted" the script you supplied (from "#ALSA portion" to words above "reboot::"
When I rebooted, I was greeted with a Sound server informational message:
Error while initializing the sound card driver:
device /dev/dsp can't be opened (No such file or directory)
The sound server will continue, using the null output device.
AND neither the KMixer nor the Aumixer would open, which meant I could not play CD or line input.
I found an old modules.conf file (dated Dec 2002) which looks identical to the current file. The loss of sound is a recent fault, which implies that the problem is not within the modules.conf file(?).
Thank you for hanging in there rch!
use the following script to make devices
Code:
#!/bin/bash
MAJOR=116
OSSMAJOR=14
MAX_CARDS=4
PERM=666
STATIC=0
OWNER=root.root
if [ "`grep -w -E "^audio" /etc/group`x" != x ]; then
PERM=660
OWNER=root.audio
fi
function create_odevice () {
rm -f $1
echo -n "Creating $1..."
mknod -m $PERM $1 c $OSSMAJOR $2
chown $OWNER $1
echo " done"
}
function create_odevices () {
tmp=0
tmp1=0
rm -f $1 $1?
echo -n "Creating $1?..."
while [ $tmp1 -lt $MAX_CARDS ]; do
minor=$[ $2 + $tmp ]
mknod -m $PERM $1$tmp1 c $OSSMAJOR $minor
chown $OWNER $1$tmp1
tmp=$[ $tmp + 16 ]
tmp1=$[ $tmp1 + 1 ]
done
echo " done"
}
function create_device1 () {
rm -f $1
minor=$2
echo -n "Creating $1..."
mknod -m $PERM $1 c $MAJOR $minor
chown $OWNER $1
echo " done"
}
function create_devices () {
tmp=0
rm -f $1 $1?
echo -n "Creating $1?..."
while [ $tmp -lt $MAX_CARDS ]; do
minor=$[ $tmp * 32 ]
minor=$[ $2 + $minor ]
mknod -m $PERM "${1}C${tmp}" c $MAJOR $minor
chown $OWNER "${1}C${tmp}"
tmp=$[ $tmp + 1 ]
done
echo " done"
}
function create_devices2 () {
tmp=0
rm -f $1 $1?
echo -n "Creating $1??..."
while [ $tmp -lt $MAX_CARDS ]; do
tmp1=0
while [ $tmp1 -lt $3 ]; do
minor=$[ $tmp * 32 ]
minor=$[ $2 + $minor + $tmp1 ]
mknod -m $PERM "${1}C${tmp}D${tmp1}" c $MAJOR $minor
chown $OWNER "${1}C${tmp}D${tmp1}"
tmp1=$[ $tmp1 + 1 ]
done
tmp=$[ $tmp + 1 ]
done
echo " done"
}
if test "$1" = "-?" || test "$1" = "-h" || test "$1" = "--help"; then
echo "Usage: snddevices [max]"
exit
fi
if test "$1" = "max"; then
DSP_MINOR=19
fi
# OSS (Lite) compatible devices...
if test $OSSMAJOR -eq 14; then
create_odevices /dev/mixer 0
create_odevice /dev/sequencer 1
create_odevices /dev/midi 2
create_odevices /dev/dsp 3
create_odevices /dev/audio 4
create_odevice /dev/sndstat 6
create_odevice /dev/music 8
create_odevices /dev/dmmidi 9
create_odevices /dev/dmfm 10
create_odevices /dev/amixer 11 # alternate mixer
create_odevices /dev/adsp 12 # alternate dsp
create_odevices /dev/amidi 13 # alternate midi
create_odevices /dev/admmidi 14 # alternate direct midi
# create symlinks
ln -svf /dev/mixer0 /dev/mixer
ln -svf /dev/midi0 /dev/midi
ln -svf /dev/dsp0 /dev/dsp
ln -svf /dev/audio0 /dev/audio
ln -svf /dev/music /dev/sequencer2
ln -svf /dev/adsp0 /dev/adsp
ln -svf /dev/amidi0 /dev/amidi
fi
# New devices (obsolete now)...
mv -f /dev/sndstat /dev/1sndstat
rm -f /dev/snd*
mv -f /dev/1sndstat /dev/sndstat
if [ -d /dev/snd ]; then
rm -f /dev/snd/*
rmdir /dev/snd
fi
if [ $STATIC -gt 0 ]; then
mkdir -p /dev/snd
create_devices /dev/snd/control 0
create_device1 /dev/snd/seq 1
create_devices2 /dev/snd/hw 2 4
create_devices2 /dev/snd/mixer 6 2
create_devices2 /dev/snd/pcm 16 16
create_devices2 /dev/snd/midi 8 4
fi
# New dynamic sound device filesystem
if [ $STATIC -le 0 ]; then
echo "ALSA dynamic sound device filesystem"
ln -sfv /proc/asound/dev /dev/snd
fi
# Loader devices
echo "ALSA loader devices"
rm -f /dev/aload*
create_devices /dev/aload 0
create_device1 /dev/aloadSEQ 1
create a file
name it devices.sh
copy the above script to the file
chmod it
chmod a+x devices.sh
run it from the shell
./devices.sh
Forgive my ignorance, but what have we (you) done to achieve this?
The only thing that does not work (and did not before) is a *.mid file - the Konqueror player complains that it "can't open /dev/sequencer - Probably there is another program using it". This is not a major problem, it's just that I noted the script file refers to /dev/sequencer.
Thank you very much for all the help you have given me.
I am baffled how/why I lost the sound - I don't recall doing anything so drastic.
Forgive my ignorance, but what have we (you) done to achieve this?
The only thing that does not work (and did not before) is a *.mid file - the Konqueror player complains that it "can't open /dev/sequencer - Probably there is another program using it". This is not a major problem, it's just that I noted the script file refers to /dev/sequencer.
Thank you very much for all the help you have given me.
I am baffled how/why I lost the sound - I don't recall doing anything so drastic.
Cheers
Johng
I think the reason you had lost sound is the change is bootloader(if you have done so).I don't use Mandrake much but i know that by default it uses a device management system calle d devfs which usually supports the old /dev/ system but you
may have changed its config file.Devfs should contain reference
to /dev/dsp so i knew that creating (alsa) devices should solve the problem.
Finally you are welcome (if you think i have helped you,
you could have clicked on afferno if you wanted)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.