From: "Brandon B." Date: 2009-12-19T05:00:17+09:00 Subject: Re: Computer States > You probably want to access http://en.wikipedia.org/wiki/ACPI > How you do that is OS specific, since it's fairly lowlevel. A very > superficial search for "Ruby ACPI library" didn't produce any real hits, > so it might be that you have to go low level to call the Windows, Linux, > and Mac OS X APIs for ACPI. yea, i expected as much, which if fine, i just dont know how to go about doing so... maybe there is a way to send a "wake-up" packet to the ram, or nvram, and have it execute it from there at a given time? dont know too much about what can and cant be performed like that so, if im way off base, please forgive me. > However, it is my understanding that ACPI can't wake a computer from a > Hibernating/Suspend to Disk (ACPI S4) from within the sleep state. > Hope this helps at least a little. yea it has helped, thank you. i have found a linux wake up procedure that i might be able to tether to my needs, if it works #!/usr/bin/ruby require 'time' wake_time = Time.parse(ARGV[0]) wake_time += 24 * 60 * 60 if wake_time < Time.now File.open('/proc/acpi/alarm', 'w') {|f| f << wake_time.utc.strftime (%Y-%m-%d %H:%M:%S')} system('/etc/acpi/sleep.sh force') like i said, this is for linux, obviously, which if it works takes out one of my issues, but what i dont know is if there is anything like the above file locations for windows or mac? well, ill keep looking around, maybe i can dig up something else using this as a search tool, any additional help or advice is much appreciated. -- Posted via http://www.ruby-forum.com/.