mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Add XP14 to perf. profile workaround
This commit is contained in:
parent
4296f75372
commit
1e96de2c56
|
@ -772,13 +772,21 @@ struct tuxedo_keyboard_driver clevo_keyboard_driver_v2 = {
|
||||||
|
|
||||||
int clevo_keyboard_init(void)
|
int clevo_keyboard_init(void)
|
||||||
{
|
{
|
||||||
|
bool performance_profile_set_workaround;
|
||||||
|
|
||||||
tuxedo_keyboard_init_driver(&clevo_keyboard_driver_v2);
|
tuxedo_keyboard_init_driver(&clevo_keyboard_driver_v2);
|
||||||
|
|
||||||
// Workaround for firmware issue not setting selected performance profile.
|
// Workaround for firmware issue not setting selected performance profile.
|
||||||
// Explicitly set "performance" perf. profile on init regardless of what is chosen
|
// Explicitly set "performance" perf. profile on init regardless of what is chosen
|
||||||
// for this device (Aura)
|
// for these devices (Aura, XP14)
|
||||||
if (dmi_match(DMI_BOARD_NAME, "AURA1501"))
|
performance_profile_set_workaround = false
|
||||||
|
|| dmi_match(DMI_BOARD_NAME, "AURA1501")
|
||||||
|
|| dmi_match(DMI_BOARD_NAME, "NV4XMB,ME,MZ")
|
||||||
|
;
|
||||||
|
if (performance_profile_set_workaround) {
|
||||||
|
TUXEDO_INFO("Performance profile 'performance' set workaround applied\n");
|
||||||
clevo_evaluate_method(0x79, 0x19000002, NULL);
|
clevo_evaluate_method(0x79, 0x19000002, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue