Fix ddcci workaround on picard

This commit is contained in:
Andrea Ciceri 2024-11-04 21:07:33 +01:00
parent e23c78fdb5
commit bd8e6a0715
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -35,7 +35,7 @@
"hass-poweroff" "hass-poweroff"
"forgejo-runners" "forgejo-runners"
"teamviewer" "teamviewer"
"macos-ventura" # "macos-ventura"
"sunshine" "sunshine"
"mount-sisko" "mount-sisko"
"adb" "adb"
@ -127,10 +127,15 @@
]; ];
systemd.services.ddcci = { systemd.services.ddcci = {
serviceConfig.Type = "oneshot";
script = '' script = ''
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
''; '';
wantedBy = [ "graphical.target" ];
restartIfChanged = false;
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
}; };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;