From a29f64c22f331e1a1c650d4289dd891303c3766e Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 16 Jun 2022 11:17:54 +0300 Subject: [PATCH] powerdevil: fix brightness wonkiness on some laptops See: https://bugs.kde.org/show_bug.cgi?id=454161 --- pkgs/desktops/plasma-5/powerdevil.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/desktops/plasma-5/powerdevil.nix b/pkgs/desktops/plasma-5/powerdevil.nix index 47551cedfb2c..df575fcb987a 100644 --- a/pkgs/desktops/plasma-5/powerdevil.nix +++ b/pkgs/desktops/plasma-5/powerdevil.nix @@ -9,6 +9,15 @@ mkDerivation { pname = "powerdevil"; nativeBuildInputs = [ extra-cmake-modules kdoctools ]; + patches = [ + # Backported fix for https://bugs.kde.org/show_bug.cgi?id=454161 + # FIXME: remove for next release + (fetchpatch { + name = "brightness-overflow-fix"; + url = "https://invent.kde.org/plasma/powerdevil/-/commit/2ebe655d220c9167b66893a823b2fff2e2b8a531.patch"; + sha256 = "sha256-Sf2q0CImLYjy1fTp9AWbCeRG05liUkemhfEXL/0MIQI="; + }) + ]; buildInputs = [ kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth kglobalaccel ki18n kio kidletime kwayland libkscreen