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

2021-07-29 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

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

2021-07-29 Thread Andy Shevchenko
On Thu, Jul 29, 2021 at 11:21 AM Hans de Goede wrote: > > 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

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

2021-07-29 Thread Hans de Goede
Hi, On 7/29/21 10:37 AM, Andy Shevchenko wrote: > On Thu, Jul 29, 2021 at 11:21 AM Hans de Goede wrote: >> >> 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 th

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

2021-07-29 Thread Andy Shevchenko
On Thu, Jul 29, 2021 at 11:45 AM Hans de Goede wrote: > > Hi, > > On 7/29/21 10:37 AM, Andy Shevchenko wrote: > > On Thu, Jul 29, 2021 at 11:21 AM Hans de Goede wrote: > >> > >> Various 360 degree hinges (yoga) style 2-in-1 devices use 2 accelerometers > >> to allow the OS to determine the angle

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

2021-07-29 Thread Hans de Goede
Hi, On 7/29/21 10:50 AM, Andy Shevchenko wrote: > On Thu, Jul 29, 2021 at 11:45 AM Hans de Goede wrote: >> >> Hi, >> >> On 7/29/21 10:37 AM, Andy Shevchenko wrote: >>> On Thu, Jul 29, 2021 at 11:21 AM Hans de Goede wrote: Various 360 degree hinges (yoga) style 2-in-1 devices use 2 acce