Last week the system clock was off by several days, and I noticed that every time i booted into Linux something drastic happened to the BIOS clock. Finally, I saw that /etc/adjtime looked wrong: 21272.101972 1102069756 0.000000 1102069626 LOCAL The first value means that hwclock thinks my hardware clock drifts 5.9 hours per day! I assume that I have set the clock, and when stopping the clock service hwclock has noticed that the harware clock was significantly off, and then created this silly adjtime file, causing the trouble. Suggestion: Either hwclock or /etc/init.d/clock should be fixed to contain a sanity check. If the calculated drift is greater than say a few minutes per day, it is most likely that the clock has been set manually, and the old value should be kept (or 0.0 should be used). Reproducible: Didn't try Steps to Reproduce: 1. 2. 3. ~>emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config//usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups dga directfb doc dvd emacs encode esd f77 fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap imlib java jpeg kde libg++ libwww mad maildir mbox mikmod motif mozilla mpeg mule ncurses nls noreiserfs oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python qt quicktime readline sdl slang speex spellsse ssl svga tcltk tcpd tetex tiff truetype trusted usb wxwindows x86 xml2 xmms xv zlib" ~>etcat -v baselayout [ Results for search key : baselayout ] [ Candidate applications found : 3 ] Only printing found installed programs. * sys-apps/baselayout : [ I] 1.9.4-r6 (0) OVERLAY [M~ ] 1.11.6-r1 (0) OVERLAY [M~ ] 1.11.7-r2 (0) OVERLAY
you might want to review the CLOCK_SYSTOHC variable
Could you be a little more specific, please. I cannot find that variable in any file under /etc, nor in hwclock's manpage. What does it do? Is it in the stable baselayout (1.9.4-r6) , or is it part of the many improvements in the unstabe one (1.11.7-r2)? /Jakob
1.9.x isnt being updated anymore read /etc/conf.d/clock in 1.11.x
i do have the same problem on a laptop after resume from a suspend to RAM. interestingly this just happens for kernel >2.6.9-nitro2 (i.e. with 2.6.10-nitro2 and 2.6.10-nitro4).
Obsolete bug, >=baselayout-1.11.x has configurable CLOCK_SYSTOHC in /etc/conf.d/clock. Closing.