Patchwork ideapad: read brightness setting on brightness key notify

login
register
mail settings
Submitter Ike Panhc
Date Feb. 23, 2011, 1:39 p.m.
Message ID <1298468399-3642-1-git-send-email-ike.pan@canonical.com>
Download mbox | patch
Permalink /patch/584191/
State New, archived
Headers show

Comments

Patch

diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 114d952..21b1018 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -459,6 +459,8 @@  static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
 		if (test_bit(vpc_bit, &vpc1)) {
 			if (vpc_bit == 9)
 				ideapad_sync_rfk_state(adevice);
+			else if (vpc_bit == 4)
+				read_ec_data(handle, 0x12, &vpc2);
 			else
 				ideapad_input_report(priv, vpc_bit);
 		}