Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Laptop special key has no scancode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mitocram
n00b
n00b


Joined: 03 Jan 2023
Posts: 24

PostPosted: Wed Feb 08, 2023 4:06 am    Post subject: [SOLVED] Laptop special key has no scancode Reply with quote

Hello,

My HP laptop has a special key which, in Windows, is supposed to open up a program called "OMEN Gaming Hub"; the program doesn't interest me, but seeing as how it would be a waste to leave the key unused, I've decided to turn it into a compose key, due to the fact that I also type in Spanish. But, the key doesn't show in xev while inside of xorg, or showkey while in a tty.

I kept investigating, and found in the Arch Wiki that the scancode might be found in dmesg, but instead this message is printed every time the key is pressed:
Code:
hp_wmi: Unknown event_id - 29 - 0x21a5

I tried using 0x21a5 as a scancode with setkeycodes, binding it to an unused keycode, but got the following error message, which I suppose means 0x21a5 is no a valid scancode:
Code:
$ setkeycodes 21a5 240
setkeycodes: failed to set scancode 21a5 to keycode 240: ioctl KDSETKEYCODE: Invalid argument


Here is my full dmesg.

I'll be grateful for any help I can get! :D


Last edited by mitocram on Thu Feb 09, 2023 5:30 am; edited 1 time in total
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Wed Feb 08, 2023 4:32 am    Post subject: Reply with quote

Do you have HP_WMI enabled in your kernel config?
Back to top
View user's profile Send private message
mitocram
n00b
n00b


Joined: 03 Jan 2023
Posts: 24

PostPosted: Wed Feb 08, 2023 6:33 am    Post subject: Reply with quote

shadowless wrote:
Do you have HP_WMI enabled in your kernel config?


I think so
Code:
$lsmod | grep hp_wmi           
hp_wmi                 24576  0
platform_profile       16384  1 hp_wmi
sparse_keymap          16384  2 hp_wmi,intel_hid
rfkill                 28672  4 hp_wmi,bluetooth,cfg80211
wmi                    32768  4 hp_wmi,video,wmi_bmof,mxm_wmi

Code:
$zgrep HP_WMI /proc/config.gz
CONFIG_HP_WMI=m
Back to top
View user's profile Send private message
mitocram
n00b
n00b


Joined: 03 Jan 2023
Posts: 24

PostPosted: Wed Feb 08, 2023 7:02 am    Post subject: Reply with quote

I believe I've found the reason for which this doesn't work, according to this mail thread, the OMEN key is supposed to enter the hp-wmi driver in the next merge window, which by the date the mails where sent I assume refers to kernel 6.2.

I'll be either trying to apply the patch submited on the thread, or waiting for the dist kernel of 6.2.0, as my hardware being new has caused headaches with manual configs :?

I'll be marking the thread as solved if the patch resolves my issues :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum