Re: [ltp] Thinkpad keyboard backlight ACPI interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pali Rohár <pali.rohar@xxxxxxxxx> writes:

> I would like to write kernel patch for thinkpad_acpi.c to support 
> keyboard backlight (like other modules in drivers/platform/x86/ tree), 
> but last missing information is how to detect current level of 
> brightness and check if backlight is supported...

Based on the code you posted, I would assume that MLCG returns the
current brightness level.  Did you test that?

The thinkpad_acpi driver use code like this to test for supported
features:

      tp_features.bluetooth = hkey_handle && acpi_evalf(hkey_handle, &status, "GBDC", "qd");

You could do something similar for the keyboard backlight feature,
couldn't you?



Bjørn

------------------------------------------------------------------------------
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel




[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux