Hi peteren.
In your kernel, you need "Advanced power management" enabled (built into kernel) with the last option, apm power off call from BIOS (something like that.. not seen it for a while)
Compile this into your kernel, and you will notice that with an ATX power supply, your box will turn off by itself
Cheers
Duncan