Poweron timer on iBook G3 (PPC_RTAS?)
I just noticed OS X allows to set a time at which the laptop
automatically turns on, this seems to correlate to the kernel option
"Support for RTAS (RunTime Abstraction Services) in /proc (PPC_RTAS)
[N/y/?]" which says "[...] if you power off your machine at night but
want it running when you enter your office at 7:45 am, do a
# date -d 'tomorrow 7:30' +%s > /proc/rtas/poweron and shutdown."
(from arch/ppc/Kconfig +750 in the 2.6 kernelsource, complete entry
Yet after compiling this into the kernel I have neither /proc/rtas/ nor
a /proc/device-tree/rtas so I wonder if there is another way to access
this variable e.g. via nvsetenv?
Or is there a general interface to this "hardware-wakeup"? IIRC some x86
bios also have a boottimer, yet i have never seen a userspace
interface to this...
bool "Support for RTAS (RunTime Abstraction Services) in /proc"
depends on PPC_OF && PROC_FS
When you use this option, you will be able to use RTAS from
RTAS stands for RunTime Abstraction Services and should
provide a portable way to access and set system information. This
is commonly used on RS/6000 (pSeries) computers.
You can access RTAS via the special proc file system entry rtas.
Don't confuse this rtas entry with the one in
/proc/device-tree/rtas which is readonly.
If you don't know if you can use RTAS look into
/proc/device-tree/rtas. If there are some entries, it is very
likely that you will be able to use RTAS.
You can do cool things with rtas. To print out information about
various sensors in the system, just do a
$ cat /proc/rtas/sensors
or if you power off your machine at night but want it running when
you enter your office at 7:45 am, do a
# date -d 'tomorrow 7:30' +%s > /proc/rtas/poweron
If unsure, say Y.