LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-18-2011, 07:40 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
Query (and maybe a dependent query) on alsamixer.


Hi all.

I am wanting to set some customized settings using alsamixer, which should remain persistent after reboot.


1. I have read at many places, that using only alsamixer, does not have a persistent effect. However, when I modified settings using alsamixer, and nothing else, the settings seemed to remain persistent.
So, is this a phantom effect I am seeing? Or is this the required behaviour (If this is indeed the required bahaviour, I am done.)


2. Provided the above is indeed a phantom behaviour, I would like to know as to where from does alsamixer reads its configuration. I ask this, because by modifying the configuration file on persistent storage, I will be available to have persistent settings.


I am using Fedora 14.


Looking forward to some lightning.


Regards,
Ajay

Last edited by ajaygarg; 12-18-2011 at 07:41 AM.
 
Old 12-18-2011, 06:16 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
on a 32 bit debian system the default settings file is
/var/lib/alsa/asound.state

the command you are looking for is

/usr/sbin/alsactl

irst set the correct settings inside alsamixer as a local user then press escape the run as a local user

Code:
/usr/sbin/alsactl store -f ~/asound.state
creates a file in your home folder to can then edit if you wish

However, if you want system wide setting then run that store command with root powers as
/usr/sbin/alsactl store
 
Old 12-18-2011, 09:10 PM   #3
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks aus9 for the reply.

I tried alsactl. Following are the steps I followed ::

a. Run alsamixer.
b. Modify the settings.
c. Run sudo alsactl store
d. Reboot.
e. Run alsamixer.
f. The settings remain persistent.

g. Run alsamixer.
h. Modify settings.
i. DO NOT RUN alsactl.
j. Reboot
k. The settings remain persistent.

Settings-persistence is expected in steps a.-f.
But how come settings remain persistent in steps g.-k. ?


Looking forward to a reply.


Regards,
Ajay
 
Old 12-18-2011, 11:32 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
ok sounds like you already have more than one asound.state file

since you decided to do the root first...you created /etc/asound.state....I know I don't use your distro but thats my guess

so on reboot....you already had a system wide "saved" settings

to prove me wrong....find and RENAME each asound.state file lets call it test.state

then you will see if have true persistence

can I repeat...persistence is from a file whose settings are the default settings and you make no changes or you make changes and have a file independent of your distros....default file

that new file can be created by root or by each local user.

let me know if that is what you are seeking or if I have misunderstood

regards

---------- Post added 19-12-11 at 13:32 ----------

ok sounds like you already have more than one asound.state file

since you decided to do the root first...you created /etc/asound.state....I know I don't use your distro but thats my guess

so on reboot....you already had a system wide "saved" settings

to prove me wrong....find and RENAME each asound.state file lets call it test.state

then you will see if have true persistence

can I repeat...persistence is from a file whose settings are the default settings and you make no changes or you make changes and have a file independent of your distros....default file

that new file can be created by root or by each local user.

let me know if that is what you are seeking or if I have misunderstood

regards
 
Old 12-20-2011, 12:31 AM   #5
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks aus9 for the reply.

I understood what you are saying. But I meant the settings of the "second" time are persisted SOMEHOW, even though alsactl store is not re-run.

Also, if I do a diff of /etc/asound.state of the first and second settings, it shows empty.

Thus, it is concluded that /etc/asound.state is updated only when alsactl store is run. So, I fail to understand, as to how are the settings persisted the second time?


Regards,
Ajay
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] int size is compiler dependent or OS dependent tarunchawla Programming 4 11-30-2011 03:46 AM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 07:30 AM
mysql use output of one query in another query secretlydead Programming 2 11-19-2007 01:25 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM
query saurabhparihar Linux - Newbie 2 05-21-2005 02:00 PM


All times are GMT -5. The time now is 08:42 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