ATX standby

Is there a way to detect when user press power button to put system to
standby? I’d like to run some commands before system goes standby.


Ricardo K. Ashikawa