LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2005, 09:52 PM   #1
under_ground2019
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
alsa and keyboard shortcuts


Well , I ve been serching every where but could not find a solution to my problem , wish someone has one..

Well , I am using Gnome 2.8 on Debian.I ve a creative soundblaster live 5.1 card and 5.1 speakers.I use Alsa (emu10k1 driver) and xmms to play mp3 files like many others do.

Whenever i mute the gnome system sound and xmms ' sound , i can still hear it from my back 2 speakers.And when i try to turn the volume on , only the sound coming from front speakers increase. And wheni turn it down , only the front speakerssound decrease.

I have tried to configure my alsamixer.There are lots of channels on it but when i turn of three of them , i can mute the sound.(pcm , wave surround and wave center).

All I want to do is , make all the sound mute when i press my mute button on my keyboard and increase or decrease all the sound by pressing the increase or decrease button.

What i need is something that will control those 3 alsamixer channels .Or something else that will do the job...

Is there a way to do that?

Thanks alot for now...
 
Old 06-07-2005, 10:16 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
My computer does something like this to. only the pcm level controls the volume (no surround enabled) but wave channels would be pcm as well. I use aumix to adjust the pcm level:

mute:

aumix -w 0

up:

aumix -w +10

down:

aumix -w -10

I set my system up to run these commands when I press my media keys.
 
Old 06-08-2005, 03:05 AM   #3
under_ground2019
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
First of all , thanks for your reply johnson_steve..

I ve tried to run the mute command that u said from console , but still the same thing happens.I still can hear the volume from the back 2 speakers and the center speaker.

I think there must be an "alsa" way to do that..

Thanks again...
 
Old 06-08-2005, 11:09 AM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
try this

mute:

aumix -w 0 && aumix -W 0

if you end up finding a way to remap the thing with alsa let me know
 
Old 06-08-2005, 01:02 PM   #5
under_ground2019
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Still the same thing, it only mutes the front left and front right speakers..
I ll let you know if i find a way to do that, dont worry..
Thanks..
 
Old 06-19-2005, 03:17 PM   #6
ArchArael
Member
 
Registered: Mar 2005
Posts: 109

Rep: Reputation: Disabled
Try this, I think will work...

to mute:

Code:
amixer set PCM mute
to unmute:

Code:
amixer set PCM unmute
you can also put a number after PCM ( use range 0..100 ) for the regulation of the volume...


Yatta!!!
 
Old 06-19-2005, 06:18 PM   #7
under_ground2019
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
well , i ve used the commands you told , it works but mutes or unmutes only the front 2 speakers..
I can still hear the sound from the back 2...
You can see what i are the messages after i used those commands



under@debian:~$ amixer set PCM mute
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 30 [97%] [off]
Front Right: Playback 30 [97%] [off]
under@debian:~$ amixer set PCM unmute
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 30 [97%] [on]
Front Right: Playback 30 [97%] [on]


As i said before there must be an "alsa way" to do that.. or an amixer command to mute or unmute all 5 speakers..

Thanks for the help though..
 
  


Reply



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
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
keyboard shortcuts eugen.circa Linux - General 1 06-28-2005 10:05 AM
keyboard shortcuts? kam_kenneth Linux - Newbie 0 05-12-2004 11:38 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM
keyboard shortcuts justin19fl Linux - Newbie 1 04-24-2001 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration