On Wed, May 25, 2016 at 09:08:25AM +0200, Corentin Chary wrote: > On Tue, Apr 12, 2016 at 7:10 PM, Oleksij Rempel <linux@xxxxxxxxxxxxxxxx> wrote: > > > > Am 10.04.2016 um 05:06 schrieb Darren Hart: > > > On Fri, Apr 01, 2016 at 01:35:21PM +0200, Oleksij Rempel wrote: > > >> Asus Zenbook ux31a is providing ACPI0008 interface for ALS > > >> (Ambient Light Sensor), which is accessible for OS => Win 7. > > >> This sensor can be used with iio/acpi-als driver. > > >> Since it is disabled by default, we should use asus-wmi > > >> interface to enable it. > > >> > > > > > > Corentin, any concerns? > > > > > >> Signed-off-by: Oleksij Rempel <linux@xxxxxxxxxxxxxxxx> > > >> --- > > >> drivers/platform/x86/asus-wmi.c | 5 +++++ > > >> 1 file changed, 5 insertions(+) > > >> > > >> diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c > > >> index a96630d..a26dca3 100644 > > >> --- a/drivers/platform/x86/asus-wmi.c > > >> +++ b/drivers/platform/x86/asus-wmi.c > > >> @@ -114,6 +114,7 @@ MODULE_LICENSE("GPL"); > > >> #define ASUS_WMI_DEVID_LED6 0x00020016 > > >> > > >> /* Backlight and Brightness */ > > >> +#define ASUS_WMI_DEVID_ALS_ENABLE 0x00050001 /* Ambient Light Sensor */ > > >> #define ASUS_WMI_DEVID_BACKLIGHT 0x00050011 > > >> #define ASUS_WMI_DEVID_BRIGHTNESS 0x00050012 > > >> #define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021 > > > > > > Following this is: > > > > > > #define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */ > > > > > > Is there any relationship with this patch and that device? It would be useful to > > > understand the difference between these two DEVIDs (a comment in the source). > > > > I don't have this ID on my laptop. Hard to say what is it. > > > > I believe I found out this was somehow related to light sensors > because the WMI device contained that kind of information, but it's > likely that Asus didn't use this ID in a consistent way. Thanks for the follow-up. This one is already queued for 4.7. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html