Date: Sat, 14 Feb 2009 19:38:58 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-hardware@FreeBSD.ORG, won.derick@yahoo.com Subject: Re: Hardware clock is not SYNC'ed with kernel clock by ntpdate? Message-ID: <200902141838.n1EIcwQX009259@lurza.secnetix.de> In-Reply-To: <800496.48763.qm@web45816.mail.sp1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Won De Erick <won.derick@yahoo.com> wrote: > This file /etc/wall_cmos_clock was missing, so I created an empty one. So you _do_ want to run your CMOS clock at local time instead of UTC? That is only required if you run a different OS on the same machine (dual-boot), because Windows expects the CMOS clock to run at local time. Otherwise, if FreeBSD is the only OS on that machine, it's better to let the CMOS clock run at UTC (i.e. do not create /etc/wall_cmos_clock), because it avoids all the switching back and forth between time zones, and adjkerntz(8) doesn't have to run all the time. As far as ntpd is concerned, it doesn't matter. ntpd doesn't care about time zones. It always works on UTC internally and synchronizes the time that way (otherwise there would be additional complexities using NTP servers in different time zones). Even the kernel doesn't care about time zones. Handling time zones is done in the libc (userland). So, basically, if a program like date(1) displays the time, it converts UTC to your local time zone for you. > However, how should I make this automatic, something that will update > the CMOS clock everytime the kernel clock is syncronized with a NTP > server? Do I need to make changes on the variables below? You seem to misunderstand. The CMOS clock _is_ always updated when you run ntpd. You do not have to change anything. The only question is at which time zone the CMOS clock runs, as I've explained above. If your CMOS clock runs at UTC (recommended if FreeBSD is the only OS on that machine), then the BIOS will always display a wrong time, because the BIOS doesn't know your time zone, so it can't convert from UTC to your time zone. But that's purely a cosmetical issue. You can ignore that. Your CMOS clock _is_ synchronized and runs correctly. Only your BIOS doesn't know how to display it correctly. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The ITU has offered the IETF formal alignment with its corresponding technology, Penguins, but that won't fly." -- RFC 2549
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902141838.n1EIcwQX009259>