Re: /qtopia/ alarm clock drains battery
looking at atd.c of shipped with debian's at: /* Main loop. Let's sleep for a specified interval, * or until the next job is scheduled, or until we get signaled. * After any of these events, we rescan the queue. * A signal handler setting term_signal will make sure there's * a clean exit. */ sigaction(SIGHUP, NULL, &act); act.sa_handler = sdummy; sigaction(SIGHUP, &act, NULL); so on sighup it wakes up, and run_loop is executed so it rereads its content again. Thus 'pkill -HUP atd' should be sufficient imho (didn't try though) On Thu, 07 Aug 2008, Sven Klomp wrote: > However, I don't know how I can tell atd to process new scripts > in /var/spool/at. Until now, I have to wait up to ten minutes before atd sets > the wake up time when a new script was written in /var/spool/at. -- .-. =-- /v\ = Keep in touch// \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User^^-^^[17] ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: /qtopia/ alarm clock drains battery
On Thursday 07 August 2008 20:35:20 Brian Wilson wrote: > > Some time ago in any of the openmoko lists someone proposed a solution > > for RTC wakeup. > > I will try searching for it later. A block diagram of what's in the > phone would be nice for this beginner. > I wonder if one of those is around. I know they are talking of > releasing schematics. I wrote at the devel list, how you can use atd for wake up the phone at a specific time: http://lists.openmoko.org/pipermail/devel/2008-July/000502.html However, I don't know how I can tell atd to process new scripts in /var/spool/at. Until now, I have to wait up to ten minutes before atd sets the wake up time when a new script was written in /var/spool/at. Another solution is direct ioctl calls. But you have to stop atd before, since it blocks /dev/rtc(o) Sven ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: /qtopia/ alarm clock drains battery
> smart arse answer. There is no BIOS. ;) Not intentionally -- just drawing an analogy as a means of exposition > Some time ago in any of the openmoko lists someone proposed a solution for > RTC wakeup. I will try searching for it later. A block diagram of what's in the phone would be nice for this beginner. I wonder if one of those is around. I know they are talking of releasing schematics. Brian ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: /qtopia/ alarm clock drains battery
Brian Wilson wrote: > Is there an easy way to suspend for a time period (say 8 hours) or set > a realtime clock to it wake up? I set BIOS this way on my desktop - > cron shuts it down at midnight and BIOS wakes up every morning at 7. > Works quite well to save power. smart arse answer. There is no BIOS. ;) Some time ago in any of the openmoko lists someone proposed a solution for RTC wakeup. -- Drucken Sie diese Mail bitte nur auf Recyclingpapier aus. Please print this mail only on recycled paper. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: /qtopia/ alarm clock drains battery
Is there an easy way to suspend for a time period (say 8 hours) or set a realtime clock to it wake up? I set BIOS this way on my desktop - cron shuts it down at midnight and BIOS wakes up every morning at 7. Works quite well to save power. On Thu, Aug 7, 2008 at 10:54 AM, Lorn Potter <[EMAIL PROTECTED]> wrote: > Yaroslav Halchenko wrote: >> if you decide to use alarm clock in the qtopia -- it would drain the >> battery much more rapidly. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: /qtopia/ alarm clock drains battery
Yaroslav Halchenko wrote: > if you decide to use alarm clock in the qtopia -- it would drain the > battery much more rapidly. Usually charge is sufficient for me to hold > for a day (24h) but with alarm it doesn't survive through the night -- I > wake up and phone is dead :-/ > the clock only uses 'at' to set the alarm. So the problem would be with atd and friends. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
/qtopia/ alarm clock drains battery
if you decide to use alarm clock in the qtopia -- it would drain the battery much more rapidly. Usually charge is sufficient for me to hold for a day (24h) but with alarm it doesn't survive through the night -- I wake up and phone is dead :-/ -- .-. =-- /v\ = Keep in touch// \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User^^-^^[17] ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community