mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-31 15:27:13 +02:00
fix(idols-ai): reset camera after resume
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
disko,
|
disko,
|
||||||
myvars,
|
myvars,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
#############################################################
|
#############################################################
|
||||||
@@ -43,6 +44,12 @@ in
|
|||||||
services.sunshine.enable = false;
|
services.sunshine.enable = false;
|
||||||
services.tuned.ppdSettings.main.default = lib.mkForce "performance";
|
services.tuned.ppdSettings.main.default = lib.mkForce "performance";
|
||||||
|
|
||||||
|
powerManagement.resumeCommands = ''
|
||||||
|
# Insta360 Link may stay enumerated with a stalled UVC endpoint after S3 resume.
|
||||||
|
${pkgs.coreutils}/bin/sleep 1
|
||||||
|
${pkgs.usbutils}/bin/usbreset 2e1a:4c01 || true
|
||||||
|
'';
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
inherit hostName;
|
inherit hostName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user