From e38fe87fadf6a7b3c24592eb2b2bf7c42073fec2 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Fri, 29 Jan 2021 14:34:49 +0100 Subject: [PATCH] Aura perf. profile workaround Explicitly sets the performance profile for Aura on keyboard init. This has the effect of setting the state (previously not done by firmware) to the relevant ACPI object. After this it should restore the performance profile correctly on its own on power supply change. --- src/clevo_keyboard.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/clevo_keyboard.h b/src/clevo_keyboard.h index 4b0b819..d424bd3 100644 --- a/src/clevo_keyboard.h +++ b/src/clevo_keyboard.h @@ -773,6 +773,13 @@ struct tuxedo_keyboard_driver clevo_keyboard_driver_v2 = { int clevo_keyboard_init(void) { tuxedo_keyboard_init_driver(&clevo_keyboard_driver_v2); + + // Workaround for firmware issue not setting selected performance profile. + // Explicitly set "performance" perf. profile on init regardless of what is chosen + // for this device (Aura) + if (dmi_match(DMI_BOARD_NAME, "AURA1501")) + clevo_evaluate_method(0x79, 0x19000002, NULL); + return 0; } EXPORT_SYMBOL(clevo_keyboard_init);