You are not logged in.
Hi guys,
I installed Arch Linux with Xorg on a ThinkPad X250. I have alsa mixer which is what I use to control sound volume. I created a xbindkeys like
"amixer set Master 5%+"
XF86AudioRaiseVolume
"amixer set Master 5%-"
XF86AudioLowerVolume
"amixer set Master Master toggle"
XF86AudioMute
However, these key binds are not working. To troubleshoot, I used xev like
xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'
When I press Fn key without pressing anything else I see
151 XF86WakeUp
When I press Fn+F1 (mute), Fn+F2 (volume down) and Fn+F3 (volume up), I do not see any output at all. If I had the keycode I was thinking of mapping those key codes to volume control actions. What am I doing wrong that I can't get the audio volume work with these media keys? Thanks.
PS:
I followed this same technique with brightnessctl for backlight and is working fine (which also do not show any key codes with xev). When I try the amixer commands on terminal, sound controls work fine. It's the keys I can't use to control volume.
Last edited by kovac (2020-03-22 05:16:16)
Offline
I figured out the issue. I added my own key bindings in ~/.xbindkeysrc file. However, I just realised that my i3 configuration (at ~/.config/i3/.config) also had key bindings related to audio control and pulse audio control system. I'm not using pulse, so I commented out all the lines related to audio control key bindings and rebooted. Now, I can control audio using my alsa and my keyboard.
Offline