diff options
Diffstat (limited to 'src/ec/lenovo/h8/acpi')
-rw-r--r-- | src/ec/lenovo/h8/acpi/thinkpad.asl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl index d0e4234ed9..a0812e5d48 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad.asl @@ -19,6 +19,7 @@ Device (HKEY) /* Generated by ssdt.c */ External (\HBDC, IntObj) External (\HWAN, IntObj) + External (\HKBL, IntObj) Name (_HID, EisaId ("IBM0068")) @@ -228,4 +229,34 @@ Device (HKEY) /* FIXME: Store state at resume */ } } + + /* + * Argument is unused. + * Returns the current state: + * Bit 9: Backlight HW present + * Bit 0-1: Brightness level + */ + Method (MLCG, 1) + { + If (HKBL) { + Store (0x200, Local0) + /* FIXME: Support 2bit brightness control */ + Or (Local0, \_SB.PCI0.LPCB.EC.KBLT, Local0) + Return (Local0) + } Else { + Return (0) + } + } + + /* + * Set the current state: + * Bit 0-1: Brightness level + */ + Method (MLCS, 1) + { + If (HKBL) { + /* FIXME: Support 2bit brightness control */ + Store (And(Arg0, 1), \_SB.PCI0.LPCB.EC.WWEB) + } + } } |