Re: Re: sound volume not persistent between reboots
Hi all,
I write a simple init shell script to support the persistence.
I recommend Debian maintainer of alsa-utils package to review this script and
if possible, create a debian package called alsapersist and make it the
recommended package for alsa-utils. Majority of users including me like the
persistence feature and advanced user could choose not to install this package.
1.
here is the content of /etc/init.d/alsapersist surrounded by **** mark.
****
#! /bin/sh
# /etc/init.d/alsapersist: restoring/storing mixer setting for all the sound
cards
# Author: Gonghua Guo
# Released under GPL version 2 or later.
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
test -f /usr/sbin/anacron || exit 0
case "$1" in
start)
alsactl restore
echo "Restoring the mixer setting for all the sound cards"
;;
restart|force-reload)
# nothing to do
:
;;
stop)
alsactl store
echo "Storing the mixer setting for all the sound cards"
;;
*)
echo "Usage: /etc/init.d/alsapersist start|stop"
exit 1
;;
esac
****
2. fxg:/etc/rc2.d# ln -sf ../init.d/alsapersist S99alsapersist
Thanks for your hard work,
Gonghua
In-Reply-To=<443BC3DA.3010502@rickandviv.net>
Subject=Re:%20Re: sound volume not persistent between reboots
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply to: