You are not logged in.

#1 2009-11-03 13:26:39

ricardofunke
Member
Registered: 2009-11-03
Posts: 46

[SOLVED] time delay 10 minutes per day

Hello,

Before I post a bug, I want to know if someone can help me with this strange problem.

My clock gets late just 10 minutes every day. Because it's just 10 minutes, it's impossible to be wrong time zone.

I already change localtime to UTC, but no effect.

In my searches I discover something about to use hwclock and adjtimex to synchronize, but I never had to use this, why I have now?

So, does somebody have an idea for why it's happening so suddenly?

Last edited by ricardofunke (2011-08-31 19:43:14)

Offline

#2 2009-11-03 15:09:18

audaly
Member
From: France
Registered: 2004-12-13
Posts: 60

Re: [SOLVED] time delay 10 minutes per day

Same problem! My clock gets late every day since one week. Never had this problem before...

Offline

#3 2009-11-03 15:26:34

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: [SOLVED] time delay 10 minutes per day

Check out your /etc/rc.conf file.  Here's mine.

# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK=""
USEDIRECTISA="no"
TIMEZONE=""
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

Now try a date command in a console:

date 110310162009

$ date
Tue Nov  3 10:16:00 UTC 2009

date MMDDhhmmCCYY format

Mine isn't configured 100%.  UTC is a global time.  My computer thinks it's on the UTC right now, but in fact, I just set it to the local time in my zone (EST).  I'll just add in EST and localtime into the lines in my /etc/rc.conf file, then reboot.

Just out of curiousity, how old is your computer?



Now here's a section of my /etc/rc.conf:

# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="EST"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
$ date
Tue Nov  3 10:32:55 EST 2009

Now the time is my localtime (not UTC), with the correct time.  Hope this helps.

Last edited by otisranson (2009-11-03 15:37:18)

Offline

#4 2009-11-03 16:41:00

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [SOLVED] time delay 10 minutes per day

I got this problem in the two laptop I had. I never solved it, they solved by itself after some time (so I think that kernel updates solved it) In my old laptop disabling apic solved one issue I had (time went two times fast) so you can try it.

Other thing that help is running ntpd so it correct the time.

Offline

#5 2009-11-03 16:42:49

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] time delay 10 minutes per day

See if rm /var/lib/hwclock/adjtime helps.

Offline

#6 2009-11-03 23:23:13

ricardofunke
Member
Registered: 2009-11-03
Posts: 46

Re: [SOLVED] time delay 10 minutes per day

Hi!

My rc.conf:

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="America/Sao_Paulo"
KEYMAP="br-abnt2"
CONSOLEFONT="LatArCyrHeb-16"
CONSOLEMAP=
USECOLOR="no"

I think my rc.conf is correct, I've removed the "/var/lib/hwclock/adjtime", so let's see if it will solve the problem.

Tomorrow I'll reply

Thank you all very much! smile

Offline

#7 2009-11-04 13:18:03

ricardofunke
Member
Registered: 2009-11-03
Posts: 46

Re: [SOLVED] time delay 10 minutes per day

Yeah! It works!

Just remove the file /var/lib/hwclock/adjtime like tavianator said!

Thanks!

Offline

#8 2009-11-04 18:36:57

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] time delay 10 minutes per day

Great!  Please mark this thread as [SOLVED].

Offline

Board footer

Powered by FluxBB