For the keys, have you tried adding them into your WMs key configuration?Set them to execute xbacklight with the '-inc <percent>' and '-dec <percent>' options respectively.Same for the volume keys, but get them to call 'amixer' like so: amixer -q -c 0 sset Master 5dB+ // increase master volume by 5 decibels
amixer -q -c 0 sset Master 5dB- // decrea
I want to set via my Media Keys, so I first have to find out the terminal-command.
Outputs are:
amixer set Master 10%- amixer: Unable to find simple control 'Master',0
amixer scontrols Simple mixer control 'IEC958',0
amixer set 'IEC958' 50%- amixer: Invalid command!
How can i fix that?
Looking at the amixer man page, the mapping mentioned earlier can be invoked in amixer with the -M flag. So using amixer -M [...] works in the units that you see in alsamixer. These are "more natural for human ear".
Sometimes I'll be listening to a song at 100% volume, and it is not as loud as I would like it to be. I can run pavucontrol and pull the slider to make the output above 100%, but I prefer the command line and am looking for a way to do this from there.
If I do it in the console (Ctrl+Alt+F2, tty?) I have the command work as expected. However when I do so in the (XFCE) terminal window (Ctrl+Alt+T), I get those high values.UPDATEFixed by doing 2%+ instead of 2+
jiewmeng
https://bbs.archlinux.org/profile.php?id=56964
2012-09-08T13:35:36Z
here's a small script to inform you about the volume #!
As mentioned in the title, amixer appears to mute all audio channels but doesn't unmute them when run again. As a result, the media key I'd like to serve as mute/unmute only works to mute, and I need to go into alsamixer manually to unmute them.If I understood correctly, amixer sset Master toggle would only affect the master channel, when that obviously isn't what is happening.
I'm trying to set up a hardware mute button for my notebook running chrunchbang linux,
I've got the key event handling working and pointing to a script like this :
curvol=$(amixer get Master | grep 'off')
if ["$curvol" != ""]
then
amixer set Master unmute
else
amixer set Master mute
fi
what happens is on pressing the button assigned, it will unmute if muted; but it won't mute if it isn't alrea
Hello, all. I have recently ordered a ThinkPad, and I love it. Recently my volume keys (only up/down, not mute) decided not to work. I have been unable to identity any changes in my setup that would account for such behavior. I finally restored the main functionality of my media buttons by mapping those keys to the command 'amixer set Master 5%+-' with ccsm.