Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-11-28 22:31:46

andreypz
Member
Registered: 2012-11-22
Posts: 4

Problems with alsa volume control keyboard shortcuts

Hello,

So, I'm trying to setup a keyboard shortcut to increase/decrease volume.

Internet suggest to bind a shortcut to the command:

amixer set Master 5dB+

The problem is that amixer does not see Master channel:

amixer: Unable to find simple control 'Master',0

Here is the output of amixer contents

numid=1,iface=MIXER,name='Mic Capture Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=2,iface=MIXER,name='Mic Capture Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=17,step=0
  : values=5
  | dBminmax-min=6.00dB,max=31.00dB

Of course Mic is not what I want to change the volume for.
There are other channels (including Master) that can be seen with alsamixer.

Offline

#2 2012-12-05 16:32:59

andreypz
Member
Registered: 2012-11-22
Posts: 4

Re: Problems with alsa volume control keyboard shortcuts

Update.
I kind of solved it.

The problem was that only sees one device! In my case it was the web camera plugged in which has a Mic.
Unplugging the camera allows amixer to see other audio devices and control the sound with 'set' command.
The question remains, why amixer can't see all the devices plugged in.

Offline

#3 2012-12-05 19:59:14

secipolla
Member
Registered: 2012-01-15
Posts: 393

Re: Problems with alsa volume control keyboard shortcuts

It can, I think, but it can only control one at a time.

Man amixer:

'A simple mixer control must be specified. Only one device can be controlled at a time.'

Then later:

' -D device

              Select the device name to control. The default control name is 'default'.'

Offline

Board footer

Powered by FluxBB