sxmo: suspend: dump wowlan_last_wake_reason on wakeup

This commit is contained in:
Colin 2023-10-08 04:20:52 +00:00
parent 346ca57c93
commit 3e7fc56c86
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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