A little tweak I use. You can set the inactivity period to poweroff your machine in Puppy Event Manager (from menu). I don't want to poweroff this way but want to suspend to ram instead. So I searched for the relevant script and changed the poweroff command to my suspend command. In Bionic 32-bit this is /usr/local/pup_event/pup_event_timeout60 (will probably be different for other Puppys). I replaced the wmpoweroff command with my suspend command ie. echo mem > /sys/power/state
I can set the time interval in the Puppy Event Manager (Power tab) the usual way but instead of power down my machine now suspends to ram.
PS: I've made a utility for this and other functions. See my signature for link to nicOS-PowerTimeout utility.