From 0fc8777b760f2bef2c4d8b0974b2c9ebfad6c22c Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 29 Nov 2024 16:56:03 -0500 Subject: [PATCH] hw/asus/a16: add asusd config and fan control --- hwModules/asus/tuf/a16/amd-7030/default.nix | 74 ++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/hwModules/asus/tuf/a16/amd-7030/default.nix b/hwModules/asus/tuf/a16/amd-7030/default.nix index 423d1748..8eb20eae 100644 --- a/hwModules/asus/tuf/a16/amd-7030/default.nix +++ b/hwModules/asus/tuf/a16/amd-7030/default.nix @@ -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; }; }