sxmo: override the postwake handler
This commit is contained in:
parent
2d98bbf4d6
commit
07c3fd8941
|
@ -108,6 +108,7 @@ in
|
||||||
default = {
|
default = {
|
||||||
"sxmo_hook_start.sh" = ./hooks/sxmo_hook_start.sh;
|
"sxmo_hook_start.sh" = ./hooks/sxmo_hook_start.sh;
|
||||||
"sxmo_hook_inputhandler.sh" = ./hooks/sxmo_hook_inputhandler.sh;
|
"sxmo_hook_inputhandler.sh" = ./hooks/sxmo_hook_inputhandler.sh;
|
||||||
|
"sxmo_hook_postwake.sh" = ./hooks/sxmo_hook_postwake.sh;
|
||||||
};
|
};
|
||||||
description = ''
|
description = ''
|
||||||
extra hooks to add with higher priority than the builtins
|
extra hooks to add with higher priority than the builtins
|
||||||
|
|
6
hosts/modules/gui/sxmo/hooks/sxmo_hook_postwake.sh
Normal file
6
hosts/modules/gui/sxmo/hooks/sxmo_hook_postwake.sh
Normal 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.
|
Loading…
Reference in New Issue
Block a user