You are not logged in.
I'm trying to set fn-F10 to mute the volume, fn-F11 to lower the volume, and fn-F12 to raise it (this is what's printed on the keys) but I'm having problems.
I'm using LXDE and openbox, but I have xfdesktop (if that affects anything).
First of all, these keys don't "just work".
I can set fn-F10 to output "f": $(xmodmap -e 'keycode 121 = F') and I can set left arrow to output XF86AudioMute: $(xmodmap -e 'keycode 113 = XF86AudioMute') (which, incidentally also makes fn-F10 output the same) but when I try to set 121 to output XF86AudioMute, it doesn't output anything, according to xev:
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
121 - 123 are the keycodes (plus 8) for fn-F10 - fn-F12 given to me by showkey.
What can/should I try? I already have the appropriate entries in ~/.config/openbox/lxde-rc.xml.
Offline
Maybe take a look at xbindkeys
Offline
All this doesn't matter 'cause I'm an idiot. Everything was working, but the command in ~/.config/openbox/lxde-rc.xml was toggling the master channel's mute on the alsa card and I'm using PulseAudio, which is what I control from the lxde panel applet.
So the question now is, what command can I use for Pulse instead of ALSA? I assume amixer is ALSA-only.
[ignore]
For whatever reason, the fn-keys and the actual keyboard show up in two different input devices. This might have had something to do with xmodmap horking, but it's irrelevant now.
$ ls /dev/input/by-path -l
total 0
lrwxrwxrwx 1 root root 9 Sep 9 20:53 pci-0000:00:1d.7-usb-0:6:1.0-event -> ../event7
lrwxrwxrwx 1 root root 9 Sep 9 20:53 platform-eeepc-wmi-event -> ../event6
lrwxrwxrwx 1 root root 9 Sep 9 20:53 platform-i8042-serio-0-event-kbd -> ../event4
lrwxrwxrwx 1 root root 9 Sep 9 20:53 platform-i8042-serio-1-event-mouse -> ../event5
lrwxrwxrwx 1 root root 9 Sep 9 20:53 platform-i8042-serio-1-mouse -> ../mouse0
$ sudo /lib/udev/keymap -i input/event6
Press ESC to finish, or Control-C if this device is not your primary keyboard
scan code: 0x32 key code: mute
scan code: 0x31 key code: volumedown
scan code: 0x30 key code: volumeup
Props to the wiki: https://wiki.archlinux.org/index.php/Ma … o_keycodes[/ignore]
Offline
As long as you are using ALSA as a backend, you can use the following commands:
amixer -D pulse set Master +5% unmute
amixer -D pulse set Master -5% unmute
amixer set Master toggle
Regards
Offline
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline