Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: About saving energie



Hi Peter,

On Mittwoch 28 Februar 2001 16:13 wrote Peter Funk:
> Unfortunately this seems to be a lot more complicated than I thought
> before. In /dev/nvram you see only a small subsection of the 128 byte CMos
> ram area modern RTCs have.  The Alarm time setting seems to be located at
> addresses 0x53, 0x54, 0x55, 0x56.  An area unaccessible using '/dev/nvram'.
> Due to lack of time I've to give up on this for the moment.

/dev/nvram is the wrong driver do this IHMO. Better try /dev/rtc. Have a look 
yourself:
  /usr/src/linux/include/rtc.h
& /usr/src/linux/drivers/char/rtc.c 

rtc.h includes already the appropriate IOCTL for setting the wakeup time, but 
there is no code dor this feature in rtc.c yet. Alternatively you can try to 
set the alarm time with this driver (IOCTL RTC_ALM_SET). This seems to be the 
same, but you can't set the date, only the wakeup time. 

Christian

Christian


> Regards, Peter


--- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index