From: Ike Panhc <email address hidden>
BugLink: https://bugs.launchpad.net/bugs/1029834
Otherwise will generate KEY_UNKNOWN on un-listed vpc event, which means nothing and is hard for user to report the detail of the event.
Signed-off-by: Ike Panhc <email address hidden> Signed-off-by: Matthew Garrett <email address hidden> (cherry picked from commit 20a769c1c6671d3b8d18a7358eff15e3dd29e94b) Signed-off-by: Wen-chien Jesse Sung <email address hidden> --- drivers/platform/x86/ideapad-laptop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index a36addf..a1d1415 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -785,6 +785,10 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event) case 9: ideapad_sync_rfk_state(priv); break; + case 13: + case 6: + ideapad_input_report(priv, vpc_bit); + break; case 4: ideapad_backlight_notify_brightness(priv); break; @@ -795,7 +799,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event) ideapad_backlight_notify_power(priv); break; default: - ideapad_input_report(priv, vpc_bit); + pr_info("Unknown event: %lu\n", vpc_bit); } } } -- 1.7.9.5
From: Ike Panhc <email address hidden>
BugLink: https:/ /bugs.launchpad .net/bugs/ 1029834
Otherwise will generate KEY_UNKNOWN on un-listed vpc event,
which means nothing and is hard for user to report the detail
of the event.
Signed-off-by: Ike Panhc <email address hidden> b8d18a7358eff15 e3dd29e94b) platform/ x86/ideapad- laptop. c | 6 +++++-
Signed-off-by: Matthew Garrett <email address hidden>
(cherry picked from commit 20a769c1c6671d3
Signed-off-by: Wen-chien Jesse Sung <email address hidden>
---
drivers/
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/ platform/ x86/ideapad- laptop. c b/drivers/ platform/ x86/ideapad- laptop. c platform/ x86/ideapad- laptop. c platform/ x86/ideapad- laptop. c acpi_notify( struct acpi_device *adevice, u32 event) sync_rfk_ state(priv) ; input_report( priv, vpc_bit); backlight_ notify_ brightness( priv); acpi_notify( struct acpi_device *adevice, u32 event) backlight_ notify_ power(priv) ; input_report( priv, vpc_bit);
index a36addf..a1d1415 100644
--- a/drivers/
+++ b/drivers/
@@ -785,6 +785,10 @@ static void ideapad_
case 9:
ideapad_
break;
+ case 13:
+ case 6:
+ ideapad_
+ break;
case 4:
ideapad_
break;
@@ -795,7 +799,7 @@ static void ideapad_
ideapad_
break;
default:
- ideapad_
+ pr_info("Unknown event: %lu\n", vpc_bit);
}
}
}
--
1.7.9.5