diff --git a/hosts/modules/gui/sxmo/default.nix b/hosts/modules/gui/sxmo/default.nix index a4de99fdc..bd38261f1 100644 --- a/hosts/modules/gui/sxmo/default.nix +++ b/hosts/modules/gui/sxmo/default.nix @@ -90,7 +90,7 @@ let suspend = pkgs.static-nix-shell.mkBash { pname = "sxmo_suspend.sh"; src = ./hooks; - pkgs = [ "util-linux" ]; + pkgs = [ "coreutils" "util-linux" ]; }; }; in diff --git a/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh b/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh index 90ab1cda2..57328f0f5 100755 --- a/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh +++ b/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p util-linux +#!nix-shell -i bash -p coreutils -p util-linux # yeah, this isn't technically a hook, but the hook infrastructure isn't actually # restricted to stuff that starts with sxmo_hook_ ... @@ -15,5 +15,7 @@ sxmo_log "calling suspend with suspend_time <$suspend_time>" rtcwake -m mem -s "$suspend_time" || exit 1 +cat /proc/net/rtl8723cs/wlan0/wowlan_last_wake_reason + sxmo_hook_postwake.sh