hw/asus/a16: add asusd config and fan control

This commit is contained in:
Aly Raffauf 2024-11-29 16:56:03 -05:00
parent 8719561fed
commit 8cb14ee811

View file

@ -36,7 +36,79 @@
programs.rog-control-center.enable = true;
services = {
asusd.enable = true;
asusd = {
enable = true;
asusdConfig = ''
(
charge_control_end_threshold: 100,
panel_od: false,
boot_sound: false,
mini_led_mode: false,
disable_nvidia_powerd_on_battery: true,
ac_command: "",
bat_command: "",
throttle_policy_linked_epp: true,
throttle_policy_on_battery: Quiet,
change_throttle_policy_on_battery: true,
throttle_policy_on_ac: Balanced,
change_throttle_policy_on_ac: true,
throttle_quiet_epp: Power,
throttle_balanced_epp: BalancePower,
throttle_performance_epp: Performance,
)
'';
fanCurvesConfig = ''
(
profiles: (
balanced: [
(
fan: CPU,
pwm: (5, 25, 66, 96, 114, 147, 170, 204),
temp: (21, 54, 63, 66, 70, 73, 80, 95),
enabled: true,
),
(
fan: GPU,
pwm: (25, 45, 56, 81, 91, 124, 142, 173),
temp: (55, 60, 63, 66, 70, 73, 80, 95),
enabled: false,
),
],
performance: [
(
fan: CPU,
pwm: (6, 26, 79, 114, 147, 170, 204, 247),
temp: (27, 49, 60, 63, 65, 68, 71, 80),
enabled: true,
),
(
fan: GPU,
pwm: (6, 56, 66, 91, 124, 142, 173, 204),
temp: (48, 57, 60, 63, 65, 68, 71, 80),
enabled: true,
),
],
quiet: [
(
fan: CPU,
pwm: (4, 8, 40, 53, 79, 107, 107, 147),
temp: (17, 62, 71, 74, 77, 80, 80, 97),
enabled: true,
),
(
fan: GPU,
pwm: (2, 25, 35, 45, 66, 86, 86, 124),
temp: (65, 68, 71, 74, 77, 80, 80, 97),
enabled: false,
),
],
),
)
'';
};
supergfxd.enable = true;
};
}