Re: [PATCH 0/4] platform/x86: clevo-laptop: add initial Rust driver for keyboard backlight

From: Nick Dowsett

Date: Mon Nov 23 2026 - 19:30:35 EST


Hi Werner,

Thanks for the reply. I guess for some context for those that aren't
aware, Werner/TUXEDO maintain an out-of-tree driver (`tuxedo-drivers`)
that includes support for TUXEDO-branded Clevo drivers. This driver
was influenced by their work, and I reached out to Werner briefly by
email before submitting this series to the mailing list.

On Mon Nov 23, 2026 at 9:58 PM AWST, Werner Sembach wrote:
> Hi,
>
> First: I never have touched rust code, but I'm not opposed to it in principle.
> Just to excuse a little bit of knowledge gap.
>
> Am 22.11.26 um 05:35 schrieb Nick Dowsett via B4 Relay:
>> This series adds a new Rust platform driver MVP (`clevo-laptop`) for
>> Clevo barebones and rebranded laptops (Metabox, Tuxedo, Sager, XMG,
>> etc.), starting with 5-step white keyboard backlight control.
>
> The driver will have to interact at least with these subsystems when finished
> (If I haven't forgotten any):
>
> - Platform/ACPI
> - WMI
> - Power Supply/Battery
> - LEDs
> - Input
> - HWMon
>
> And maybe:
>
> - Thermal
> - HID
> - Component
>
> I don't know how much this influences the feasibility of doing it in rust.

I understand this is referring to the feasibility of rewriting the
entire `tuxedo-drivers` package in Rust. Perhaps someone more experienced
on the RFL front could jump in here in terms of the feasibility of
writing the mentioned bindings (from what I can see, workable patches
exist already for LEDs and WMI), but I'll give my perspective:
- This is a beneficial effort regardless of full compatibility for
now; even this MVP solves a real problem for users with this specific
non-TUXEDO branded, Clevo laptop.
- Some modularity between C and Rust may still be able to exist, for
example, perhaps the existing HID keyboard backlight drivers may be
better to remain in C.
- In terms of feasibilty, whilst some waiting for bindings to reach
full parity with `tuxedo-drivers` may be required, this is still
more feasible for myself than writing and maintaining significant
amounts of C.

>> It is intended as the first in-tree user of the Rust WMI abstractions,
>> and a starting point to be extended to additional Clevo models and EC
>> features.
>>
>> What's included:
>> - Minimal driver skeleton, Kconfig/Makefile plumbing, and MAINTAINERS
>> entry.
>> - Type-safe EC WMI query interface.
>> - Driver registration and backlight type detection following
>> tuxedo-drivers business rules.
>
> Just wanna make sure what you are referring to here exactly?

Specifically, I am referring to the logic used for board capability
detection; ie how to determine if a device supports fixed colour vs.
RGB backlight etc. TUXEDO has already done a significant volume of work
here.

Any questions or concerns please shout out.

Cheers Nick