Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#426 - alsa should have startup/shutdown script to save/restore mixer settings

Attached to Project: Arch Linux
Opened by Dale Blount (dale) - Friday, 30 January 2004, 04:56 GMT
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Very Low
Priority Normal
Reported Version 0.6 Widget
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This task depends upon

Closed by  Judd Vinet (judd)
Friday, 18 March 2005, 21:22 GMT
Reason for closing:  Implemented
Comment by dorphell (dorphell) - Wednesday, 25 February 2004, 20:13 GMT
I wouldn't like that =]

Example:
You shutdown your computer around nighttime after watching a movie where the audio volume was not properly gained so the alsa script saves it as 100%.

You wake up in the morning, boot up and play some music and blast your shorts off.

I like having a static config when I boot.
Comment by dorphell (dorphell) - Friday, 27 February 2004, 15:00 GMT
Just put in 'alsactrl restore' in rc.local, there's really no need for a script. Other than 'start' the stop and restart parts would do nothing.
Comment by Robert Jessop (robertjessop) - Saturday, 06 March 2004, 21:37 GMT
I think it is a good idea to save it each time you shutdown. Otherwise you'll change the volume and forget to save it and be annoyed next time you reboot.

Here's a script i wrote for myself. Call it /etc/rc.d/alsa and add alsa to /etc/rc.conf

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
start)
stat_busy "Restoring ALSA state"
alsactl restore
add_daemon alsa
stat_done
;;
stop)
stat_busy "Saving ALSA state"

alsactl store
rm_daemon alsa
stat_done
;;
restart)
$0 stop

$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
Comment by Jason Chu (jason) - Sunday, 28 March 2004, 20:46 GMT
Just because the script is included doesn't mean you have to use it. I vote for one as well.
Comment by Lukas Sabota (punkrockguy318) - Tuesday, 31 August 2004, 19:13 GMT
Jason is right, it'd only set your volume if you added it to your daemons list... It's a pain going through the Wiki to get that script on every installation... I vote for a script
Comment by Lukas Sabota (punkrockguy318) - Tuesday, 31 August 2004, 19:14 GMT
I think the script should be included in alsa-utils
Comment by Steven Van Impe (stevenvanimpe) - Tuesday, 28 September 2004, 09:34 GMT
script would be nice indeed. lot's of people don't know that they have to use a cmdline mixer to unmute the sound and turn the volume up (well, perhaps you could do this in gnome/kde as well, I should try), run alsactl store and then put alsactl restore in rc.local

In these modern ages, we expect our volume settings to be saved and loaded when we reboot, without even having to know what ALSA is :)
Comment by Lukas Sabota (punkrockguy318) - Thursday, 11 November 2004, 05:05 GMT
This bug has been around for 11 months now... Is this ever going to be added to the alsa-utils package? Now would be a good time now that we just added the audio group!
Comment by Gary Singleton (gsinglet) - Thursday, 11 November 2004, 18:05 GMT
I also think that the script should be a part of the alsa-utils package, as has been stated you don't have to use it but it would be nice to have rather than going to the wiki every time.
Comment by arjan timmerman (blaasvis) - Wednesday, 16 March 2005, 10:12 GMT
what's the status on this ?

Loading...