Re: [PATCH] platform/x86: asus-wmi: add support for ASUS screenpad

From: Luke Jones
Date: Wed May 03 2023 - 17:22:31 EST




On Wed, May 3 2023 at 17:46:53 +0000, Barnabás Pőcze <pobrn@xxxxxxxxxxxxxx> wrote:
Hi


2023. május 3., szerda 6:02 keltezéssel, Luke D. Jones <luke@xxxxxxxxxx> írta:

Add support for the WMI methods used to turn off and adjust the
brightness of the secondary "screenpad" device found on some high-end
ASUS laptops like the GX650P series and others.

Is it this one: https://www.asus.com/content/rog-screenpad-plus/ ?
Or is the "plus" version something different?

If it's a "proper" screen, wouldn't it be better to add support for it
in the respective subsystems? E.g. why not register a backlight device?

I think it is similar yes, likely the same thing.

Adding as a proper backlight is what I wanted to do but at first blush I wasn't sure.

Looking at include/linux/backlight.h + some examples it looks clear now. I'll try to
work up a revised patch and get it tested by the folks with the actual laptop.

My only possible issue would be how to handle the on/off part?

Cheers,
Luke.