LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Closed Thread
 
Search this Thread
Old 11-24-2004, 04:17 PM   #1
Livino
Member
 
Registered: Nov 2004
Location: Belo Horizonte, Brasil
Distribution: Suse Linux 10.0
Posts: 32

Rep: Reputation: 15
Storing sound settings for the secondary audio device?


Hi everyone,

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!
 
Old 11-24-2004, 06:07 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

The twin to this post can be found here Please post any replies to it. -- J.W.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem storing ALSA settings on boot shamrock_uk Debian 0 09-10-2005 05:50 AM
Storing sound settings for the secondary audio device? Livino Linux - Newbie 17 12-02-2004 05:12 PM
Storing CFLAGS and other compiler settings in Slackware r_jensen11 Slackware 2 08-12-2004 01:41 PM
no sound from cd player, good sound from audio device test fmickel Linux - Hardware 5 06-04-2004 12:46 PM
Storing xvidtune settings? r_jensen11 Slackware 2 02-17-2004 07:01 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration