You are not logged in.

#1 2023-06-28 18:41:46

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

[SOLVED]remap keys to XF* not keybinds

Hi;
I have a laptop that has some keys over the F* symbols.
Some keys don't get mapped correctly and how up as keybinds in wev (and xev and showkey).
I would like to map them to their respective XF86* keys (even if they don't standardly exist).
my Idea was to make a custom xkb layout, but I can't get any unique keycodes for these Keys.
Here are the full combinations:
Super_L+p => some multiscreen toggler
Super_L+i => settings => XF86Settings
Super_L+l => lock => XF86Lock
Control_L+Alt_L+Tab => some window switcher
And some more.
evtest gives me 125+38 for XF86Lock.
Any Ideas on how to achieve this?

Last edited by jl2 (2023-06-29 06:13:28)


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

#2 2023-06-28 18:51:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED]remap keys to XF* not keybinds

jl2 wrote:

Some keys don't get mapped correctly and how up as keybinds in wev (and xev and showkey).
... but I can't get any unique keycodes for these Keys.ck.
Any Ideas on how to achieve this?

Please be specific.  What do you get when these keys are pressed?

What make / model / etc is this laptop?  Are you sure Super_L + F<n> is intended to generate those symbols, and not a Fn + F<n>?

jl2 wrote:

Here are the full combinations:
Super_L+p => some multiscreen toggler
Super_L+i => settings => XF86Settings
Super_L+l => lock => XF86Lock
Control_L+Alt_L+Tab => some window switcher

What are these?  Do you mean there is a "Settings" icon over the "I" key ... that'd be quite odd.  Or are you considering trying to make the combination Super_L + I a replacement for the "Settings" key?

Last edited by Trilby (2023-06-28 18:53:25)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-06-28 19:24:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,652

Re: [SOLVED]remap keys to XF* not keybinds

The keyboard just generates the default windows shortcuts, this is common, happens in HW and you cannot change that.
You can bind Super+L to your screen locker or you could bind it to a "xdotool key XF86ScreenSaver" ("XF86Lock" isn't a thing), but that's kinda pointless - just bind win+l to your screenlocker.

Offline

#4 2023-06-29 06:13:04

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

Re: [SOLVED]remap keys to XF* not keybinds

Ok - so it's HW. seams your right with the windows shortcuts, which is actually pretty smart - you don't have to make random key codes etc. (as manufacturer)
Inspector parrot: I wrote it wrong. I meant the Icon above F9. This generates Super_L+i and I would have liked to mapped it to XFSettings (which doesn't exist)


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

#5 2023-06-29 12:06:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED]remap keys to XF* not keybinds

How is this solved?

If the media keys are not even generating the proper symbols, then there's a good chance you are just missing a relevant kernel module for them to do so.  This is why I asked about the make / model of the laptop.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2023-06-29 13:19:56

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

Re: [SOLVED]remap keys to XF* not keybinds

Solved as in reallizing that those are not random Keybinds, but windows keybinds.  then it makes sense.
Lenovo yoga 7 gen 7 (14arb7)
I have some Ideapad_laptop kernel module loaded (which loads sparse_keymap, platform_profile, rfkill, i8042,  video and wmi).

Last edited by jl2 (2023-06-29 13:21:38)


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

#7 2023-06-29 13:54:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,652

Re: [SOLVED]remap keys to XF* not keybinds

@Trilby, his keyboard has keys that don't generate a unique keycode, but simply a key combination matching the standard windows shortcut for the action that is printed on the cap.
There isn't much to do here, for the OS the user pressed two keys (eg. win+l) despite jl2 just pressing one key.
The setup is rather common these days hmm

Offline

Board footer

Powered by FluxBB