Hallo iedereen,
Ik ben een redelijke newbie op het gebied van linux.Ik heb een Dell Inspiron 6400/E1505. Ik heb kort geleden daarop naast Windows 7 Kubuntu oneiric ocelot geinstalleerd. Na de installatie heb ik de tips van de site
http://sites.google.com/site/ubukuntu/kubuntu--na-het-installeren opgevolgd. Mijn systeem werd er een stuk beter van. Vooral de tips over energiebeheer deden het goed voor mijn systeem. In het begin doet mijn geluid het goed. Maar na enige tijd heb ik geen geluid meer. Ik heb op internet gezocht, maar daar werd ik niet veelwijzer van. Enkele tests die ik heb gedaan:
grep "Codec:" /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: SigmaTel STAC9200
/proc/asound/card0/codec#1:Codec: Conexant ID 2bfa
aplay -l
**** Lijst van PLAYBACK hardware-apparaten ****
kaart 0: Intel [HDA Intel], apparaat 0: STAC92xx Analog [STAC92xx Analog]
Sub-apparaten: 0/1
Sub-apparaat #0: subdevice #0
kaart 0: Intel [HDA Intel], apparaat 1: STAC92xx Digital [STAC92xx Digital]
Sub-apparaten: 1/1
Sub-apparaat #0: subdevice #0
sudo lspci |grep Audio
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
lsmod |grep snd
snd_hda_codec_idt 60049 1
snd_hda_intel 24262 4
snd_hda_codec 91754 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80435 3 snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28932 3 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 55902 15 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 12600 1 snd
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
Met het volgende script teste ik het geluid:
#!/bin/bash
SOUNDFILE="question.wav"
echo "Audio Tester - V0.1"
echo "Copyright 2009 Bill Giannikos"
echo " "
echo "For best results you should ensure you have the latest version"
echo "of this utility from:"
echo "http://www.linlap.com/wiki/audio+tester"
echo ""
if [ ! -f "$SOUNDFILE" ]; then
echo "Error: Could not find the question.wav file."
exit 1
fi
echo "When running this script you may see occasional error messages"
echo "from 'amixer', these can be ignored."
echo ""
echo "Adjusting sound levels to 100%..."
echo ""
amixer -q -c 0 sset Master 100%
amixer -q -c 0 sset Master on
amixer -q -c 0 sset PCM 100%
amixer -q -c 0 sset PCM on
echo "Testing sound..."
aplay -q $SOUNDFILE
echo "Did you hear a sound [N/y]?"
read result
if [ "$result" == "y" ] || [ "$result" == "Y" ]; then
echo "For sound to work on this system you just need to adjust the Master and PCM volume levels in your mixer program."
exit
fi
echo "Trying other options mixer options..."
amixer -q -c 0 sset 'External Amplifier' on
aplay -q $SOUNDFILE
echo "Did you hear a sound [N/y]?"
read result
if [ "$result" == "y" ] || [ "$result" == "Y" ]; then
echo "For sound to work on this system you just need to turn on the 'External Amplifier' option in your mixer program."
exit
fi
echo "Trying other options mixer options..."
amixer -q -c 0 sset 'External Amplifier' off
aplay -q $SOUNDFILE
echo "Did you hear a sound [N/y]?"
read result
if [ "$result" == "y" ] || [ "$result" == "Y" ]; then
echo "For sound to work on this system you just need to turn off the 'External Amplifier' option in your mixer program."
exit
fi
declare -a MODELTYPES=(
"auto"
"dell-d21"
"dell-d22"
"dell-d23"
"dell-m21"
"dell-m22"
"dell-m23"
"dell-m24"
"dell-m25"
"dell-m26"
"dell-m27"
"dell-m42"
"dell-m43"
"dell-m44"
"dell-3stack"
"dell-bios"
"dell-m4-1"
"dell-m4-2"
"dell-m4-3"
"dell-m6-amic"
"dell-m6-dmic"
"dell-m6"
"dell-eq"
)
hdacheck=`lsmod | grep snd_hda_intel`
if [ "$hdacheck" == "" ]; then
echo "Sorry, this script wasn't able to help with your sound problem."
exit 0
fi
echo "Attempting different model settings for HDA audio."
echo "You need to be running this script as the 'root' user for this to work."
echo "You must also exit any program which has attached to the audio device."
echo ""
echo "The following will go through all available model options."
echo "This will take a while and you may get a few error messages however you should just contrinue until the end."
echo ""
echo "Would you like to continue? [Y/n]"
read result
if [ "$result" == "n" ] || [ "$result" == "N" ]; then
exit 0
fi
for model in ${MODELTYPES[*]} ; do
echo "Testing model type $model"
echo ""
rmmod snd_hda_intel
modprobe snd_hda_intel model=$model index=0
sleep 1
amixer -q -c 0 sset Master 100%
amixer -q -c 0 sset Master on
amixer -q -c 0 sset PCM 100%
amixer -q -c 0 sset PCM on
aplay -q $SOUNDFILE
echo "Did you hear a sound [N/y]?"
read result
if [ "$result" == "y" ] || [ "$result" == "Y" ]; then
echo "The model type you need is '$model'."
echo "Would you like to set this permanently? [N/y]"
read result
if [ "$result" == "y" ] || [ "$result" == "Y" ]; then
declare -a ALSACONFIG=(
"/etc/modprobe.d/alsa-base"
"/etc/modprobe.d/alsa"
"/etc/modprobe.d/sound"
"/etc/modprobe.d/audio"
"/etc/modprobe.conf"
)
for aconfig in ${ALSACONFIG[*]} ; do
if [ -f "$aconfig" ]; then
NEWCONFIG=`grep -v "options snd_hda_intel" $aconfig`
echo "$NEWCONFIG" > $aconfig
NEWCONFIG=`grep -v "options snd-hda-intel" $aconfig`
echo "$NEWCONFIG" > $aconfig
echo "options snd_hda_intel index=0 model=$model" >> $aconfig
echo "Added 'options snd_hda_intel model=$model' to your $aconfig file."
echo "Restart your computer now."
exit 0
fi
done
echo "Sorry, the correct file to insert the configuration information into could not be found."
echo "You will need to add the following line to your /etc/modprobe.conf (or your"
echo "distributions equivalent) file:"
echo "options snd_hda_intel model=$model"
exit 0
else
echo "No changes made, you will need to add the following line"
echo "to your /etc/modprobe.conf (or your distributions equivalent) file:"
echo "options snd_hda_intel model=$model"
exit 0
fi
fi
done
echo "Sorry, this script was not able to help with your sound problem."
Ik kreeg wel geluid, maar bij alle modules gaf hij aan:
ERROR: Module snd_hda_intel is in use
amixer: Invalid command!
Did you hear a sound [N/y]?
/home/gerrit/bin/audiotesterdell.sh: regel 112: read: leesfout: 0: Hulpbron is tijdelijk onbeschikbaar
Als het nodig is wil ik wel meerdere tests geven. Wie kan mij hier mee helpen?
Alvast dank,
Gaijin66