LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-27-2011, 09:12 PM   #1
bustertech
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Rep: Reputation: 10
alsa mixer not keeping settings


I've got a dell inspiron 1440 with windows7 and I've dual booted mint 10 on it. About a week ago, I did some updates and all the sudden I had no sound. I visited this site and the linux mint site and between the two, I figured out how to get into alsamixer in the terminal. I adjusted the sound, it worked and even worked after a shutdown so I thought the problem was fixed. I booted up this evening and no sound. I went into alsamixer and the speaker sound was muted (with the m's at the bottom) and the audio levels were zero'd. I've checked the terminal man alsamixer and find no instructions there for how to make sure the default sound profile stays adjusted where I want it. Some of the controls don't work like the view control. I only have the playback view and can't get to the all or capture. Any ideas? Thanks in advance.
 
Old 07-27-2011, 09:43 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Try using alsactl:

Code:
NAME
       alsactl - advanced controls for ALSA soundcard driver


SYNOPSIS
       alsactl [options] [store|restore|init] <card # or id or device>


DESCRIPTION
       alsactl  is  used  to  control advanced settings for the ALSA soundcard
       drivers. It supports multiple soundcards. If  your  card  has  features
       that  you can't seem to control from a mixer application, you have come
       to the right place.


COMMANDS
       store saves the current driver state for the selected soundcard to  the
       configuration file.
See man alsactl for more options.
 
Old 07-31-2011, 09:31 AM   #3
bustertech
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: 10
Okay, I've tried various ways to enter this, the "man alsactl" is a little ambiguous as to how to enter the exact command;
1) sudo alsactl store default (yields "alsactl: save_state:1519: Cannot find soundcard 'default'")
2) sudo alsactl store/default (yields "alsactl: Unknown command 'store/default'")
3) sudo alsactl store-default (yields "alsactl: Unknown command 'store-default'")
So when I open alsamixer and hit F4, I get "default" as to what profile is running. I'm at a loss for what command to use and the syntax to use to enter it. I don't mean to be dense but I'm new to this. You've at least got me going in the right direction and I appreciate it. Thanks in advance.
 
Old 07-31-2011, 09:38 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Try just sudo alsactl store

Last edited by tredegar; 07-31-2011 at 09:39 AM. Reason: added sudo
 
Old 08-01-2011, 06:56 AM   #5
bustertech
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: 10
alsactl

I've tried "alsactl store" and nothing happens. They way I'm reading the man is that you have to have "alsactl store (card # or device or ID). When I enter the command "alsactl store 0" I get this;sam@linuxmint ~ $ alsactl store 0
alsactl: save_state:1532: Cannot open /var/lib/alsa/asound.state for writing: Permission denied.
If I enter any other command "alsactl store 0", "alsaclt store default", "alsactl HDA intel" I get this;sam@linuxmint ~ $ alsactl store default
alsactl: save_state:1519: Cannot find soundcard 'default'...
sam@linuxmint ~ $ alsactl store HDA
alsactl: save_state:1519: Cannot find soundcard 'HDA'...
sam@linuxmint ~ $ alsactl store intel
alsactl: save_state:1519: Cannot find soundcard 'intel'...
sam@linuxmint ~ $ alsactl store 0 HDA intel
alsactl: save_state:1532: Cannot open /var/lib/alsa/asound.state for writing: Permission denied. When in alsamixer and I hit F5, I get three options; "default", "0 HDA intel" and "enter soundcard" Still, nothing is storing and I'm having to go into alsamixer every time I boot up to turn the volume up on the speakers. At least, since I've been trying to enter this stuff, I'm not having to take the mute off anymore. I'm getting "00" at the bottom of the speakers channel instead of "MM". So, at least we're making some progress. I appreciate all your help. You've turned me on to a whole new terminal existence I was unaware of.

Last edited by bustertech; 08-01-2011 at 06:57 AM. Reason: confusion of text
 
Old 08-01-2011, 09:46 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I think you are seeing this as more complicated than it really is.

You only have one soundcard, so you do not have to specify it, so don't.

When you get "permission denied" it usually means you need to be root, so try
Code:
sudo alsactl store
once you have adjusted your mutes and volumes with alsamixer.

L&R arrows take you from one channel to another.
Up&Down arrows adjust the level of the selected channel
m toggles mute.


I am running gnome on ubuntu 10.04. I adjust the volume with the little speaker icon, and it remembers between boots what the last settings were, so I have not had to mess with alsamixer, but I just checked it, it's there and works. If I have the alsamixer window open, I can see the level changing as I adjust it with the speaker icon.
 
Old 08-01-2011, 09:21 PM   #7
bustertech
LQ Newbie
 
Registered: Jun 2011
Posts: 19

Original Poster
Rep: Reputation: 10
You're not going to believe it!

Tredegar,

Check this out;sam@linuxmint ~ $ sudo alsamixer
[sudo] password for sam:
sam@linuxmint ~ $ sudo alsactl store
Home directory /home/sam not ours.

I went in, toggled "m" to take mute off and adjusted the levels in alsamixer. I hit "esc" and typed in "sudo alsactl store" and there you have it. I have another user on the computer (my wife) so I'm going to try this on her side and see what happens. I'll let you know. Thanks again for your help. I know it must be as frustrating to you as it is to me. I'm WILL NOT give up on linux. I like it too much. Since I've put it on the computer, my wife has only logged into win7 twice and me once. I hate win after using linux.
 
  


Reply



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
How do I get ALSA mixer to remember the its settings? halfpower Linux - Software 9 08-01-2007 03:50 AM
ALSA mixer settings preserve? adds2one Linux - General 2 09-02-2005 02:38 AM
ALSA not saving user mixer settings abk4523 Linux - Software 3 12-29-2004 12:29 AM
How do you back up ALSA's mixer settings? anti_trend Linux - Software 2 04-18-2004 01:21 PM
ALSA Mixer Not Saving Settings... shiny_spoon Linux - Software 6 11-02-2003 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration