Updating and displaying CMOS clock

RW rwmaillists at googlemail.com
Mon Jul 7 13:40:42 UTC 2014


On Mon, 7 Jul 2014 15:15:34 +0200 (CEST)
Trond Endrestøl wrote:

> On Mon, 7 Jul 2014 13:08+0100, RW wrote:
> 
> > On Sun, 6 Jul 2014 22:32:07 +0700
> > Victor Sudakov wrote:
> > 
> > 
> > > And no, contrary to popular belief, the correction of the CMOS
> > > clock does not happen automatically in FreeBSD even if ntpd is
> > > running.
> > 
> > Are you sure about that? That used to be the case, but I thought it
> > was fixed in 10-CURRENT.
> > 
> > I haven't set my hardware clock manually in more than a year, and
> > it's out by less than a second.
> 
> Check out /etc/crontab and the execution of adjkerntz(8).
> 

I run my RTC on UTC so there's no need for adjkerntz ever to change it.
Even if it did it would have been set over 3 months ago, and it's pretty
unlikely that the RTC would still be accurate to 1 second.

As I mentioned in my follow-up it's actually being set every 30
minutes by the kernel. I was pretty sure that someone had worked on a
fix for this, but I wasn't 100% certain that it had been committed -
until I saw the sysctl.


More information about the freebsd-questions mailing list