sxmo: suspend: dump wowlan_last_wake_reason on wakeup
This commit is contained in:
parent
346ca57c93
commit
3e7fc56c86
|
@ -90,7 +90,7 @@ let
|
||||||
suspend = pkgs.static-nix-shell.mkBash {
|
suspend = pkgs.static-nix-shell.mkBash {
|
||||||
pname = "sxmo_suspend.sh";
|
pname = "sxmo_suspend.sh";
|
||||||
src = ./hooks;
|
src = ./hooks;
|
||||||
pkgs = [ "util-linux" ];
|
pkgs = [ "coreutils" "util-linux" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/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
|
# yeah, this isn't technically a hook, but the hook infrastructure isn't actually
|
||||||
# restricted to stuff that starts with sxmo_hook_ ...
|
# 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
|
rtcwake -m mem -s "$suspend_time" || exit 1
|
||||||
|
|
||||||
|
cat /proc/net/rtl8723cs/wlan0/wowlan_last_wake_reason
|
||||||
|
|
||||||
sxmo_hook_postwake.sh
|
sxmo_hook_postwake.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user