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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [linux-audio-user] Using alsactl to preserve volume state
From: eviltwin69_AT_cableone.net
Date: Tue Dec 30 2003 - 14:46:32 EET


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_AT_music.columbia.edu" <linux-audio-user-bounces_AT_music.columbia.edu> on behalf of "Mark Constable" <markc_AT_renta.net>
Sent: Tue, 30 Dec 2003 21:39:21 +1000
To: "A list for linux audio users" <linux-audio-user_AT_music.columbia.edu>
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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Dec 30 2003 - 14:48:38 EET