You are not logged in.

#1 2022-01-31 20:52:40

seniorkiller
Member
Registered: 2022-01-31
Posts: 3

[solved] laptop function registered as normal key?

little bit back story.
so using i3 and wanted to shortcut to lock my laptop with a function key(fn+F9), so i look it up how to get that function key but when i tried using xev the output of that function key is "L". then i tried searching other way to assign it by searching XF86 lock. i found XF86Lock but it doent do anything. i tried to use other key retrival methode like evtest, acpi_listen, and looking at xmodmap but the result is the same i look at the keycode and it the same as the letter "L" so i take a conclusion that maybe that function key is linked to the letter "L". so i test it on my first linux install (i have 2 different linux partition). it was Gnome and the function key work fine and when i look i up on xev is the giving the same output as before(the letter"L") then i got very confused. im not finding anything related to this problem exept one reddit post( Reddit ) but it dont have the answer and when i look up what the guy said it lead to the same problem

and now im not too interested scour google find out how gnome able to does it nor i in the mood of finding other the work around. i actually have 2 other problem i still cant find how to solve it so it will be on my bucket list. so i just want to ask if someone knows or have any idea the work around. if yes it will be much appreciated.

sorry if kinda messy. first post
dont know what log i should give. sorry

Last edited by seniorkiller (2022-02-01 01:07:58)

Offline

#2 2022-01-31 21:27:08

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

Re: [solved] laptop function registered as normal key?

The key most likely produces super+l (win+l) which is the windows shortcut to lock the screen and you can just bind that in i3.
Check for the state in "xev -event keyboard", super is 0x40 (if you see 0x50, that's 0x10|0x40 and 0x10 is numlock)

Offline

#3 2022-01-31 22:40:30

seniorkiller
Member
Registered: 2022-01-31
Posts: 3

Re: [solved] laptop function registered as normal key?

yes that what im currently using but im planning to bind super+l to other key im just wandering if maybe i could change that key to something else. ive not find any relating to that. if there's something i can do to change that it will be nice addition to my system

Offline

#4 2022-01-31 23:04:20

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

Re: [solved] laptop function registered as normal key?

These keys are hardwired - the keyboard really emits that macro for the Fn key.
The OS sees you pressing Super+L
You can probably xmodmap away F9 and will still get Super+L from that combo.

Offline

#5 2022-02-01 01:05:40

seniorkiller
Member
Registered: 2022-01-31
Posts: 3

Re: [solved] laptop function registered as normal key?

okay then i guess i need to rethink how my keybind layout is. thanks for the quick reply

Offline

Board footer

Powered by FluxBB