From a6426241a5e003a6ff22ac24a896e43332d4a6cc Mon Sep 17 00:00:00 2001 From: Tom Vincent Date: Mon, 13 Nov 2023 22:32:05 +0000 Subject: [PATCH] feat(framework): add suspend udev hint --- framework/13-inch/7040-amd/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/13-inch/7040-amd/default.nix b/framework/13-inch/7040-amd/default.nix index 128ace8..2d98f17 100644 --- a/framework/13-inch/7040-amd/default.nix +++ b/framework/13-inch/7040-amd/default.nix @@ -31,6 +31,10 @@ services.udev.extraRules = '' # Ethernet expansion card support ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20" + + # Prevent wake when plugging in AC during suspend. Trade-off: keyboard wake disabled. See: + # https://community.frame.work/t/tracking-framework-amd-ryzen-7040-series-lid-wakeup-behavior-feedback/39128/45 + #ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled" ''; # Needed for desktop environments to detect/manage display brightness