From ca71a1125658bd36e413084e4f9650adc5221926 Mon Sep 17 00:00:00 2001 From: Emre Cebi Date: Fri, 30 Jan 2026 03:00:13 +0100 Subject: [PATCH] machc-wa: updated the config to match up with the current common modules --- huawei/machc-wa/README.md | 4 +++- huawei/machc-wa/default.nix | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/huawei/machc-wa/README.md b/huawei/machc-wa/README.md index 27a1ccf0..a7674446 100644 --- a/huawei/machc-wa/README.md +++ b/huawei/machc-wa/README.md @@ -1,3 +1,5 @@ # Huawei Matebook X Pro (2020) -This is a very standard device that needs little configuration. The module mainly imports the common modules for its CPU, GPU, SSD etc. and enables ppd for power management. Nvidia prime offload is also enabled. This configuration should work with all Matebook X Pro models from 2020 (MACHC-WA*) other than MACHC-WAH9L as it does not contain the Nvidia GPU. \ No newline at end of file +This is a very standard device that needs little configuration. The module mainly imports the common modules for its CPU, GPU, SSD etc. and enables ppd for power management. Nvidia prime offload is also enabled. This configuration should work with all Matebook X Pro models from 2020 (MACHC-WA*) other than MACHC-WAH9L as it does not contain the Nvidia GPU. + +Please also take a look at the `hardware.nvidia.primeBatterySaverSpecialisation ` to disable the dGPU to save battery. diff --git a/huawei/machc-wa/default.nix b/huawei/machc-wa/default.nix index 6279843d..3e3e8711 100644 --- a/huawei/machc-wa/default.nix +++ b/huawei/machc-wa/default.nix @@ -7,22 +7,19 @@ { imports = [ ../../common/cpu/intel/comet-lake - ../../common/gpu/nvidia + ../../common/gpu/intel/comet-lake + ../../common/gpu/nvidia/pascal ../../common/gpu/nvidia/prime.nix - ../../common/hidpi.nix ../../common/pc/laptop ../../common/pc/ssd ]; hardware.nvidia = { modesetting.enable = lib.mkDefault true; - open = lib.mkDefault false; nvidiaSettings = lib.mkDefault true; prime = { intelBusId = "PCI:0:2:0"; nvidiaBusId = "PCI:1:0:0"; }; }; - - services.power-profiles-daemon.enable = lib.mkDefault true; }