I have this extremely irritating problem with my sound setup; I suppose it's the traditional problem with ALSA not restoring the settings from the previous session, but with a little twist
. So please read on before you dismiss my post!
I'm running SuSE 9.1 Personal on an Athlon machine. Sound card "0" is the on-board VIA sound system. It's working as it should, and volume settings are not being re-set all the time. No problems there then.
My problem is the second audio device (device "1"), one that's vital
to me: it's a USB phone handset which must I use for Skype calls.
It's been detected and configured properly by the system, and it's working perfectly. HOWEVER, every time I start my system its volume settings (master and PCM I suppose) are set to maximum (99). You can imagine what that does to my eardrum when I answer a call. So, every time I load linux I have to set the volume back to a comfortable level (11).
If I start the terminal as su/root and type 'alsactl restore 1'
, the settings go back to the level I'd set the last time I used linux (11). This much I know.
What I'd like to know is, is there a way to make this an automatic procedure during start-up? Which script should I edit by adding the line 'alsactl restore 1' in order to achieve this? Should I include 'alsactl store 1'
to some "logout" script too? How?
A few notes:
1. I've read all about kmix and KAMix and stuff like that; I DO NOT have kmix (it's simply not there, it won't turn up in a YaST search, so don't even bother to mention it). I use KAMix to set the volume EVERY TIME that KDE is launched - so it obviously won't store the volume levels for the next session.
2. Please DON'T reply with a "oh, just write a script with the command line you need and link it" type of answer. Please. I don't know the first thing about linux (it was a while before I could figure the alsactl thing). I don't know HOW TO make a script. I don't know how to link it. I've tried adding 'alsactl restore 1'
to the "alsasound" script in /etc/init.d (by adding this line to the end of the script) and it didn't work. I'm a real, clueless linux newbie.
3. Again, please keep in mind that I don't know anything about linux. Anything at all. I've opened some script files using "Edit" in the terminal window and have yet to find a way out of "edit" without having to close the terminal and launching it back again. I'm that hopeless.
Many thanks in advance for any insights and/or help!