]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: Enable wakeup capability from Suspend-to-Idle
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 9 Jul 2020 07:57:29 +0000 (15:57 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Oct 2020 18:46:11 +0000 (20:46 +0200)
commit40c54a847bb03981b4d04a20c7ebc2f8ce92f774
tree39b78f11478b46c3b20e700bf93360cb86c01b09
parent45622dc7f4af563cf6d94f39beca4942d4e0a861
HID: i2c-hid: Enable wakeup capability from Suspend-to-Idle

Many laptops can be woken up from Suspend-to-Idle by touchpad. This is
also the default behavior on other OSes.

However, if touchpad and touchscreen contact to each other when lid is
closed, wakeup events can be triggered inadventertly.

So let's disable the wakeup by default, but enable the wakeup capability
so users can enable it at their own discretion.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid-core.c