Re: [RFC] Reporting "orientation changed" event
From: Matthew Garrett <mjg59@srcf.ucam.org>
Date: 2011-05-09 18:06:19
Also in:
platform-driver-x86
From: Matthew Garrett <mjg59@srcf.ucam.org>
Date: 2011-05-09 18:06:19
Also in:
platform-driver-x86
On Mon, May 09, 2011 at 07:58:02PM +0200, Anisse Astier wrote:
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 2105b42..e23d555 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c@@ -1337,6 +1337,13 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) } return ; } + + /* Accelerometer "coarse orientation change" event */ + if (asus->pega_accel && event == 0xEA) { + kobject_uevent(&asus->pega_accel->dev.kobj, KOBJ_CHANGE); + return ; + } + asus_input_notify(asus, event); }
Precisely that. -- Matthew Garrett | mjg59@srcf.ucam.org