You can't "prevent" it from happening (after all hibernating / suspending is your choice) but depending on what software you use you should be able to run ACPI-related scripts when the machine powers on again. Check /etc/suspend* /etc/acpi*, /etc/pm* and other such related files or directories?
|