diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl index 18463a5e4b1..f9596c503d7 100644 --- a/src/ec/lenovo/h8/acpi/ec.asl +++ b/src/ec/lenovo/h8/acpi/ec.asl @@ -17,6 +17,10 @@ Device(EC) HSPA, 1, Offset (0x0C), LEDS, 8, /* LED state */ + Offset (0x0d), + , 4, + , 2, + KBLS, 2, /* Keyboard Light */ Offset (0x0F), , 7, TBSW, 1, /* Tablet mode switch */ @@ -42,7 +46,7 @@ Device(EC) WWEB, 1, Offset (0x3B), , 1, - KBLT, 1, /* Keyboard Light */ + KBLT, 1, /* Think Light?? */ , 2, USPW, 1, /* USB Power enable */ Offset (0x48), @@ -116,9 +120,9 @@ Device(EC) Store(Arg0, USPW) } - Method (LGHT, 1, NotSerialized) + Method (LGHT, 1, NotSerialized) // method for thinklight? { - Store(Arg0, KBLT) + Store(Arg0, TPLT) } diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl index eca0d4471dd..84e271495ba 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad.asl @@ -238,16 +238,16 @@ Device (HKEY) * Bit 9: Backlight HW present * Bit 0-1: Brightness level */ - Method (MLCG, 1) + Method (MLCG, 0) { If (HKBL) { Store (0x200, Local0) - /* FIXME: Support 2bit brightness control */ - Or (Local0, \_SB.PCI0.LPCB.EC.KBLT, Local0) + /* FIXME: Support windows and events */ + Store ( Or (Local0, \_SB.PCI0.LPCB.EC.KBLS), Local0) Return (Local0) } Else { Return (0) - } + } } /* @@ -257,9 +257,12 @@ Device (HKEY) Method (MLCS, 1) { If (HKBL) { - /* FIXME: Support 2bit brightness control */ - Store (And(Arg0, 1), \_SB.PCI0.LPCB.EC.WWEB) - } + /* FIXME: windows and events */ + Store (Arg0, \_SB.PCI0.LPCB.EC.KBLS) + return (Or (0x200, Arg0) //Return per ACPI. + } Else { + Return (0) + } } /*