18 lines
495 B
Bash
Executable File
18 lines
495 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -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_ ...
|
|
#
|
|
# this script is only called by sxmo_autosuspend, which is small, so if i wanted to
|
|
# be more proper i could instead re-implement autosuspend + integrations.
|
|
|
|
suspend_time=300
|
|
|
|
echo "calling suspend for duration: $suspend_time"
|
|
|
|
rtcwake -m mem -s "$suspend_time" || exit 1
|
|
|
|
sxmo_hook_postwake.sh
|
|
|