Forced hibernation OR run program w/ Power button
I need my computer to do a forced hibernation, can I activate that some how? I have a program that prevents the computer to hibernate but I also have a program that monitors the hibernationfunktion and halt the process when it's started and then shut down the program and then continues w/ the hibernation. At resume the program starts again normally. But hibernation don't even start so the hibernation never begins and the other program can't shut down the program.. By using forced hibernation I think it will work. How can I activate forced hibernation?
When I (or the M3-ATX PSU) press the power button I want a program to run, a script that exit the program then hibernates the computer. I have made the script but can't find a solution for how to start the script w/ the power button.
Best regards L. Kull, Sweden