You are not logged in.

#1 2024-03-25 07:58:30

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

[Solved]My Chrombooks hotkeys are not working as Function keys

Hi! I have recently installed several linux distros on my "HP Chromebook 15a-nb0013dx". But many of them had many issues but after installing arch linux all problems were solved including sound except one problem that is related with keyboard. My chromebook's top row keys are not working as function keys instead it is working as chromebook's hotkeys for that I'm facing many problems using applications that need function keys. Is there any way to fix them?

Last edited by Abhan Wamik Rahim (2024-03-29 13:02:01)

Offline

#2 2024-03-25 09:30:31

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Search for fnlock, HP typically has it on Fn+Shift
There's maybe also a setting in the BIOS/UEFI to reverse the default.

Offline

#3 2024-03-25 10:41:23

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Thanks for the reply. I haven't managed to find this type of settings in my uefi settings . The fn keys were working fine on chromeos but in arch its not working. Tried xkeyboard-config but no hope.

Offline

#4 2024-03-25 15:04:11

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

See whether https://wiki.archlinux.org/title/HP_Chr … apping_Fix applies to your device as well.

Offline

#5 2024-03-25 17:49:51

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Unfortunately not working. And now the microphone mute button has stopped working and microphone is muting or unmuting  is working on speaker mute button holding super button sad

Offline

#6 2024-03-25 20:48:02

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

If you undo that change, do the keys generate any kind of input? And what?
https://wiki.archlinux.org/title/Keyboa … _scancodes

Offline

#7 2024-03-26 09:46:53

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

I have undo all changes . now microphone mute working
i have changed keyboards layout to google chromebook and opened preview and saw fn or shortcut key press is not showing in preview

Offline

#8 2024-03-26 09:56:40

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Sorry to disturb

Last edited by Abhan Wamik Rahim (2024-03-27 05:59:52)

Offline

#9 2024-03-26 13:40:05

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

i have changed keyboards layout to google chromebook and opened preview and saw fn or shortcut key press is not showing in preview

Please use evtest, some GUI will rather not work here.

Offline

#10 2024-03-27 05:40:44

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Evetest getting the same output tried showkey atleast got scancodes result , Sir!

Here it is

sudo showkey --scancodes
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...

0xe0 0x6a 0xe0 0xea {Back}
0xe0 0x67 0xe0 0xe7 {Refresh}
0xe0 0x0b 0xe0 0x8b {Window Changer}
0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0 0xb7{Screenshot+ also recognising as print screen}
0xe0 0x4c 0xe0 0xcc {Brightness Down}
0xe0 0x54 0xe0 0xd4 {Brightness Up}
0xe0 0x22 0xe0 0xa2 {Pause Button}
0xe0 0x20 0xe0 0xa0 {Mute Speaker}
0xe0 0x2e 0xe0 0xae {Sound Down}
0xe0 0x30 0xe0 0xb0 {Sound Raise}
0xe0 0x5e 0xe0 0xde {Power off}


here 'Third Key','Microphone Mute' & "Second Last" is n ot giving any output

Last edited by Abhan Wamik Rahim (2024-03-28 06:08:07)

Offline

#11 2024-03-27 05:57:52

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Herer is Keycode output


[root@archlinux abhan]# showkey --keycodes
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 158 release {Back}
keycode 173 release{Refresh}
keycode 372 release {Fullscreen}
keycode 120 release {Window Changer}
keycode  99 release  {Screenshot+ also recognising as print screen}
keycode 224 release {Brightness Down}
keycode 225 release {Brightness Up}
keycode 164 release {Pause Button}
keycode 248 release{Mute microphone}
keycode 113 release{Mute Speaker}
keycode 114 release{Sound Down}
keycode 115 release{Sound Raise}
keycode 116 release {Power off}

This time not getting second last buttons output.

Last edited by Abhan Wamik Rahim (2024-03-28 06:22:38)

Offline

#12 2024-03-27 12:59:35

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Please use [code][/code] tags. Edit your post in this regard.
The grabbing process is likely kwin_wayland - test this from the multui-user.target (2nd link below)

Incidentally: same issue w/ KDE on X11?

Offline

#13 2024-03-27 16:20:32

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Yeah

