You are not logged in.

#1 2024-11-19 08:23:37

phoenix324
Member
Registered: 2023-08-23
Posts: 66

[Solved] How to unbind sym: XF86*

I read https://wiki.archlinux.org/title/Keyboard_input and https://wiki.archlinux.org/title/Xorg/K … figuration, but still confused on how to stop `F23` from outputting `XF86TouchpadOff`.

Initially i solved this by removing the corresponding line from /usr/share/X11/xkb/symbols/inet. But it got reset after system update.

Kernel: Linux 6.11.9-ar
WM: Hyprland (Wayland)
 setxkbmap -print -verbose 10
Setting verbose level to 10
WARNING: Running setxkbmap against an Xwayland server
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)
geometry:   pc(pc105)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+inet(evdev)"	};
	xkb_geometry  { include "pc(pc105)"	};
};

Last edited by phoenix324 (2024-12-13 10:08:02)

Offline

#2 2024-11-19 08:51:12

mesaprotector
Member
Registered: 2024-03-03
Posts: 167

Re: [Solved] How to unbind sym: XF86*

There's something in the upcoming systemd v257 patchnotes about that: see the fifth bullet point of the second section: https://github.com/systemd/systemd/rele … g/v257-rc2

Essentially I don't think you can do anything but wait for the next systemd release, but good news - it won't be long! Currently systemd uses F20-23 for its own purposes, something I also noticed checking Fn key scancodes.

Last edited by mesaprotector (2024-11-19 08:51:25)

Offline

#3 2024-12-12 14:17:56

phoenix324
Member
Registered: 2023-08-23
Posts: 66

Re: [Solved] How to unbind sym: XF86*

$ systemctl --version
systemd 257 (257-1-arch)
+PAM +AUDIT -SELINUX -APPARMOR -IMA +IPE +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP -SYSVINIT +LIBARCHIVE
[14:     wl_keyboard] key: serial: 4010; time: 1413720; key: 201; state: 1 (pressed)
                      sym: XF86TouchpadOff (269025201), utf8: ''

....

[14:     wl_keyboard] key: serial: 4012; time: 1414723; key: 202; state: 1 (pressed)
                      sym: NoSymbol     (0), utf8: ''

F23 and F24 still outputting these.

i looked inside /usr/share/X11/xkb/symbols/inet and all these are defined inside xkb_symbols "evdev" section ->

    key <FK21>   {      [ XF86TouchpadToggle    ]       };
    key <FK22>   {      [ XF86TouchpadOn        ]       };
    key <FK23>   {      [ XF86TouchpadOff       ]       };

    key <FK20>   {      [ XF86AudioMicMute      ]       };

    key <FK13>   {      [ XF86Tools         ]       };
    key <FK14>   {      [ XF86Launch5       ]       };
    key <FK15>   {      [ XF86Launch6       ]       };
    key <FK16>   {      [ XF86Launch7       ]       };
    key <FK17>   {      [ XF86Launch8       ]       };
    key <FK18>   {      [ XF86Launch9       ]       };

So only F19 and F24 is free.

Another problem, the symbol outputted by F19 and F24 is `NoSymbol` whereas i tried with F1 to F12 and they were outputting these ->

[14:     wl_keyboard] key: serial: 6547; time: 2032640; key: 72; state: 1 (pressed)
                      sym: F6           (65475), utf8: ''
[14:     wl_keyboard] key: serial: 6548; time: 2032776; key: 72; state: 0 (released)
                      sym: F6           (65475), utf8: ''
[14:     wl_keyboard] key: serial: 6549; time: 2032950; key: 73; state: 1 (pressed)
                      sym: F7           (65476), utf8: ''
[14:     wl_keyboard] key: serial: 6550; time: 2033062; key: 73; state: 0 (released)
                      sym: F7           (65476), utf8: ''
[14:     wl_keyboard] key: serial: 6551; time: 2033219; key: 74; state: 1 (pressed)
                      sym: F8           (65477), utf8: ''
[14:     wl_keyboard] key: serial: 6552; time: 2033335; key: 74; state: 0 (released)
                      sym: F8           (65477), utf8: ''
[14:     wl_keyboard] key: serial: 6553; time: 2033534; key: 75; state: 1 (pressed)
                      sym: F9           (65478), utf8: ''
[14:     wl_keyboard] key: serial: 6554; time: 2033645; key: 75; state: 0 (released)
                      sym: F9           (65478), utf8: ''

Offline

#4 2024-12-13 10:07:39

phoenix324
Member
Registered: 2023-08-23
Posts: 66

Re: [Solved] How to unbind sym: XF86*

Found the Solution. Under Wayland key-remapping is done per-compositor. So under Hyprland the  solution is https://wiki.hyprland.org/Configuring/U … ction-keys

Offline

Board footer

Powered by FluxBB