Mailing List archive

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

[linux-dvb] Re: About saving energie



>g 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. 

Last weekend I have written a small program to set the alarm registers of
the RTC, it worked fine, the interrupt was triggered exactly at the time
set, but whenever I shut down the PC, the alarm registers were overwritten
with the values in the BIOS (before the PC was switched off).
Of course the reason for this could be my BIOS and it could behave
differently with your BIOS.

I could post this little program here (it's really just a few lines) and so
everybody could try it out.

Ralf.


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



Home | Main Index | Thread Index