Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-19-2008, 10:26 AM   #1
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,968

Rep: Reputation: 159Reputation: 159
Question Standby (power saving) and scripts/batch jobs

No, I am not going to ask about issues with getting the PC to go into or out of standby (suspend). There is more than enough discussion of that topic and someday I hope it will be a non-issue. Trusting that that day will come...

Can a Linux PC be put into and waken out of standby with a shell script scheduled with cron? When running Windows I can schedule a job which will wake the PC, do some work such as making backups, virus and malware scanning, free space wiping etc. and then put the PC back in standby for power saving purposes.

Does this sort of methodology exist in the Linux world?



Last edited by taylorkh; 05-19-2008 at 05:11 PM.
Old 05-20-2008, 04:22 AM   #2
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
You can schedule wake-ups by properly settings the BIOS and then having a script executed on power-up, or you can make use of ACPI-wakeup. The problem is that it is a bit dependent on your kernel version, I used to have /proc/acpi/alarm and it now disappeared on my system... anyway I found this good reference:

The main problem is, there is not a daemon or program that does this all automatically, although it is not very difficult to write down your own script.
Old 05-20-2008, 08:01 AM   #3
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,968

Original Poster
Rep: Reputation: 159Reputation: 159
Thanks clvic,

I guess ACPI is a topic I need to become educated in.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Power-saving power extension cables? (UK) neocookie General 3 03-28-2007 02:53 PM
LXer: Access z/OS batch jobs from Java LXer Syndicated Linux News 0 01-13-2007 01:21 PM
limits for batch/at jobs? bigearsbilly Solaris / OpenSolaris 2 03-09-2006 09:30 AM
Java Shell / Batch Scripts GenericProdigy Programming 4 11-18-2004 09:00 AM
Writing Scripts or Batch files? Nicksan Linux - Software 1 06-29-2003 11:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration