Skip to contentSkip to conversation

ideapad: read brightness setting on brightness key notify

PATCH New Ike Panhc 1 participant 1 message Apr 15, 2011 x86 platform drivers

lore
Share & tools
lore

Ike Panhc

author
#0 lore raw

PATCH 1/1 ideapad: read brightness setting on brightness key notify

On ideapad Y530, the brightness key notify will be blocked if the last notify is not responsed by getting the brightness value. Read value when we get the notify shall fix the problem and will not have any difference on other ideapads.

(cherry picked from upstream commit 2165136585b5c7d6f118f1d90fbde550bb7de212)

---
 drivers/platform/x86/ideapad-laptop.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/platform/x86/ideapad-laptop.c +2 -0
index 114d952..21b1018 100644
@@ -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);
 		}
Signature · 1 line
1.7.4.1