Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115500 - alsasound init script should allow restore as well as save.
Summary: alsasound init script should allow restore as well as save.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 22:51 UTC by Robin Johnson
Modified: 2005-12-15 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-12-13 22:51:11 UTC
Presently the alsasound init script offers a standalone save function, but not a
standalone restore function.
I'm using swsusp with my laptop, and after returning from swsusp, my soundcard
volumes are all wild. I've fixed this by putting a save/restore pair of commands
into my swsusp script.

The changes for the alsasound init script are minimal:
--- /etc/init.d/alsasound.orig	2005-12-13 22:44:58.000000000 -0800
+++ /etc/init.d/alsasound	2005-12-13 22:46:40.000000000 -0800
@@ -50,7 +50,7 @@
 aconnect=/usr/bin/aconnect
 alsascrdir=/etc/alsa.d
 
-opts="${opts} save"
+opts="${opts} save restore_mixer"
 
 depend() {
 	need bootmisc localmount


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-15 14:42:53 UTC
I've added a "restore" function instead, and changed it a bit, I haven't 
revbumped tho, I'll do that after I can get a hold of a problem on PPC.