From 7ff489741457ed9b16ba6634951c5040dda8a455 Mon Sep 17 00:00:00 2001 From: Adrian Pistol Date: Mon, 25 Mar 2024 13:18:44 +0100 Subject: [PATCH] linux/common-config: Enable PWM support Necessary to support the backlight on the GPD Pocket, GPD Win and several other devices. --- pkgs/os-specific/linux/kernel/common-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 7e47a07f9604..9bc74b4eb848 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -126,6 +126,9 @@ let # GPIO power management POWER_RESET_GPIO = option yes; POWER_RESET_GPIO_RESTART = option yes; + + # Enable Pulse-Width-Modulation support, commonly used for fan and backlight. + PWM = yes; } // optionalAttrs (stdenv.hostPlatform.isx86) { INTEL_IDLE = yes; INTEL_RAPL = whenAtLeast "5.3" module;