Abhay Kedia wrote:
I manually set correct time using sites like worldtimezone.com. Then, I shutdown the system and boot after a few hours. What I see is that Gentoo sets the system time to the same one at which I halted it. For example if I shutdown 4 hours ago at 14:00 hrs and boot at 18:00 hrs, it will still set the time to 14:00 hrs instead of the correct time.
<snip>
here is my /etc/conf.d/clock.

---------------------------------
# /etc/conf.d/clock
CLOCK="local"
CLOCK_OPTS=""
CLOCK_SYSTOHC="no" (have tried both yes and no)
SRM="no"
ARC="no"
---------------------------------

I am not using ntp or any other such softwares

Hmm, according to the initscript, /etc/init.d/clock isn't supposed to care about the CLOCK_SYSTOHC option until stop(). But it is supposed to set the *system* clock to the hardware clock, so that if the hardware clock is right at boot time, so should be the system clock.

I'm not sure, but I suspect that somehow the clock device that /sbin/hwclock is supposed to be talking to is actually static for some reason, and doesn't match your BIOS clock.

That deserves looking into: I'd start with the kernel config. Maybe something about /dev/rtc?

But the quick fix is probably rc-update del clock. I don't know if that's a Bad Thing To Do (TM), but nobody screamed when I asked about it in #gentoo.

Have a great day,
Mike
--
gentoo-user@gentoo.org mailing list

Reply via email to