From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAE53C2D0C2 for ; Fri, 3 Jan 2020 10:02:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C842D20672 for ; Fri, 3 Jan 2020 10:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727313AbgACKCf (ORCPT ); Fri, 3 Jan 2020 05:02:35 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:55947 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgACKCf (ORCPT ); Fri, 3 Jan 2020 05:02:35 -0500 Received: from localhost (lfbn-lyo-1-1670-129.w90-65.abo.wanadoo.fr [90.65.102.129]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 0AC84200004; Fri, 3 Jan 2020 10:02:32 +0000 (UTC) Date: Fri, 3 Jan 2020 11:02:32 +0100 From: Alexandre Belloni To: Mikhail Gavrilov Cc: J William Piggott , Karel Zak , util-linux@vger.kernel.org, Linux List Kernel Mailing , linux-rtc@vger.kernel.org Subject: Re: [bugreport] "hwclock -w" reset time instead of setting the right time Message-ID: <20200103100232.GH3040@piout.net> References: <20200101141748.GA191637@mit.edu> <20200102110817.ahqaqidw3ztw3kax@10.255.255.10> <20200102131434.tky2hquki23laqqo@10.255.255.10> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: util-linux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org Hi, On 02/01/2020 22:17:26+0500, Mikhail Gavrilov wrote: > On Thu, 2 Jan 2020 at 21:59, J William Piggott wrote: > > > > You've demonstrated that 'hwclock -w' does not 'reset' the RTC. > > > > Does your new motherboard use a battery backup for the RTC? > > Is the battery good? > > > > If you look carefully demonstration the RTC 'reset' happens after > reboot __only__ when 'hwclock -w' have been entered before reboot. > So if I reboot the computer without 'hwclock -w' the RTC will be not reset. > What is your kernel version? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com