Same issue on x11 also.

Offline

#14 2024-03-27 16:23:03

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

So how can I set the keycode into function key ? Sorry, haven't understood your advise.

Offline

#15 2024-03-27 17:12:06

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

First, fix your posts and wrap the overlong (and pointless) output into code tags.
Then run "sudo evtest" from either the multi-user.target or KDE/X11 to obtain the scancodes of the reelvant keys (pressing them will print that, you can use "tee" to copy the output into a file)

Offline

#16 2024-03-28 06:23:33

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

I have edited my #10 #11 posts . You can see that. Sir !

Last edited by Abhan Wamik Rahim (2024-03-28 10:36:39)

Offline

#17 2024-03-28 08:56:28

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

And do you get other keycodes when pressing Fn along the keys?

Offline

#18 2024-03-28 10:37:01

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

in my keyboard has no fn buttons like other hp laptop

Last edited by Abhan Wamik Rahim (2024-03-28 10:51:27)

Offline

#19 2024-03-28 13:02:17

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Ah, des Pudels Kern.
https://i.ebayimg.com/images/g/HxYAAOSw … -l1600.jpg

Try the thing with the circle, above the left shift.
https://www.howtogeek.com/713365/how-to … -keyboard/

Offline

#20 2024-03-28 15:26:05

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Tried but getting same output

Offline

#21 2024-03-28 15:52:43

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Run "xev -event keyboard", press and hold the search key, then press and release the supposed F1 key, release the search key and post the entire output that produced in xev.

Offline

#22 2024-03-28 16:11:49

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

xev -event keyboard
Outer window is 0x4400001, inner window is 0x4400002

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

KeyRelease event, serial 25, synthetic NO, window 0x4400001,
    root 0x5f3, subw 0x0, time 21056691, (367,294), root:(960,602),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4400001,
    root 0x5f3, subw 0x0, time 21058726, (367,294), root:(960,602),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4400001,
    root 0x5f3, subw 0x0, time 21060470, (367,294), root:(960,602),
    state 0x50, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES,
    XKeysymToKeycode returns keycode: 67
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4400001,
    root 0x5f3, subw 0x0, time 21060699, (367,294), root:(960,602),
    state 0x50, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES,
    XKeysymToKeycode returns keycode: 67
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4400001,
    root 0x5f3, subw 0x0, time 21063894, (256,256), root:(849,564),
    state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

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

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

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

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

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

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

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

ClientMessage event, serial 28, synthetic YES, window 0x4400001,
    message_type 0x161 (WM_PROTOCOLS), format 32, message 0x162 (WM_DE

Last edited by Abhan Wamik Rahim (2024-03-28 16:20:43)

Offline

#23 2024-03-28 16:13:41

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

I think same output again no keycode for third, mute, and second last button no output

Offline

#24 2024-03-28 16:45:45

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

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Please use [code][/code] tags…

The search key generates Super_L  (the windows key)
It's not the default behavior but you could still use https://wiki.archlinux.org/title/Chrome … Using_keyd - you'd just have to revert the assigments

Offline

#25 2024-03-28 17:39:43

Abhan Wamik Rahim
Member
Registered: 2024-03-25
Posts: 16

Re: [Solved]My Chrombooks hotkeys are not working as Function keys

Thanks a lot it worked like a charm but still facing some issue :
1.Firefox don't recognising the code
2. brightnessup and brightnessdown are not working as f6 and f7.

I am showing you my keyd config :

/etc/keyd/default.conf                                         
[ids]
*

[main]
back = f1
refresh = f2
zoom = f3
scale = f4
sysrq = f5
monbrightnessdown = f6
monbrightnessup = f7
playpause = f8
micmute = f9
mute = f10
volumedown = f11
volumeup = f12

[meta]
refresh = refresh
zoom = zoom
scale = scale
sysrq = sysrq
monbrightnessdown = monbrightnessdown
monbrightnessup = monbrightnessup
playpause = playpause
micmute = micmute
mute = mute
volumedown = volumedown
volumeup = volumeup



left  = home
right = end
up    = pageup
down  = pagedown

backspace = delete

[shift]
meta = capslock

Offline

Board footer

Powered by FluxBB