sxmo: override the postwake handler

This commit is contained in:
Colin 2023-09-23 09:17:21 +00:00
parent 2d98bbf4d6
commit 07c3fd8941
2 changed files with 7 additions and 0 deletions

View File

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

View File

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