hi!
Problem : when restarting the system / KDE sound mixer settings are messed up. ones saved from previous session arent loaded.
Intro : first i would like to say that im quite new to linux (1 month) and this is my first howto. i was trying to solve this problem for a long time (posted it here). i finally did it and decided to share the solution with other people.
Thanks : goes to heimo and cutOff
General sound settings : using as default ALSA (0.9.7) with two soundcards:
1) onboard ATI IXP AC97
2) PCI Soundblaster Audigy Player (EMU10K1) (default)
here is great HOWTO about solving two soundcard problems // issues.
Solution :
first set mixer settings as you want them to be
-c1 because i use my 2nd soundcard as default (-c0 is the 1st one). if you have one soundcard you can run without -c1 setting
save your settings (using sudo to enter root mode)
create KDE autostart script
Code:
nano ~/.kde/Autostart/mysound.sh
and write there
Code:
sleep 5
alsactl restore -f /var/lib/alsa/asound.state -F
click F3 (to save) and F2 to exit.
why 'sleep 5' (it waits 5 seconds before restoring mixer settings)? on my system without this command mixer values were overwriten by some other process. for me it was essential. sleep value can be changed if it doesnt work.
after that you have to change file access permission (i think it would work without this step)
Code:
chmod 755 ~/.kde/Autostart/mysound.sh
thats all now everytime KDE starts it loads previous sound mixer settings.
i hope it will help
copter :]
Bookmarks