Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-26-2007, 01:11 AM
|
#1
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 246
Rep:
|
System Auto-boot on a schedule (or something similiar)
I am looking for a method to make my Linux system startup at a specify time. If this cannot be done from a cold boot, can the system wake up from hibernation or sleep? My goal is to have the hard drives not spinning so it will be quieter while it is not being used. Optimally I would love to have the system-fans and the CPU fans no spinning either until needed. Can anyone think of a way to do this?
Extra details:
I have a dedicated linux machine using MythTV that records every morning around 5:30 am. I leave the machine on during the night so it can record in the early morning, but it makes a fair amount of noise. I have a cron-job set to turn off the machine after it finishes recording. Optimally I would like the machine to boot up just before it has to record.
|
|
|
|
04-26-2007, 06:03 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"Optimally I would like the machine to boot up just before it has to record."
Put this command in cron:
shutdown -r now
see:
man shutdown
------------------
Steve Stites
|
|
|
|
04-26-2007, 06:10 PM
|
#3
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 246
Original Poster
Rep:
|
Quote:
|
Originally Posted by jailbait
"Optimally I would like the machine to boot up just before it has to record."
Put this command in cron:
shutdown -r now
see:
man shutdown
|
Jailbait, I am not sure whether you are trying to be funny or that you simply did not read my post. That is completely opposite of what I am want and it is not helpful at all. I do not need to shutdown the computer on time. I can already that. I need to START the computer on a specified time.
|
|
|
|
04-26-2007, 06:15 PM
|
#4
|
|
Senior Member
Registered: Oct 2004
Posts: 1,188
Rep: 
|
IIRC some bios's support booting the computer at a specified time, check your bios to see if it has that functionality
|
|
|
|
04-26-2007, 06:15 PM
|
#5
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"can the system wake up from hibernation or sleep?"
Yes. Have cron issue this command at the required time:
shutdown -r now
The system will shut down and restart.
----------------------
Steve Stites
|
|
|
|
04-26-2007, 06:55 PM
|
#6
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 246
Original Poster
Rep:
|
Quote:
|
Originally Posted by jailbait
"can the system wake up from hibernation or sleep?"
Yes. Have cron issue this command at the required time:
shutdown -r now
The system will shut down and restart.
|
I see. Thank you. I did not understand your answer before. But I am still a little confused.
If ran the command 'shutdown -t now -r 05:20', the system would shutdown and reboot at 05:20? Or does the system have to put into hibernation and this command added to cron?
BTW, what's the command to put a system into hibernation mode?
|
|
|
|
04-27-2007, 11:15 AM
|
#8
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"If ran the command 'shutdown -t now -r 05:20', the system would shutdown and reboot at 05:20?"
You would get an error message because you specified the time of the shutdown twice, now and at 05:20. The restart happens immediately at the end of the shutdown without any time delay.
"BTW, what's the command to put a system into hibernation mode?"
Here is a decent explanation of how to go into hibernation mode:
http://www.linux.com/article.pl?sid=06/05/24/1716222
------------------------
Steve Stites
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|