platform/x86: asus-wmi: Add userspace notification for performance mode change
authorVasiliy Kupriakov <rublag-ns@yandex.ru>
Fri, 28 Aug 2020 21:49:30 +0000 (00:49 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 24 Nov 2020 13:39:13 +0000 (14:39 +0100)
commit72ceec58685f8a5c2ec22d9617c7b1e239e2e809
treebd1a1bd11d354ea8fb599a4f3b4defa877633f0c
parentbb81dcd4eda208d00c3dc3372792da497813e958
platform/x86: asus-wmi: Add userspace notification for performance mode change

When user presses Fn-F5, the driver automatically changes throttle
thermal policy (or fan boost mode, depending on laptop model).

It would be convenient for userspace software to be able to poll on
corresponding sysfs variable. For example, to show a notification about
mode change.

Note that there is currently no way to handle Fn-F5 from userspace
directly, driver does not pass it.

Signed-off-by: Vasiliy Kupriakov <rublag-ns@yandex.ru>
Link: https://lore.kernel.org/r/20200828214932.20866-2-rublag-ns@yandex.ru
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c