[linux-audio-user] Using alsactl to preserve volume state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark,

    Set state the way you want it then do alsactl store to save it.  On reboot do alsactl restore and it will reset.  The easiest way to do this is to add something to your rc.local script (wherever that is depending on distribution).  On RH the best thing to do is add a file to /etc/rc.d/init.d that uses chkconfig (look at some of the other files in there).  On start/boot it should do alsactl restore.  On stop/halt it should do alsactl store.  If you set it up like some of the other scripts in /etc/rc.d/init.d you should be able to turn it on by entering chkconfig FILENAME on.

Jan




-----Original Message-----
From:	"linux-audio-user-bounces@xxxxxxxxxxxxxxxxxx" <linux-audio-user-bounces@xxxxxxxxxxxxxxxxxx> on behalf of	"Mark Constable" <markc@xxxxxxxxx>
Sent:	Tue, 30 Dec 2003 21:39:21 +1000
To:	"A list for linux audio users" <linux-audio-user@xxxxxxxxxxxxxxxxxx>
Subject:	[linux-audio-user] Using alsactl to preserve volume state

On the Wiki there is this advice and the following statement so
would anyone happen to know what the correct way to preserve
state across reboots for 2.6 is ?

 # load/unload the volume settings on startup/shutdown
 post-install snd-driver-name /usr/sbin/alsactl restore
 pre-remove snd-driver-name /usr/sbin/alsactl store

 This doesn't seem to work with a 2.6.0-test kernel. modprobe 
 simply ignores lines with these statements. Update to this 
 section would be appreciated.

--markc


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux