Stefan Ott has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40620 )
Change subject: mb/lenovo/x200: Add support for ThinkLight ......................................................................
mb/lenovo/x200: Add support for ThinkLight
With this patch, the ThinkLight on the X200 can be controlled through the OS. The exact same change was done a while ago to the X201 in https://review.coreboot.org/c/coreboot/+/19644.
After applying this patch, the light can be controlled like this:
echo on >/proc/acpi/ibm/light echo off >/proc/acpi/ibm/light
I have tested it on an X200 and it seems to work fine.
Change-Id: I14752ab33484122248959517e73f96b6783b1f65 Signed-off-by: Stefan Ott stefan@ott.net --- M src/mainboard/lenovo/x200/acpi/platform.asl 1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/40620/1
diff --git a/src/mainboard/lenovo/x200/acpi/platform.asl b/src/mainboard/lenovo/x200/acpi/platform.asl index 2247461..4047a48 100644 --- a/src/mainboard/lenovo/x200/acpi/platform.asl +++ b/src/mainboard/lenovo/x200/acpi/platform.asl @@ -44,6 +44,21 @@ Return(Package(){0,0}) }
+Method(UCMS, 1, Serialized) +{ + Switch(ToInteger(Arg0)) + { + Case (0x0c) /* Turn on ThinkLight */ + { + _SB.PCI0.LPCB.EC.LGHT(1) + } + Case (0x0d) /* Turn off ThinkLight */ + { + _SB.PCI0.LPCB.EC.LGHT(0) + } + } +} + /* System Bus */
Scope(_SB)