Re: Execute script on ACPI resume
Broughton, Derek wrote:
I need to restart /etc/init.d/hotplug on resume from
pickup my USB mouse.
How do you do the suspend? If you use a script to suspend, then the script
itself is still running when you resume (ie, the script is just another
process that gets suspended). So something like:
echo 4 >/proc/acpi/sleep
Excellent. Yes, it seems to work correctly for me without the sleep
Thanks all (Derek and Andrew).
I still do not get any output in the /var/log/acpid for either the
suspend or resume, but I just suspend with a script in /usr/local/bin,
so you are right, it does not matter.
Perhaps I'll try turning on ACPI debug messages in the kernel to see if
that gets me any messages. I'll let you know if I try it and it produces