LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-17-2004, 07:39 PM   #46
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15

message rescinded....

Last edited by dns21; 08-17-2004 at 07:45 PM.
 
Old 03-02-2006, 12:41 AM   #47
timcharper
Member
 
Registered: May 2005
Location: Utah
Distribution: Fedora Core 4
Posts: 36

Rep: Reputation: 15
this is my solution to the muting in ALSA:

this is for the suspend2 kernel patch, but solution will work for other scenarios. my sound card is snd-index8x0, with 2.6.15.1 kernel, fedora distro.


store this script in /bin as alsafix. if you need to add more channels to reset upon awakening, you can find them with alsamixer and amixer... just put the name of the channel, and the state to set it too, as shown.

here's the script:

#!/bin/bash
fix() {
if [ "$2" == "mute" ]; then
first="unmute"; last="mute";
else
first="mute"; last="unmute";
fi

for state in $first $last; do
amixer sset "$1" "$state"
done;
}

fix 'Master' unmute
fix 'PCM' unmute
fix 'External Amplifier' mute


save it to /bin/alsafix. then run chmod +x /bin/alsafix/

add this line to /etc/hibernate/hibernate.conf
onResume 20 alsafix

when your computer comes out of hibernate, it will reset your channels so the audio will work, without having to restart alsa or unload / load your module.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa question BinaryLinux Slackware 6 05-10-2004 07:07 AM
Alsa question Harp00 Slackware 16 04-05-2004 06:18 AM
Alsa question... CryptDragoon Slackware 1 02-20-2004 10:51 AM
Little Alsa question jazzyjazz Slackware 33 12-11-2003 04:46 PM
ALSA question dhrivnak Slackware 5 10-28-2003 08:19 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration