Automatically suspend machine after period of inactivity

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

Automatically suspend machine after period of inactivity

#1 Post by nic007 »

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

Post Reply