You are not logged in.

#1 2024-12-10 02:59:19

Elixirslayer
Member
Registered: 2024-07-12
Posts: 54

[SOLVED] Fn volume keys not working

Sol: another tool for global keybinds was running (sxhkd here)
Removed config for those functions and it works fine.


Hey so i switched keyboard and my Fn volume keys stopped working.
F2 is the volume -
F3 is the volume +
F4 is the mute key

{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -RTMIN+10 -f 'dwmblocks'") },
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -RTMIN+10 -f 'dwmblocks'") },
{ 0, XF86XK_AudioMute, spawn, SHCMD("pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+10 -f 'dwmblocks'")}

This is the config I'm using using in dwm, signaling to update dwmblocks.

xev output on pressing Fn + F2, F3 and F4: https://0x0.st/Xhfr.txt
Doesn't show keysyms like my old keyboard.

sudo showkey --scancodes
0xe0 0x2e 0xe0 0xae
0xe0 0x30 0xe0 0xb0
0xe0 0x20 0xe0 0xa0
^[[C0xe0 0x4d 0xe0 0xcd
^[[4~0xe0 0x4f 0xe0 0xcf

Scancodes for Fn + F2, F3, F4 and right arrow, End keys.

showkeys command shows

keycode 114 press
keycode 114 release
keycode 115 press
keycode 115 release
keycode 113 press
keycode 113 release
^[[Ckeycode 106 press
keycode 106 release
^[[4~keycode 107 press
keycode 107 release

Remapping using xmodmap

xmodmap -e "keycode 114 = XF86AudioLowerVolume"
xmodmap -e "keycode 115 = XF86AudioRaiseVolume"

Maps right arrow to vol - and end key to vol +
I think 114 is supposed to be right arrow and 115 supposed to be end?

Rest of the Fn keys work fine.

I would appreciate being linked to relevant wiki page

Last edited by Elixirslayer (2024-12-10 09:58:59)

Offline

#2 2024-12-10 07:07:39

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,249

Re: [SOLVED] Fn volume keys not working

what laptop/keyboard are you using? have you tried googling it?
Does the old keyboard also have this problem?

Last edited by jl2 (2024-12-10 07:07:55)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2024-12-10 07:14:21

Elixirslayer
Member
Registered: 2024-07-12
Posts: 54

Re: [SOLVED] Fn volume keys not working

jl2 wrote:

what laptop/keyboard are you using? have you tried googling it?
Does the old keyboard also have this problem?

No, my old cosmicbyte keyboard did not have any problem.

I'm currently using AntEsports MK3400 pro V3 (-10/10 absolutely not recommended, shit keyboard)

yes i did search it up and tried the things mentioned in the first post.

Offline

#4 2024-12-10 09:54:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED] Fn volume keys not working

FocusOut event, serial 32, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

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

FocusOut event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  2   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   

FocusOut event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  2   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   

looks like you're very much triggering a global shortcut here.
Disable the shortcuts and try again.

Offline

#5 2024-12-10 09:56:37

Elixirslayer
Member
Registered: 2024-07-12
Posts: 54

Re: [SOLVED] Fn volume keys not working

seth wrote:
FocusOut event, serial 32, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

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

FocusOut event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  2   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   

FocusOut event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 33, synthetic NO, window 0x2800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  2   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   

looks like you're very much triggering a global shortcut here.
Disable the shortcuts and try again.



OH yes it could be sxhkd, didn't give that a thought.

It works!

Offline

Board footer

Powered by FluxBB