Joined: 13 Nov 2011 Posts: 2122 Location: Cradle of Humankind
Posted: Tue 18 Apr 2017, 04:40 Post subject:
Automatically suspend machine after period of inactivity
Select the time interval under the Power tab in Puppy Event Manager (accessed via menu) > open /sbin/pup_event_frontend_d script with geany (right-click on file, select open as text) > search tab > replace submenu > replace && wmpoweroff in the document with && [your suspend command]. I use echo mem > /sys/power/state to suspend to RAM, echo disk.... will suspend to disk if you have a swapfile/folder. You can also use acpitool -s if you have acpitool installed.
NB: The script to be edited may be in a different location for your Puppy. The above is for Racy (and probably older Puppys). In Tahr the script is in /usr/local/pup_event/frontend_timeout
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum