LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ALSA Mutes Sound on Reboot (https://www.linuxquestions.org/questions/linux-hardware-18/alsa-mutes-sound-on-reboot-255147/)

radartone 11-15-2004 11:41 AM

ALSA Mutes Sound on Reboot
 
I have recently begun using Suse 9.1 and really like it. Unfortunately, my sound mutes every time I reboot my computer and this is getting extremely annoying. I have searched the internet for solutions to my problem and none have completely worked. I tried the suggestion on the SUSE support page for a muted sound card like deleting the kdemultimedia3-mixer and by typing

rcalsasound stop
rm /etc/asound.state
rcalsasound start
alsactl store

in a terminal as root. This fixes the problem for that session but the setting are lost on reboot. If I then type

alsactl restore

as root after a reboot, my sound settings are retrieved. I have also found if I go to YaST and hardware/sound my setting are reloaded. Is there any way to get my sound to stay unmuted? I was thinking of somehow putting "alsactl restore" in a script that runs on startup but don't know how. I imagine some other program is resetting my sound to mute but don't know what. Thanks for the help.

radartone

rkef 11-15-2004 12:26 PM

I don't know how SUSE structures its boot sequence, but in Slackware I just add a line to /ect/rc.d/rc.local, which gets run at each boot. You should have something similar. Put your "alsactl restore" in that.

Now might be a good time to crack open the funny manual.

HTH.

Livino 11-24-2004 06:00 PM

That doesn't work with SuSE.

Brian1 11-24-2004 06:30 PM

Can it be added to /usr/bin/startkde under echo 'startkde: Starting up...' 1>&2

The only thing I ever did in that script is add a pause line " actually use ping command as a pause command ". I added ping -c20 127.0.0.1 so KDE would pause on shutdown long enough to play a shutdown wav sound file completely before exiting the gui. The wav file lasted longer than normal shutdown and would be cut off before finishing playing.

echo 'startkde: Shutting down...' 1>&2

# Clean up
ping -c20 127.0.0.1
kdeinit_shutdown
dcopserver_shutdown
artsshell -q terminate

Brian1


All times are GMT -5. The time now is 09:41 PM.