[ibm-acpi-devel] [RFC 0/1] platform/x86: Add and use a dual_accel_detect() helper

2021-07-28 Thread Hans de Goede
Hi All, I've marked this as a RFC because I'm waiting for feedback from the bug-reporter to check if this actually fixes his issue. But I fully expect it will (I already tested this on some of my own hw). IOW I don't expect this patch to change before I will merge it, so please review. Here is m

[ibm-acpi-devel] [RFC 1/1] platform/x86: Add and use a dual_accel_detect() helper

2021-07-28 Thread Hans de Goede
Various 360 degree hinges (yoga) style 2-in-1 devices use 2 accelerometers to allow the OS to determine the angle between the display and the base of the device. On Windows these are read by a special HingeAngleService process which calls undocumented ACPI methods, to let the firmware know if the