lkml.org 
[lkml]   [2021]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] HID: Add Wireless Radio Control feature for Chicony devices
On Wed, 23 Dec 2020, Jian-Hong Pan wrote:

> Some Chicony's keyboards support airplane mode hotkey (Fn+F2) with
> "Wireless Radio Control" feature. For example, the wireless keyboard
> [04f2:1236] shipped with ASUS all-in-one desktop.
>
> After consulting Chicony for this hotkey, learned the device will send
> with 0x11 as the report ID and 0x1 as the value when the key is pressed
> down.
>
> This patch maps the event as KEY_RFKILL.

I don't know how exactly does the report descriptor of that device look
like, but is this not doable from userspace via setkeycode() (udev/systemd
is shipping a lot of such mappings already -- see evdev/keyboard
definitions in hwdb).

Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2021-01-07 10:25    [W:0.100 / U:1.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site