diff --git a/hosts/modules/gui/sxmo/default.nix b/hosts/modules/gui/sxmo/default.nix index 64eaa447..97c44869 100644 --- a/hosts/modules/gui/sxmo/default.nix +++ b/hosts/modules/gui/sxmo/default.nix @@ -108,6 +108,7 @@ in default = { "sxmo_hook_start.sh" = ./hooks/sxmo_hook_start.sh; "sxmo_hook_inputhandler.sh" = ./hooks/sxmo_hook_inputhandler.sh; + "sxmo_hook_postwake.sh" = ./hooks/sxmo_hook_postwake.sh; }; description = '' extra hooks to add with higher priority than the builtins diff --git a/hosts/modules/gui/sxmo/hooks/sxmo_hook_postwake.sh b/hosts/modules/gui/sxmo/hooks/sxmo_hook_postwake.sh new file mode 100644 index 00000000..36f0bd0e --- /dev/null +++ b/hosts/modules/gui/sxmo/hooks/sxmo_hook_postwake.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# the default sxmo_postwake handler checks if the modem is offline +# and if so installs a wakelock to block suspend for 30s. +# that's a questionable place to install that logic, and i want to keep stuff +# out of the wake-from-sleep critical path, so i'm overriding this hook to disable that.