ddcci patch not needed anymore (other workaround still needed)
Some checks failed
/ test (push) Failing after 56s
Some checks failed
/ test (push) Failing after 56s
This commit is contained in:
parent
88307f11d7
commit
ea7579024f
1 changed files with 3 additions and 14 deletions
|
@ -94,27 +94,16 @@
|
||||||
];
|
];
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [
|
||||||
"kvm-amd"
|
"kvm-amd"
|
||||||
"ddci"
|
"ddcci"
|
||||||
"ddcci-backlight"
|
"ddcci-backlight"
|
||||||
|
"i2c-dev" # needed?
|
||||||
];
|
];
|
||||||
|
|
||||||
# fix to support linux 6.8
|
boot.extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
|
||||||
# FIXME check https://github.com/NixOS/nixpkgs/pull/297430
|
|
||||||
boot.extraModulePackages = let
|
|
||||||
ddci-driver = config.boot.kernelPackages.ddcci-driver.overrideAttrs (_: {
|
|
||||||
patches = [
|
|
||||||
(pkgs.fetchpatch {
|
|
||||||
url = "https://gitlab.com/Sweenu/ddcci-driver-linux/-/commit/7f851f5fb8fbcd7b3a93aaedff90b27124e17a7e.patch";
|
|
||||||
sha256 = "sha256-Y1ktYaJTd9DtT/mwDqtjt/YasW9cVm0wI43wsQhl7Bg=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
});
|
|
||||||
in [ddci-driver];
|
|
||||||
|
|
||||||
systemd.services.ddcci = {
|
systemd.services.ddcci = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
sleep 20
|
|
||||||
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
|
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue