I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this? I would like to conserve power since most of the time, the computer facilities are not needed. -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 April 2007 10:08, Joseph Loo wrote:
I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this?
I don't think a software solution is possible. You probably need some kind of timer hardware that can issue the necessary wake-up inducing signals. A conventional desktop (or laptop) system that is hibernating is basically shut down. All the state required to reawaken it has been migrated to mass storage. Awakening from hibernation is more like a full startup except that instead of creating a system context from scratch by loading the kernel and init (as is done when rebooting), the system re-establishes the state that was in effect when hibernation began. I'd look for a mainboard and / or BIOSes that has a programmable wake-up timer.
... -- Joseph Loo
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2007-04-22 at 10:23 -0700, Randall R Schulz wrote:
On Sunday 22 April 2007 10:08, Joseph Loo wrote:
I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this?
I don't think a software solution is possible. You probably need some kind of timer hardware that can issue the necessary wake-up inducing signals. A conventional desktop (or laptop) system that is hibernating is basically shut down. All the state required to reawaken it has been migrated to mass storage. Awakening from hibernation is more like a full startup except that instead of creating a system context from scratch by loading the kernel and init (as is done when rebooting), the system re-establishes the state that was in effect when hibernation began.
But there are exceptions: "wake on lan" ethernet cards. The card has to be powered, at least, and I'm not sure if it will work with disk hypernation, or only with suspended to memory mode. An alternative, is to connect a wake up line to the other computer, having a binary outuput card close a relay in parallel with power on switch - the normal power on/off button doesn't really disconnect the power, you know, so this would not be handling mains current.
I'd look for a mainboard and / or BIOSes that has a programmable wake-up timer.
I wonder if there could be a way to program this from inside Linux? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGK6K8tTMYHG2NR9URAio1AKCJZjfnTrZd+ylkB2fThN0Jq3ZghQCeI/wQ wNAmZbBMiev01nwEB5oQXUM= =NJ8u -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 April 2007 11:00, Carlos E. R. wrote:
The Sunday 2007-04-22 at 10:23 -0700, Randall R Schulz wrote:
On Sunday 22 April 2007 10:08, Joseph Loo wrote:
I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this?
I don't think a software solution is possible. You probably need some kind of timer hardware that can issue the necessary wake-up inducing signals. ...
But there are exceptions: "wake on lan" ethernet cards. The card has to be powered, at least, and I'm not sure if it will work with disk hypernation, or only with suspended to memory mode.
An alternative, is to connect a wake up line to the other computer, having a binary outuput card close a relay in parallel with power on switch - the normal power on/off button doesn't really disconnect the power, you know, so this would not be handling mains current.
All those things are, as I said, hardware-driven or -dependent.
I'd look for a mainboard and / or BIOSes that has a programmable wake-up timer.
I wonder if there could be a way to program this from inside Linux?
If the BIOS or some mainboard or compatible add-in hardware can produce the necessary wake-up conditions (and whatever other hardware requirements there are for resuming from hibernation are met), then almost certainly a driver could be written to convey the desired wake-up time settings to that timer hardware. On top of that a simple command-line tool and / or library routine to open that custom driver, issue the necessary ioctls for setting and reading the timer(s) and you've got all you need.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 April 2007, Joseph Loo wrote:
I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this?
These facilities are built into MythTV as long as you have some support in the bios for it. Myth will wake it in time for it to boot and stabilize the OS prior to recording. -- _____________________________________ John Andersen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 22 April 2007, John Andersen wrote:
On Sunday 22 April 2007, Joseph Loo wrote:
I am thinking of building a myth tv system. I want to hibernate my computer when it is not in use but wake up when it needs to start recording or to use the box. Are there any programs or facilities that allow this?
These facilities are built into MythTV as long as you have some support in the bios for it. Myth will wake it in time for it to boot and stabilize the OS prior to recording.
http://www.mythtv.org/docs/mythtv-HOWTO-11.html#ss11.5 11.5 Using Shutdown/Wakeup What does the MythTV Shutdown/Wakeup function do? The scheduler on the Master backend (MBE) keeps track of the idle status of the entire MythTV system, including the Slave backends (SBE). If it considers the system to be idle, and thus ready to shutdown, it sets the wakeuptime to the time of the next recording and then proceeds to shut down all Slave backends and then itself. Once it is time to begin recording, the Master backend and the Slave Backends are automatically woken up. This system allows MythTV to record like a normal VCR, thereby conserving power when not in active use. In order to use the Shutdown/Wakeup function there must be some method of waking up the Master backend. There are any number of solutions, but we will discuss in detail two possibilities: Use another server that runs 24/7 and have it send a WakeOnLAN (WOL) packet to wake the Master backend. This assumes that you have the WOL tools installed, and that your Master backend motherboard supports WOL. Use your motherboard's BIOS wakeup capability. You'll need a motherboard that supports BIOS wakeup, and some tools. Two that work are: http://sourceforge.net/projects/nvram-wakeup and http://www.malloc.de/tools/wakeup_clock.html -- _____________________________________ John Andersen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
John Andersen
-
Joseph Loo
-
Randall R Schulz