From 2462e85b70d7e16e14ad18de33e03567c3c27a04 Mon Sep 17 00:00:00 2001 From: chn Date: Sat, 16 Dec 2023 20:34:30 +0800 Subject: [PATCH] pc: disable XHCI wakeup --- modules/bugs/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/bugs/default.nix b/modules/bugs/default.nix index 8c3a1206..81ea1896 100644 --- a/modules/bugs/default.nix +++ b/modules/bugs/default.nix @@ -47,6 +47,10 @@ inputs: then echo LID0 > /proc/acpi/wakeup fi + if ${cat} /proc/acpi/wakeup | ${grep} XHCI | ${grep} -q enabled + then + echo XHCI > /proc/acpi/wakeup + fi ''; wantedBy = [ "multi-user.target" ]; };