Re: brak dźwięku, alsa, Squeeze, 2.6.30-2-686
Na razie doszedłem do tego:
w /etc/modprobe.d/alsa.base.conf dopisany jedynie
options snd-hda-intel model=3stack-6ch
Do tego dopisek w /etc/rc.local
sh /usr/bin/restart_alsy.sh
Uruchamiający poniższy skrypcik
#!/bin/bash
alsa force-reload
echo Ustawiam poziom głośności dźwięku...
amixer -q set Master 100% unmute
amixer -q set Headphone 100% unmute
amixer -q set PCM 100% unmute
amixer -q set Front 100% unmute
amixer -q set Surround 100% unmute
amixer -q set Center 100% unmute
amixer -q set LFE 100% unmute
amixer -q set Line 100% unmute
amixer -q set CD 100% unmute
amixer -q set Mic 0% unmute
amixer -q set Beep 8% unmute
amixer -q set Capture 50% unmute
Automatycznie jeszcze nigdy nie podniósł mi alsy, tylko ręcznie I TO TRZEBA
KILKA RAZY PRÓBOWAĆ! Wyjaśmi ktoś dlaczego?
aghu:/home/hubert# restart_alsy.sh
Terminating processes: 2970.
Unloading ALSA sound driver modules: snd-hda-intel snd-cs4236 snd-wavefront
snd-wss-lib snd-opl3-lib snd-mpu401 snd-mpu401-uart snd-hda-codec-realtek snd-
hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-page-alloc snd-seq-
midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device.
Loading ALSA sound driver modules: snd-hda-intel snd-cs4236 snd-wavefront snd-
wss-lib snd-opl3-lib snd-mpu401 snd-mpu401-uart snd-hda-codec-realtek snd-hda-
codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-page-alloc snd-seq-midi
snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device.
Ustawiam poziom głośności dźwięku...
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
amixer: Mixer default load error: Invalid argument
aghu:/home/hubert# restart_alsy.sh
Unloading ALSA sound driver modules: snd-mpu401 snd-wavefront snd-cs4236 snd-
wss-lib snd-opl3-lib snd-mpu401-uart snd-hda-codec-realtek snd-hda-intel snd-
hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-midi snd-rawmidi
snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed:
modules still loaded: snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm
snd-timer snd-page-alloc).
Loading ALSA sound driver modules: snd-mpu401 snd-wavefront snd-cs4236 snd-
wss-lib snd-opl3-lib snd-mpu401-uart snd-hda-codec-realtek snd-hda-intel snd-
hda-codec snd-hwdep snd-pcm-oss snd-mixer-oss snd-pcm snd-seq-midi snd-rawmidi
snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc.
Ustawiam poziom głośności dźwięku...
Tu widać, że załadował poprawnie. Sprawdzę... gra muzyka.
Początkowo nawet zastosowałem w skrypcie pętlę
#!/bin/bash
for (( i=1; $i <= 2; i++ )) ; do
#[...]
#Tu treść powyższego skryptu
#[...]
done
ale zdarzało się, że pierwsze uruchomienie było poprawne a drugie nie i dźwięk
znów się wykładał
Czarna strona mocy...
Pozdrawiam. Hubert
Reply to: