Broughton, Derek wrote:
dircha wrote:
I need to restart /etc/init.d/hotplug on resume from
suspend-to-disk to
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:
#!/bin/sh
echo 4 >/proc/acpi/sleep
sleep 5
/etc/init.d/hotplug restart
Excellent. Yes, it seems to work correctly for me without the sleep
statement.
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
results.
dircha