Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-17-2004, 08:39 PM   #46
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 08:45 PM.
Old 03-02-2006, 01:41 AM   #47
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 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:

fix() {
if [ "$2" == "mute" ]; then
first="unmute"; last="mute";
first="mute"; last="unmute";

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

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.


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 08:07 AM
Alsa question Harp00 Slackware 16 04-05-2004 07:18 AM
Alsa question... CryptDragoon Slackware 1 02-20-2004 11:51 AM
Little Alsa question jazzyjazz Slackware 33 12-11-2003 05:46 PM
ALSA question dhrivnak Slackware 5 10-28-2003 09:19 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 AM.

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