LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 04-26-2007, 01:11 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
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.
 
Old 04-26-2007, 06:03 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 176Reputation: 176
"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
 
Old 04-26-2007, 06:10 PM   #3
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
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.
 
Old 04-26-2007, 06:15 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
IIRC some bios's support booting the computer at a specified time, check your bios to see if it has that functionality
 
Old 04-26-2007, 06:15 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 176Reputation: 176
"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
 
Old 04-26-2007, 06:55 PM   #6
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
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?
 
Old 04-27-2007, 12:07 AM   #7
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Well I have tried several things and I still have nothing that will work for my machine.

I tried ACPI Wake.
https://help.ubuntu.com/community/My...tNext/ACPIWake

I tried NVRam-wakeup. I even tried some weird Poweroff Kernel.
https://help.ubuntu.com/community/My...783aba52952cfe

I would love any suggestions.
 
Old 04-27-2007, 11:15 AM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 176Reputation: 176
"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
 
  


Reply

Tags
auto, booting, hibernation, sleep, standby


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Program similiar to dameware phatbastard Linux - Software 6 09-19-2012 03:25 PM
Dual boot Linux with Windows AS PER TIME SCHEDULE bestguy Linux - General 3 02-13-2006 01:43 PM
Similiar to MAYA zenchicken Linux - Software 4 09-29-2005 10:45 PM
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 09:10 AM
How to schedule a firewall to lockdown the system out of office hours? wolfpeach Linux - Security 5 07-20-2004 10:43 AM


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

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