Skip to contentSkip to conversation

(Resent) HID: Lenovo Essential Gen2 Fnlock patch (1a81:1026)

QUESTION Annmay Arora 1 participant 1 message May 2 HID

lore
Share & tools
lore
#0 lore raw

Resending with corrected recipient headers (previous mail missed LKML).

Hi,

I am working on:
(lsusb output)> 1a81:1026 Holtek Semiconductor, Inc. Lenovo Essential Wireless Combo Keyboard & Mouse Gen2

to bring the F-Keys functionality to parity as under Windows. The peripheral was observed with Wireshark (4.6.5) and USBpcap on a windows 11 LTSC install. The SET_REPORT to unlock proper functionality from F-keys is as follows:

ON -> 06 ce 01 01 00 00 00 00
OFF -> 06 ce 00 01 00 00 00 00

where the ON state allows the user to interact with media keys (Eg. Fn + F1 allows us to toggle mute).

This was tested successfully with a python script to enable the Fnlock and later with a out-of-kernel module which is not production ready and would ideally not be upstreamed. I have a few questions in order to attempt to send a few patches.

Questions:
1) The device presents itself to be Holtek, but does not seem to match the manufacturer code. Would another id need to be added to drivers/hid/hid-ids.h

2) Would it be ideal to create a hid-holtek-lenovo.c or should one of the existing drivers should be modified? If yes, which one?

TIA,

Annmay Arora