hi friends,
i use following command-line in my ~/.xsession or ~/.xinitrc
xautolock -detectsleep -time 8 -locker "/usr/local/bin/dorm" &
/usr/local/bin/dorm
#!/bin/sh
sleep 1
vt='/usr/bin/fgconsole'
### i had to remove my sound-modules before the suspend-to-ram
sudo rmmod oss_ich
sudo rmmod oss_usb
sudo rmmod oss_hdaudio
sudo rmmod osscore
sudo s2ram --force --vbe_save
/usr/bin/chvt $vt
sleep 1
### and to reload the sound-modules after the suspend-to-ram
sudo modprobe osscore
sudo modprobe oss_hdaudio
sudo modprobe oss_usb
sudo modprobe oss_ich
as an alternative you could choose "sudo shutdown -h now" under normal conditions, but with busybox you probably need something like "sudo poweroff", instead of my suspend-to-ram-script.
it worked flawless until 4.7.7, but later suspend-to-ram was broken for my configuration and my hardware-setup