From: Jiri Kosina <jikos@kernel.org>
To: Jian-Hong Pan <jhp@endlessos.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Chris Chiu <chiu@endlessos.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
linux@endlessos.org
Subject: Re: [PATCH v2] HID: Add Wireless Radio Control feature for Chicony devices
Date: Thu, 7 Jan 2021 10:23:00 +0100 (CET) [thread overview]
Message-ID: <nycvar.YFH.7.76.2101071019010.13752@cbobk.fhfr.pm> (raw)
In-Reply-To: <20201223055540.204685-1-jhp@endlessos.org>
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
next prev parent reply other threads:[~2021-01-07 9:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-22 7:38 [PATCH] HID: Add Wireless Radio Control feature for Chicony devices Jian-Hong Pan
2020-12-22 16:41 ` Chris Chiu
2020-12-23 4:02 ` Jian-Hong Pan
2020-12-23 5:55 ` [PATCH v2] " Jian-Hong Pan
2021-01-04 15:54 ` Chris Chiu
2021-01-07 9:23 ` Jiri Kosina [this message]
2021-01-11 5:40 ` Jian-Hong Pan
2021-01-14 12:13 ` Jiri Kosina
2020-12-24 19:06 ` [PATCH] " Pavel Machek
2020-12-25 3:31 ` Jian-Hong Pan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.YFH.7.76.2101071019010.13752@cbobk.fhfr.pm \
--to=jikos@kernel.org \
--cc=benjamin.tissoires@redhat.com \
--cc=chiu@endlessos.org \
--cc=jhp@endlessos.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@endlessos.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).