System Clock

I dont know why but my system time clock is always gets behind the real time.

When i go to Yast-Date and Time, and then select Synchronize with NTP server, the time gets set correctly, after some time it just gets behind again.


dhcppc0:/home/gabriel # hwclock
mié 14 oct 2009 13:32:38 CLST  -0.323139 segundos
dhcppc0:/home/gabriel # hwclock
mié 14 oct 2009 13:38:16 CLST  -0.106382 segundos

This was before and after synchronizing the time with NTP

How could i fix this ?
Thanks

And do you have *ntp *running?

Yes i have it running, i think

This is a bit vague :frowning:

Do you mean that you do not know how to find out, or that you are not at the system atm?

To check on my system:

henk@boven:~> ps -ef | grep ntp
henk      1324  1314  0 19:57 pts/1    00:00:00 grep ntp
ntp       3588     1  0 09:49 ?        00:00:00 /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -u ntp -i /var/lib/ntp
henk@boven:~>

And to switch on: YaST > Network services > NTP. It seems that you have already an NTP server configured, else you could not synchronize, but it also seems that the ntp client is not doing wehat it should do. So please check.

dhcppc0:/home/gabriel # ps -ef | grep ntp
ntp      15862     1  0 13:37 ?        00:00:00 /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf
root     17147 17124  0 15:11 pts/3    00:00:00 grep ntp

Hm, seems to be there.

Hi
In the ntp setup, did you select external servers to obtain the time
from (and run the test)? Also what version of openSUSE are you running?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 5 days 1:30, 2 users, load average: 0.16, 0.10, 0.03
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

I had es.pool.ntp.org as my external server, changed it to cl.pool.ntp.org (cl stand for chile, where im from)
Maybe this solves it, just need to wait

Im using Opensuse 11.1 x86_64
KDE 4.2.4

On 10/14/2009 09:46 AM, assas1n wrote:
>
> I dont know why but my system time clock is always gets behind the real
> time.
>
> When i go to Yast-Date and Time, and then select Synchronize with NTP
> server, the time gets set correctly, after some time it just gets behind
> again.

Maybe time to replace your onboard battery…irregular time function is
common for dying battery.

Try deleting the file /etc/adjtime. Read this.

This mainboard if fairly new, no more than 5 months.

Did the steps shown on that link, hope it works, just a matter of waiting. I just didnt have the file mentioned on the guide “/etc/rc.config” that thing was not present on my machine.

Strange is, issue is always that time goes “slower” on the pc than it really is.

Some new info:

dhcppc0:/home/gabriel # hwclock --show ; date ; date -u
mié 14 oct 2009 22:39:17 CLST  -0.751393 segundos
mié oct 14 22:39:16 CLST 2009
jue oct 15 01:39:16 UTC 2009

Its 22:39 , Wednesday 14, by the time i did this hwclock thing

And yet some more :

ntpq> peers
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 clgrid-mon.reun 146.164.48.5     2 u   10   64    3    7.380  286.811 154.602
 bigben.cac.wash .USNO.           1 u   13   64    3  220.952  132.654 156.684
 158.227.98.15   .GPS.            1 u   56   64    3  246.268  173.557 154.507

I have the same problem. A few months ago my clock all the sudden became exactly 2 mins behind. I used NTP to set it when i installed, but apparently it only used it that once.