[Alsa-user] Re: saving the settings
Brought to you by:
perex
From: Adam J. <al...@yg...> - 2002-09-23 05:07:11
|
On 21-Sep-02, Barthel aus Pennswald wrote: > You can also include the unmuting commands in an initialization > script. In /etc/rc.d/rc.local, I have: > > [ -x /etc/rc.d/rc.asound ] && /etc/rc.d/rc.asound > > Then, in the executable file /etc/rc.d/rc.asound I have all of the > commands needed to unmute and set the default volume for my mixer > devices: > > # /etc/rc.d/asound > > # ALSA initialization file > > # Automatically unmute all channels upon boot > echo "Unmuting audio channels..." > amixer set 'Master' 80% unmute >/dev/null > amixer set 'Master Mono' 80% unmute >/dev/null > ... Surely it'd be quicker and easier to replace all those with a simple "alsactl restore" (having first saved the unmuted settings with "alsactl store", of course)? Saves a *lot* of typing - especially if you have a SB Live(!) :) -- Adam Jones (ad...@yg...)(http://www.yggdrasl.demon.co.uk/) .oO("I miss read that sentance." ) PGP public key: http://www.yggdrasl.demon.co.uk/pubkey.asc |