Linked by Dedoimedo on Wed 8th Dec 2010 17:40 UTC
Linux Here's the latest in our new series on OS tips from power users: a seemingly trivial task. You have a computer, most likely a laptop, that you wish to keep suspended while you're not working. For example, let's say overnight. At the same time, you wish to run a handful of maintenance tasks, like backups and cleanup, which you don't normally do during the day. So you need a mechanism that will send your machine to sleep, wake it up when necessary, run cron jobs, then send it back to sleep again.
Thread beginning with comment 452939
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Suspend
by WereCatf on Thu 9th Dec 2010 09:36 UTC in reply to "Suspend"
WereCatf
Member since:
2006-02-15

What if it's a laptop that is configured to suspend when lid is closed - and the lid is closed at the alarm time?

When the lid is closed it emits a signal triggering the suspend. But if the lid is already closed when the machine is powered on it won't emit a signal. The system could of course poll for the state of the lid but as far as I know no sane Linux distro handles it that way.

Thus I'd say the system wakes up at specified time and does what it was supposed to, and keeps on running unless you added another suspend command at the end of the jobs.

Reply Parent Score: 2