From: Nikita Krasnov <nikita.nikita.krasnov@gmail.com>
To: Armin Wolf <W_Armin@gmx.de>,
linux-acpi@vger.kernel.org, linux-input@vger.kernel.org,
platform-driver-x86@vger.kernel.org, linux@weissschuh.net,
fengwk94@gmail.com
Subject: Re: Missing ACPI driver for a keyboard button in Xiaomi RedmiBook Pro 16
Date: Mon, 28 Jul 2025 02:36:52 +0300 [thread overview]
Message-ID: <103ed888-ec6c-4b46-b03e-f2803850eec2@gmail.com> (raw)
In-Reply-To: <b4707664-6177-45ff-a284-36e921f316e7@gmx.de>
[-- Attachment #1.1: Type: text/plain, Size: 1756 bytes --]
> No, it is because your device is using a different WMI interface for delivering events. Device manufacturers
> are not exactly known for using the same WMI interfaces for a long time :(.
By the way, how would we call this driver? xiaomi-2-wmi?
> Personally i have no problem with you writing a WMI driver in Rust, but currently we have
> no suitable bindings for the WMI driver API. Additionally i am currently designing a new
> WMI driver API that will make it easier to implement the necessary Rust bindings, so the
> whole thing might take some time.
Well, I am fine with having to implement the missing Rust bindings — no
problem there. I was actually looking forward to it. But if the API's
going to change... Oof.
* Would the API change be _that_ drastic?
* Do you have any expectations on when would that API be released?
* Would the new API deprecate the previous one?
Maybe I could do this in Rust right now and then simply update the
bindings to the new API? That way it would be possible to write the
driver in Rust. If the API is going to change — the C code would have to
be updated either way, right? Maybe updating C driver versus updating
Rust bindings+driver is not that big of a difference. What do you think?
I doubt there are going to be so many Rust WMI users that it would get
really difficult to move anyone to the bindings with a new API..? How
active is the WMI submodule (is it actually a submodule or just a
component of ACPI) really is?
> Would it be possible for you to implement the WMI driver in C?
Yea, absolutely! I'm totally fine with writing this in C. I just really
don't want to miss the opportunity to use Rust here (is it's actually
feasible)!
--
Nikita Krasnov
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2025-07-27 23:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 23:39 Missing ACPI driver for a keyboard button in Xiaomi RedmiBook Pro 16 Nikita Krasnov
2025-07-20 10:58 ` Nikita Krasnov
2025-07-20 23:17 ` Armin Wolf
2025-07-20 23:23 ` Armin Wolf
2025-07-22 12:48 ` Nikita Krasnov
2025-07-22 16:09 ` Armin Wolf
2025-07-27 11:23 ` Nikita Krasnov
2025-07-27 22:24 ` Armin Wolf
2025-07-27 23:36 ` Nikita Krasnov [this message]
2025-07-28 21:22 ` Armin Wolf
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=103ed888-ec6c-4b46-b03e-f2803850eec2@gmail.com \
--to=nikita.nikita.krasnov@gmail.com \
--cc=W_Armin@gmx.de \
--cc=fengwk94@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=platform-driver-x86@vger.kernel.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