LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   alsa and keyboard shortcuts (https://www.linuxquestions.org/questions/linux-software-2/alsa-and-keyboard-shortcuts-331390/)

under_ground2019 06-07-2005 09:52 PM

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...

johnson_steve 06-07-2005 10:16 PM

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.

under_ground2019 06-08-2005 03:05 AM

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...

johnson_steve 06-08-2005 11:09 AM

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

under_ground2019 06-08-2005 01:02 PM

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..

ArchArael 06-19-2005 03:17 PM

Try this, I think will work... :D

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!!! :D

under_ground2019 06-19-2005 06:18 PM

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..


All times are GMT -5. The time now is 09:34 PM.