A follow up to my previous question here: Run a Script when Power Button is Pushed
So I am able to detect ACPI events and I intercept the power button press appropriately, however there is an indeterminate amount of time between the power button being pressed and the script actually running. In some cases, there is a minute-long delay between when I physically push the button and when the script gets run. In others, the script runs almost immediately after I press the button.
What could cause such a delay in the event propagation?