Changes
1 changed files (+4/-1)
-
-
@@ -135,9 +135,12 @@before = [ "sleep.target" ]; # Alternatively I could use a udev rule but it's less transparent and harder to debug # Make sure we kill fprintd first and ignore errors since I suspect fprintd disables USB persist when it quits # Then make the persist file read-only # This solves the race condition where fprintd starts after kill-fprintd right before sleep script = '' ${pkgs.killall}/bin/killall fprintd || true echo 1 > /sys/bus/usb/devices/3-3/power/persist echo 1 > /sys/bus/usb/devices/3-3/power/persist || true chmod 444 /sys/bus/usb/devices/3-3/power/persist ''; };
-