Bug 462677

Summary: save mixer settings using alsactl utility
Product: [Fedora] Fedora Reporter: Jaroslav Kysela <jkysela>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: flokip, poelstra, rvokal, schaiba, wwoods
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.83-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-02 06:33:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 438943, 462337    
Attachments:
Description Flags
alsactl patch for /etc/rc.d/init.d/halt none

Description Jaroslav Kysela 2008-09-18 08:43:39 UTC
Created attachment 317048 [details]
alsactl patch for /etc/rc.d/init.d/halt

Recent alsa-utils package removed /sbin/salsa helper. The alsactl utility has integrated all salsa functionality now.

Please, consider to apply this patch:

--- initscripts-8.82/rc.d/init.d/halt.orig      2008-09-18 09:42:06.000000000 +0200
+++ initscripts-8.82/rc.d/init.d/halt   2008-09-18 09:56:07.000000000 +0200
@@ -73,9 +73,10 @@ action $"Sending all processes the KILL 
 /sbin/halt -w
 
 # Save mixer settings, here for lack of a better place.
-grep -q "\(alsa\)" /proc/devices
-if [ $? = 0 -a -x /sbin/salsa ]; then
-   action $"Saving mixer settings" /sbin/salsa -s
+if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl ]; then
+  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
+elif [ -r /proc/asound/card[0123456789] -a  -x /sbin/salsa ]; then
+  action $"Saving mixer settings" /sbin/salsa -s
 fi
 
 # Save random seed

Comment 2 Jaroslav Kysela 2008-09-29 06:42:11 UTC
Unfortunately, we do not have an updated rawhide package available and bug reports are comming...

Comment 3 Jaroslav Kysela 2008-09-29 06:42:47 UTC
*** Bug 463718 has been marked as a duplicate of this bug. ***

Comment 4 Jaroslav Kysela 2008-09-29 06:43:06 UTC
*** Bug 463738 has been marked as a duplicate of this bug. ***

Comment 5 Kevin Kofler 2008-10-02 06:33:41 UTC
Fixed in 8.83-1 as per yesterday's rawhide report.