Getting keyboard volume buttons to work in LXDE
I had a read of this topic:
https://www.linuxquestions.org/quest...ns-4175564374/ in order to get the keyboard volume buttons to work on Slack 14.2 32bit. Now, first things first, I know the key binding is detected since xev shows me that pressing the volume key bindings gives Code:
KeyRelease event, serial 48, synthetic NO, window 0x3600001, though they don't seem to be work. My soundcard is sink 0 according to Code:
lysander@lysurfer_viii:~$ pamixer --list-sinks Code:
<keybind key="XF86AudioRaiseVolume"> |
Hello,
Did you try manually the command in a terminal to make sure it works ? I'm not using LXDE ( AwesomeWM ) but I do use the same method. Here are the commands I'm using if it can help: Code:
XF86AudioLowerVolume => "amixer -q sset PCM 2%-" |
Hmm, when I try one of those I get:
Code:
bash: XF86AudioLowerVolume: command not found |
XF86AudioLowerVolume is not a command. It's just the `key` representation
what is the result of those command in a terminal ? does it increase/decrease the volume as expected ? Code:
pamixer --sink 0 -d 5 Code:
pamixer --sink 0 -i 5 |
Yes - both of those work in lowering and raising the volume. So something is getting lost in applying the working command [e.g. pamixer --sink 0 -i 5] to the keys.
|
Found it - the entry is:
Code:
<keybind key="XF86AudioRaiseVolume"> The issue I had was that [as well as the slightly incorrect 'execute' tag] I was editing /etc/xdg/openbox/rc.xml directly, which should not be done. |
Sorry to resurrect this, but this function has stopped working for a while now, I can no longer use the keyboard buttons to adjust the audio volume. I have no idea what the issue could be. I wonder if it has anything to do with new packages that have been upgraded or installed, but since the file
.config/openbox/lxde-rc.xml is unchanged I have no idea what such packages could be or why they could do so. Any suggestions would be most welcome. |
if you issue the same commands to which you have associated keys for in a terminal, do they have effect?
|
Quote:
Code:
Connection error EDIT: I did the following re another thread, this has definitely affected my link to PA Quote:
EDIT 2 -found it Code:
amixer set Master 5%+ EDIT 3 -and it does, thank you. Seems on this system ALSA is the way for now rather than PA. |
Appending for Xfce. This answer was very useful:
https://unix.stackexchange.com/quest...in-xfce/342555 Quote:
Config for keyboard shortcuts in Xfce = settings > keyboard > shortcuts Notice the difference between pavu and alsa in the answer which accounts for my volume stopping working initally in LXDE since I have disabled access to Pulse in my other Slack install. Hopefully someone will find this useful. |
Quote:
Many thanks @Lysander666, you really helped me! I listen radio broadcasting, live news etc via players that have their own shortcuts. But while other programs were on the screen, I had to use the mouse to conrtol the volume from the panel volume-icon. With: Code:
amixer set Master 5%+ |
All times are GMT -5. The time now is 07:16 PM. |