From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 05:44:13 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97DD8DAD for ; Mon, 7 Jul 2014 05:44:13 +0000 (UTC) Received: from nm15.bullet.mail.ir2.yahoo.com (nm15.bullet.mail.ir2.yahoo.com [212.82.96.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E92ED2BB8 for ; Mon, 7 Jul 2014 05:44:12 +0000 (UTC) Received: from [212.82.98.53] by nm15.bullet.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 05:40:45 -0000 Received: from [46.228.39.79] by tm6.bullet.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 05:40:45 -0000 Received: from [127.0.0.1] by smtp116.mail.ir2.yahoo.com with NNFMP; 07 Jul 2014 05:40:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1404711645; bh=oESqFtifiGCinNCZ+gOiJqDMjXGTLdggYfF1DOSe0fQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Subject:From:To:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=JAtv5yT6DMhxRo5WacU6X7IG6wZFaGqpjoqFaZ/UySCTub5Darks5AzFp5dHWxA2RDSDJ/WWO+cX630v7Nk31g9Bu8D8MaOxg9P3DVowwOCsx7CgZtS7P2GRNjmPzSqlp1RbVvtHTqwnRt81hmFUiEphVt7M5i24fM1sJN3fVXY= X-Yahoo-Newman-Id: 131201.74463.bm@smtp116.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: EfTOfZUVM1lMdOyyIygAmHr4aqbR.wXDSPqN2QehZ_2Ixel 5tUWssUH4G0sybH3ry.18YbbAEIcVt1sqfjLCa0SBjyVOV5kSPjW1nDrEsUL pmiv6a9xQ09XOjySFZBTjDrKbYUnO8vsvrTy.iSPIoUQjI6noxOfYH17SYOj 2Flzdx804ffQfxqGRePY8uDMDxAR2ytIf8_xNIRyIyEXMtpJ530XxlUAcORw lkoBDVH6iUzmFwHhIIgQ2TQWIl3TfGp3HtjBGMLA7DbEyLummt9wuh42mEHf 0w9OOu3BYg9E27UNRhwQltY8jFCqQqn72eM6NVN10LPtTxhmiu5oaMZx5h_t tXveo_wTfgAt3WrhanVD7w2zv1KfQrZA1YB6Q1VG.SbkWLP4gLGSzbWQMBhi gl4BCwOacXcQBhosTG56uCSZgs8lbmKqqgaxlZk7bCs9pdBVIxt0Qjr0iVru oYJ024EKtMNhYsbUpnrXOMxCqUYaBPtq3Yfj6SNemC3xQYTO.Zk6Omgzou37 1E2tNLoXrzx9Pa6SiKIqpk5hpJM4QOgdQ6HN6VJI2BjS3fQ18l9B8NzPwakR 9cAXgrPZW8pQ_.Kib.R1rXWIZQz9TMbOsF63bjIGSNJhg5hkOA1huhtbOBTT LbWX1Kw9EWVPBqdwTjyN3yj8B28BdMML4ffL5ThrvRR2SwYhtmjMwAT1j3MQ kGmilE0oZbFLteJt4cLUN X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- X-Rocket-Received: from g224210161.adsl.alicedsl.de (ralf.mardorf@92.224.210.161 with plain [188.125.69.59]) by smtp116.mail.ir2.yahoo.com with SMTP; 07 Jul 2014 05:40:45 +0000 UTC Message-ID: <1404711644.16024.1.camel@archlinux> Subject: Re: Updating and displaying CMOS clock From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Mon, 07 Jul 2014 07:40:44 +0200 In-Reply-To: <20140707045720.GA63735@admin.sibptus.tomsk.ru> References: <20140706153206.GA46262@admin.sibptus.tomsk.ru> <53B9BC4B.4030609@gooch.io> <20140707021022.GB58025@admin.sibptus.tomsk.ru> <53BA0493.1030205@gooch.io> <20140707034300.GA60208@admin.sibptus.tomsk.ru> <20140707045720.GA63735@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 05:44:13 -0000 On Mon, 2014-07-07 at 11:57 +0700, Victor Sudakov wrote: > Olivier Nicole wrote: > > If all you need is a daily update, why not a cron to restart ntp once > > a day? The OP ask for a command like Liunx's hwclock, to set up the RTC. I for example on Linux do it like that: $ cat /usr/local/bin/tool [snip] ntp) ntpdate ntp.favey.ch hwclock --set --date "$(date)";; [snip] > Because no matter how often you restart ntp, it does not update the > CMOS (hardware) clock. > > My question was about updating the CMOS clock. "In the last episode (Mar 10), Kelly Jones said: > What are the FreeBSD equivalents of hwclock (view/set the BIOS > hardware clock) and adjtimex (adjust clock speed)? I couldn't find > these two well-known Linux commands in ports? FreeBSD sets the hardware clock whenever settimeofday() is called (unless the sysctl machdep.disable_rtc_set is set). I don't think there's a way to retrieve the current hardware clock settings from userland. Linux's adjtimex(2) is called ntp_adjtime(2) in FreeBSD." - http://lists.freebsd.org/pipermail/freebsd-questions/2007-March/144321.html Regards, Ralf