Bug 462677 - save mixer settings using alsactl utility
Summary: save mixer settings using alsactl utility
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 463718 463738 (view as bug list)
Depends On:
Blocks: F10Blocker, F10FinalBlocker 462337
TreeView+ depends on / blocked
 
Reported: 2008-09-18 08:43 UTC by Jaroslav Kysela
Modified: 2014-03-17 03:15 UTC (History)
5 users (show)

Fixed In Version: 8.83-1
Clone Of:
Environment:
Last Closed: 2008-10-02 06:33:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
alsactl patch for /etc/rc.d/init.d/halt (722 bytes, patch)
2008-09-18 08:43 UTC, Jaroslav Kysela
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.