Re: Using RTC for wake up

2008-07-31 Thread Sven Klomp
On Wednesday 30 July 2008 16:24:02 Holger Freyther wrote: > On Wednesday 30 July 2008 15:44:06 Sven Klomp wrote: > > On Wednesday 30 July 2008 13:57:29 Holger Freyther wrote: > > > with ASU atd is running and you can schedule execution of programs by > > > placing files in a certain directory (take

Re: Using RTC for wake up

2008-07-30 Thread Werner Almesberger
Richard Purdie wrote: > See http://www.rpsys.net/openzaurus/temp/tests/rtctest.c for some > example alarm usage code. Or http://svn.openmoko.org/developers/werner/ahrt/target/wkalrm/ (I used that one to actually wake up devices from suspend.) - Werner

Re: Using RTC for wake up

2008-07-30 Thread Richard Purdie
On Wed, 2008-07-30 at 16:24 +0200, Holger Freyther wrote: > On Wednesday 30 July 2008 15:44:06 Sven Klomp wrote: > > On Wednesday 30 July 2008 13:57:29 Holger Freyther wrote: > > > On Wednesday 30 July 2008 11:22:44 Sven Klomp wrote: > > > > some time ago I heard that the realtime clock can be used

Re: Using RTC for wake up

2008-07-30 Thread Holger Freyther
On Wednesday 30 July 2008 15:44:06 Sven Klomp wrote: > On Wednesday 30 July 2008 13:57:29 Holger Freyther wrote: > > On Wednesday 30 July 2008 11:22:44 Sven Klomp wrote: > > > some time ago I heard that the realtime clock can be used to wake up > > > the CPU from supend: > > > http://lists.openmoko

Re: Using RTC for wake up

2008-07-30 Thread Sven Klomp
On Wednesday 30 July 2008 13:57:29 Holger Freyther wrote: > On Wednesday 30 July 2008 11:22:44 Sven Klomp wrote: > > some time ago I heard that the realtime clock can be used to wake up the > > CPU from supend: > > http://lists.openmoko.org/pipermail/community/2008-February/013366.html > > > > Howe

Re: Using RTC for wake up

2008-07-30 Thread Holger Freyther
On Wednesday 30 July 2008 11:22:44 Sven Klomp wrote: > Hello, > > some time ago I heard that the realtime clock can be used to wake up the > CPU from supend: > http://lists.openmoko.org/pipermail/community/2008-February/013366.html > > However, I couldn't find an further information. How can I set

Re: Using RTC for wake up

2008-07-30 Thread Michael 'Mickey' Lauer
sysfs contains an infrastructure for setting the wakeup time, but it doesn't work for our architecture (see openmoko-kernel / bug tracker for the gory details). You have to use the RTC ioctl interface, this one works fine. (FSO offers a dbus API to do that) -- :M: ___

Using RTC for wake up

2008-07-30 Thread Sven Klomp
Hello, some time ago I heard that the realtime clock can be used to wake up the CPU from supend: http://lists.openmoko.org/pipermail/community/2008-February/013366.html However, I couldn't find an further information. How can I set PMU to wake up the CPU based on the clock? Is there any sysfs f