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.
This commit is contained in:
Christoffer Sandberg 2021-01-29 14:34:49 +01:00
parent 7ad2c50d1f
commit e38fe87fad
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -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);