]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: button: Add DMI quirk for Lenovo Yoga 9 (14INTL5)
authorUlrich Huber <ulrich@huberulrich.de>
Tue, 24 Aug 2021 12:57:44 +0000 (14:57 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Aug 2021 17:57:01 +0000 (19:57 +0200)
commit5b3bf0b47cf7660a8ad1ed04bbf73f0f042528a2
tree1d6e68b7ac5ba1d9cdb20cce436edc34adba0232
parentce1c8ff730a9d52cea6c427c4d2fbd6de7a3061a
ACPI: button: Add DMI quirk for Lenovo Yoga 9 (14INTL5)

The Lenovo Yoga 9 (14INTL5)'s ACPI _LID is bugged:

After hibernation the lid is initially reported as closed.
Once closing and then reopening the lid reports the lid as
open again. This leads to the conclusion that the initial
notification of the lid is missing but subsequent
notifications are correct.

In order fo the Linux LID code to handle this device properly
the lid_init_state must be set to ACPI_BUTTON_LID_INIT_OPEN.

Signed-off-by: Ulrich Huber <ulrich@huberulrich.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c