powertop overrides

This commit is contained in:
Tao Tien 2024-03-25 17:18:38 -07:00
parent c740fdf21c
commit a4ab59a9d9

View file

@ -26,9 +26,7 @@ in {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = "yes"; RemainAfterExit = "yes";
ExecStart = "${pkgs.powertop}/bin/powertop --auto-tune"; ExecStart = "${pkgs.powertop}/bin/powertop --auto-tune";
ExecStartPost = " ExecStartPost = "/bin/sh -c 'for f in $(grep -l \"Keyboard\" /sys/bus/usb/devices/*/product | sed \"s/product/power\\\\/control/\"); do echo on >| '$f'; done'";
/bin/sh -c 'for f in $(grep -l 'Keyboard' /sys/bus/usb/devices/*/product | sed \"s/product\\\\power/control/\"); do echo on >| '$f'; done'
";
}; };
}; };