Help - Search - Members - Calendar
Full Version: Rtc Alarm Not Worked In Rc 10
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
SSG
Hi dear All!

int fd, retval;
unsigned long data;
struct rtc_time rtc_tm;

/* Open runtime clock device */
fd = open ("/dev/rtc", O_RDONLY);

/* Enable alarm interrupts */
retval = ioctl(fd, RTC_AIE_ON, 0);

/* This blocks until the alarm ring causes an interrupt */
retval = read(fd, &data, sizeof(unsigned long));

In RC9 this code wakeup my Zaurus from suspend mode in given time, in RC10 this not worked - why?
pgas
what is returned by open ("/dev/rtc", O_RDONLY); ?

Maybe the /dev/rtc is opened by something else?

(I read something about this somewhere but I can't remember where;)
like hwclock called before etc..)

Oh if you are into this you might be intersted in this version of the atd daemon :
http://handhelds.org/cgi-bin/cvsweb.cgi/apps/atd/
SSG
Thanks for fast reply.
After installing nntp it's worked. I see later why.
(sorry my english)
trichmon
So you have writen a piece of code to wake up your zaurus out of suspend? Thats killer , would you mind sharing it, and how you use it?

Todd
SSG
QUOTE(trichmon @ May 29 2005, 03:16 PM)
So you have writen a piece of code to wake up your zaurus out of suspend?  Thats killer , would you mind sharing it, and how you use it?

Todd
*


for the time being it only simple and little daemon wakeup zaurus and play sound.

need interface for editing and store alarm time.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.