No, the same command to sleep is executed. The sleep button is unconditional and immediate, while the sleep script only acts when conditions are met to put the system to sleep.
Thanks. Strange then that it doesn't have the same behavior when waking up. I'll activate the log maybe I can find out what's failing.
bonienl is there any difference between pressing the button "sleep" (manually sending the server to sleep) and letting the server go to sleep by itself?
The thing is if I manually set the server to sleep when it wakes up everything is working, if I let it sleep by itself when it wakes up a lot of stuff is not working properly.