[arch-general] amixer usage
John Davis
davisjf at gmail.com
Sun Sep 22 16:30:25 EDT 2013
Hello
I am trying to get my multimedia volume up and down buttons to work. I am
reading various notes on amixer usage
and it seems for others they can adjust current volume settings up and
down. For me, i can only adjust to a fixed value.
For example, this will set my volume to 50%
[davis at x200 ~]$ amixer -c 0 cset numid=15,iface=MIXER,name='Master Playback
Volume' 50%
numid=15,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
: values=37
| dBscale-min=-74.00dB,step=1.00dB,mute=0
But then if I want to adjust it by 2dB it will not adjust up or down by 2dB
instead it sets the value to 2.
If I set it to 2dB+ or simply the value 2 it does the same thing.
[davis at x200 ~]$ amixer -c 0 cset numid=15,iface=MIXER,name='Master Playback
Volume' 2dB-
numid=15,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
: values=2
| dBscale-min=-74.00dB,step=1.00dB,mute=0
[davis at x200 ~]$ amixer -c 0 cset numid=15,iface=MIXER,name='Master Playback
Volume' 2dB
numid=15,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
: values=2
| dBscale-min=-74.00dB,step=1.00dB,mute=0
dB up, it will instead set the value to 2 instead of 39.
[davis at x200 ~]$ amixer -c 0 cset numid=15,iface=MIXER,name='Master Playback
Volume' 2dB+
numid=15,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
: values=2
| dBscale-min=-74.00dB,step=1.00dB,mute=0
It appears the parser is ignoring dB and or +/- and only recognizing %.
--
John F. Davis
6 Kandes Court
Durham, NC 27713
919-888-8358
独树一帜
More information about the arch-general
mailing list