Re: 500 ms delay in time saved into RTC
From: Igor Plyatov
Date: Mon Feb 19 2018 - 06:31:33 EST
Dear Karel,
Would be possible to somehow detect what is the right default setting for
--delay? I mean for example detect architecture / clock HW, etc.
I have no problem with --delay, but it's tuning for advanced users and
HW specific stuff. It would be nice to have something more portable.
Karel
As I understood, issue exists only at x86 platform, where
MC146818-compatible RTC used.
But even if you will correctly detect platform, there is no guaranty to
get exactly MC146818 RTC. RTC can be other type. It even can be not
single in the system.
What is more or less usable is "/sys/class/rtc/rtcX/name" file, which
contains driver name.
For x86 and MC146818-compatible RTC its name is "rtc_cmos". And it can
be used to distinguish RTC type by hwclock utility.
Best wishes.
--
Igor Plyatov