Merge pull request #88942 from peterhoeg/m/kde_ddc
powerdevil: add DDC support
This commit is contained in:
commit
ad0df8414e
@ -158,6 +158,19 @@ in
|
|||||||
example = "vlc";
|
example = "vlc";
|
||||||
description = "Phonon audio backend to install.";
|
description = "Phonon audio backend to install.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
supportDDC = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Support setting monitor brightness via DDC.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This is not needed for controlling brightness of the internal monitor
|
||||||
|
of a laptop and as it is considered experimental by upstream, it is
|
||||||
|
disabled by default.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -184,6 +197,12 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# DDC support
|
||||||
|
boot.kernelModules = lib.optional cfg.supportDDC "i2c_dev";
|
||||||
|
services.udev.extraRules = lib.optionalString cfg.supportDDC ''
|
||||||
|
KERNEL=="i2c-[0-9]*", TAG+="uaccess"
|
||||||
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; with qt5; with libsForQt5; with plasma5; with kdeApplications;
|
environment.systemPackages = with pkgs; with qt5; with libsForQt5; with plasma5; with kdeApplications;
|
||||||
[
|
[
|
||||||
frameworkintegration
|
frameworkintegration
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
extra-cmake-modules, kdoctools,
|
extra-cmake-modules, kdoctools,
|
||||||
bluez-qt, kactivities, kauth, kconfig, kdbusaddons, kdelibs4support,
|
bluez-qt, kactivities, kauth, kconfig, kdbusaddons, kdelibs4support,
|
||||||
kglobalaccel, ki18n, kidletime, kio, knotifyconfig, kwayland, libkscreen,
|
kglobalaccel, ki18n, kidletime, kio, knotifyconfig, kwayland, libkscreen,
|
||||||
networkmanager-qt, plasma-workspace, qtx11extras, solid, udev
|
ddcutil, networkmanager-qt, plasma-workspace, qtx11extras, solid, udev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
@ -13,5 +13,9 @@ mkDerivation {
|
|||||||
kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth
|
kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth
|
||||||
kdelibs4support kglobalaccel ki18n kio kidletime kwayland libkscreen
|
kdelibs4support kglobalaccel ki18n kio kidletime kwayland libkscreen
|
||||||
networkmanager-qt plasma-workspace qtx11extras
|
networkmanager-qt plasma-workspace qtx11extras
|
||||||
|
ddcutil
|
||||||
|
];
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DHAVE_DDCUTIL=On"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user