Re: PROBLEM: Linux updates RTC secretly when clock synchronizes

Kurt Roeckx (Q@ping.be)
Wed, 31 Oct 2001 02:05:38 +0100


On Wed, Oct 31, 2001 at 11:33:12AM +1100, Ian Maclaine-cross wrote:
>
> PROBLEM: Linux updates RTC secretly when clock synchronizes.
>
> When /usr/sbin/ntpd synchronizes the Linux kernel (or system) clock
> using the Network Time Protocol the kernel time is accurate to a few
> milliseconds. Linux then sets the Real Time (or Hardware or CMOS)
> Clock to this time at approximately 11 minute intervals. Typical RTCs
> drift less than 10 s/day so rebooting causes only millisecond errors.

This is all in the manpage, see man hwclock. If you use ntpd,
you probably don't want hwclock to adjust, just set the time.

Kurt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/