You are not logged in.

#1 2023-06-25 10:16:16

yaiko
Member
Registered: 2023-06-25
Posts: 38

(LXDE) unmute audio from keyboard

I'm new testing Arch with LXDE... when I try press mute from the keyboard the audio mutes but then I press again and it doesn't unmute, I know i could use xbindkey or a hotkey (with pactl) for unmute but this seems to be a bug of the WM that needs to be fixed, I'm using pulseaudio only and LXDE.

Thanks.

Offline

#2 2023-06-26 23:47:35

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: (LXDE) unmute audio from keyboard

im no expert with lxde/openbox but my tv pc runs it and i had a look around, and by default none of the meda buttons on the keyboard work.
you need to add somthing like this to your ".config/openbox/lxde-rc.xml" in the keybind section:

        <keybind key='XF86AudioMute'>
            <action name='Execute'>
                <command>amixer sset Master toggle</command>
            </action>
        </keybind>

then save the file and run

openbox --reconfigure

and that SHOULD make the mute button toggle mute on and off.

and in the same way for voume up and down:

        <keybind key='XF86AudioRaiseVolume'>
            <action name='Execute'>
                <command>amixer sset Master 5%+</command>
            </action>
        </keybind>
        <keybind key='XF86AudioLowerVolume'>
            <action name='Execute'>
                <command>amixer sset Master 5%-</command>
            </action>
        </keybind>

EDIT: just a bit more info....
you can use "xev" (xorg-xev is the arch package) to find out the keysyms (XF86*****) which you can then map.

Last edited by jonno2002 (2023-06-26 23:53:02)

Offline

#3 2023-06-27 16:12:34

yaiko
Member
Registered: 2023-06-25
Posts: 38

Re: (LXDE) unmute audio from keyboard

jonno2002 wrote:

im no expert with lxde/openbox but my tv pc runs it and i had a look around, and by default none of the meda buttons on the keyboard work.
you need to add somthing like this to your ".config/openbox/lxde-rc.xml" in the keybind section:

        <keybind key='XF86AudioMute'>
            <action name='Execute'>
                <command>amixer sset Master toggle</command>
            </action>
        </keybind>

then save the file and run

openbox --reconfigure

and that SHOULD make the mute button toggle mute on and off.

and in the same way for voume up and down:

        <keybind key='XF86AudioRaiseVolume'>
            <action name='Execute'>
                <command>amixer sset Master 5%+</command>
            </action>
        </keybind>
        <keybind key='XF86AudioLowerVolume'>
            <action name='Execute'>
                <command>amixer sset Master 5%-</command>
            </action>
        </keybind>

EDIT: just a bit more info....
you can use "xev" (xorg-xev is the arch package) to find out the keysyms (XF86*****) which you can then map.

Already tried with openbox keybinds and pactl but for some reason doesn't work, lxhotkeys neither...

Offline

#4 2023-06-27 21:21:09

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: (LXDE) unmute audio from keyboard

"already tried" doesnt really help, what did you actually try and how did you do it ?
what does "xev" output when you press those media buttons ?

Offline

#5 2023-06-29 16:49:18

yaiko
Member
Registered: 2023-06-25
Posts: 38

Re: (LXDE) unmute audio from keyboard

jonno2002 wrote:

"already tried" doesnt really help, what did you actually try and how did you do it ?
what does "xev" output when you press those media buttons ?

Reinstalled lxpanel and now it works with the volumealsa plugin, but the next/prev/play/pause buttons are now not working, I think I have to map manually those since the panel don't seems to support these hotkeys...

Offline

Board footer

Powered by FluxBB