You are not logged in.

#1 2019-06-15 04:55:07

pamir
Member
Registered: 2018-02-02
Posts: 43

manual laptop volume button not recodnised?

Out of the box the ASUS Zenbook Flip UX360UA the Up/Down volume switch is not functioning.

Is there a way to setup the switch?

Offline

#2 2019-06-16 04:35:34

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 444

Re: manual laptop volume button not recodnised?

Add this in <keyboard> section on your ~/.config/openbox/rc.xml and reconfigure Openbox:

    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer sset Master,0 5%+</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer sset Master,0 5%-</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer sset Master,0 toggle</command>
      </action>
    </keybind>

edit: Check first, if it's already there. If it is, open xev in terminal and confirm key codes for your buttons.

Last edited by nore (2019-06-16 04:42:45)

Offline

#3 2019-06-21 14:55:26

pamir
Member
Registered: 2018-02-02
Posts: 43

Re: manual laptop volume button not recodnised?

--- Mod edit: add [ code ] tags ---
nore

Thank you for your reply.

in a terminal i edited in your XML code using:

sudo geany ~/.config/openbox/rc.xml

I entered in the XML code you asked correctly with no line errors into rc.xml , but get an error windows on restarting saying:

PNMixer Error
Could not bind the following hotkeys:
AudioMute
AudioRaiseVolume
AudioLowerVolume

************
Nore the terminal result i pasted below is your recomendation of running xev. What should i do?
--------------------------------------------------------------------------------

~$ xev
Outer window is 0x4e00001, inner window is 0x4e00002

PropertyNotify event, serial 8, synthetic NO, window 0x4e00001,
    atom 0x27 (WM_NAME), time 214374, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x4e00001,
    atom 0x22 (WM_COMMAND), time 214374, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x4e00001,
    atom 0x28 (WM_NORMAL_HINTS), time 214374, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x4e00001,
    parent 0x4e00001, window 0x4e00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x4e00001,
    atom 0x13d (WM_PROTOCOLS), time 214374, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x4e00001,
    event 0x4e00001, window 0x4e00002, override NO

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x15c (_NET_WM_VISIBLE_NAME), time 214374, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x15e (_NET_WM_VISIBLE_ICON_NAME), time 214374, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x197 (_OB_APP_ROLE), time 214374, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x199 (_OB_APP_NAME), time 214374, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x19a (_OB_APP_CLASS), time 214374, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x19b (_OB_APP_GROUP_NAME), time 214375, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x19c (_OB_APP_GROUP_CLASS), time 214375, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x198 (_OB_APP_TITLE), time 214375, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x19d (_OB_APP_TYPE), time 214375, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4e00001,
    atom 0x164 (_NET_WM_ICON), time 214375, state PropertyNewValue

ReparentNotify event, serial 20, synthetic NO, window 0x4e00001,
    event 0x4e00001, window 0x4e00001, parent 0x800ba3,
    (0,0), override NO

PropertyNotify event, serial 21, synthetic NO, window 0x4e00001,
    atom 0x161 (_NET_WM_STATE), time 214375, state PropertyNewValue

ConfigureNotify event, serial 21, synthetic NO, window 0x4e00001,
    event 0x4e00001, window 0x4e00001, (0,0), width 178, height 178,
    border_width 0, above 0x800bcf, override NO

ConfigureNotify event, serial 21, synthetic NO, window 0x4e00001,
    event 0x4e00001, window 0x4e00001, (1,22), width 178, height 178,
    border_width 0, above 0x800bcf, override NO

PropertyNotify event, serial 21, synthetic NO, window 0x4e00001,
    atom 0x16b (_NET_FRAME_EXTENTS), time 214375, state PropertyNewValue

PropertyNotify event, serial 21, synthetic NO, window 0x4e00001,
    atom 0x16a (_KDE_NET_WM_FRAME_STRUT), time 214375, state PropertyNewValue

PropertyNotify event, serial 22, synthetic NO, window 0x4e00001,
    atom 0x167 (_NET_WM_ALLOWED_ACTIONS), time 214375, state PropertyNewValue

ConfigureNotify event, serial 22, synthetic YES, window 0x4e00001,
    event 0x4e00001, window 0x4e00001, (-1,899), width 178, height 178,
    border_width 2, above 0x0, override NO

PropertyNotify event, serial 22, synthetic NO, window 0x4e00001,
    atom 0x15f (_NET_WM_DESKTOP), time 214375, state PropertyNewValue

MapNotify event, serial 37, synthetic NO, window 0x4e00001,
    event 0x4e00001, window 0x4e00001, override NO

VisibilityNotify event, serial 37, synthetic NO, window 0x4e00001,
    state VisibilityUnobscured

Expose event, serial 37, synthetic NO, window 0x4e00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 37, synthetic NO, window 0x4e00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 37, synthetic NO, window 0x4e00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 37, synthetic NO, window 0x4e00001,
    (0,68), width 178, height 110, count 0

PropertyNotify event, serial 37, synthetic NO, window 0x4e00001,
    atom 0x13e (WM_STATE), time 214378, state PropertyNewValue

FocusIn event, serial 38, synthetic NO, window 0x4e00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 38, synthetic NO, window 0x0,
    keys:  94  0   0   0   16  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   

PropertyNotify event, serial 44, synthetic NO, window 0x4e00001,
    atom 0x165 (_NET_WM_ICON_GEOMETRY), time 214383, state PropertyNewValue

KeyRelease event, serial 45, synthetic NO, window 0x4e00001,
    root 0xea, subw 0x0, time 214441, (294,-883), root:(295,18),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

FocusOut event, serial 48, synthetic NO, window 0x4e00001,
    mode NotifyNormal, detail NotifyNonlinear

----------------------------------------------------------------------------

Last edited by damo (2019-06-21 16:23:46)

Offline

#4 2019-06-21 16:30:15

damo
....moderator....
Registered: 2015-08-20
Posts: 4,978

Re: manual laptop volume button not recodnised?

NB you don't need sudo to edit $HOME config files!

Use the xev command, then see what the output is when you use your volume keys. Please just post the response to those key presses, using code tags please!, otherwise they will be swamped by everything else and be difficult for us to read.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB