You are not logged in.

#1 2010-01-21 05:52:57

jimlikessweets
Member
Registered: 2009-05-28
Posts: 35

Clock problem[solved]

Hi my clock goes out of sync all of the time. I've tried the openntpd thing from the arch wiki and I've gotten it to work. Howver, this doesn't last long before it goes out of sync again even when the daemon starts. I live in the Pacific time zone. Could someone please help me get this problem sorted out? I just need my clock to stay in sync.

Last edited by jimlikessweets (2010-01-27 06:00:15)

Offline

#2 2010-01-21 06:06:32

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Clock problem[solved]

Same problem here!!!1

I'm tired of setting up the clock everytime i start the openntpd daemon. And i was trying a lot of ways to do it, but all fails when i reboot.


arst

Offline

#3 2010-01-21 06:12:40

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: Clock problem[solved]

Is it your bios clock that is slow or the system clock (whilst in linux)

if you run hwclock -s does it correct the time

Offline

#4 2010-01-21 06:22:16

jimlikessweets
Member
Registered: 2009-05-28
Posts: 35

Re: Clock problem[solved]

guzz46 wrote:

Is it your bios clock that is slow or the system clock (whilst in linux)

if you run hwclock -s does it correct the time

No, nothing changes.

Offline

#5 2010-01-21 07:01:24

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: Clock problem[solved]

Then there is probably not much you can do if openntpd isn't working for you

How old is the computer? maybe the bios battery is running flat

Offline

#6 2010-01-21 17:56:20

jimlikessweets
Member
Registered: 2009-05-28
Posts: 35

Re: Clock problem[solved]

guzz46 wrote:

Then there is probably not much you can do if openntpd isn't working for you

How old is the computer? maybe the bios battery is running flat

its an eee pc 1000h about a year and a half old. windows and other linux distros have working clocks on this computer. why cant arch?

Offline

#7 2010-01-21 18:25:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: Clock problem[solved]

I use ntp instead of openntp.  Does openntp include the user space programs ntpq or ntpdc? 

If they do, you might try to see if they provide any insight as to what the problem may be.

For example, the ntpdc program provides a shell interface.  help is available using  ?<return>.  The commands dmpeers, sysstats, kerninfo and iostats may be of help.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2010-01-21 19:33:51

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: Clock problem[solved]

That's strange, did you run hwclock -s as root or with sudo, if you go into the bios does the clock read right?

Edit: or you could run sudo hwclock to see what the bios clock reads

Last edited by guzz46 (2010-01-21 19:43:01)

Offline

#9 2010-01-24 07:06:42

jimlikessweets
Member
Registered: 2009-05-28
Posts: 35

Re: Clock problem[solved]

guzz46 wrote:

That's strange, did you run hwclock -s as root or with sudo, if you go into the bios does the clock read right?

Edit: or you could run sudo hwclock to see what the bios clock reads

My hardware clock is off by a few hours. How do I go about fixing it?

Offline

#10 2010-01-24 07:32:43

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Clock problem[solved]

jimlikessweets wrote:
guzz46 wrote:

That's strange, did you run hwclock -s as root or with sudo, if you go into the bios does the clock read right?

Edit: or you could run sudo hwclock to see what the bios clock reads

My hardware clock is off by a few hours. How do I go about fixing it?

Protip: man <command> almost always tells you how to do <action xyz>.

For example, hwclock --set --date "<the date>"


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#11 2010-01-24 09:08:51

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Clock problem[solved]

There is a routine check. What does your /var/lib/hwclock/adjtime contain? It should look somewhat like

bp:~$ cat /var/lib/hwclock/adjtime
0.026639 1264322994 0.000000
1264322994
UTC

where the "UTC" could read "LOCAL" if your system is set to local time.

The first field (0.026639 in this example) should be a rather low absolute value. It records the offset by which the clock will be adjusted at system start. If this is too high, try to delete the adjtime file, set your hwclock to the proper time and reboot the system. This will recreate the adjtime file, which you should check again.

This does not help in every case. But it does rule out some common clock  error source.


To know or not to know ...
... the questions remain forever.

Offline

#12 2010-01-24 12:47:43

clickit
Member
From: Athens, Hellas
Registered: 2007-07-18
Posts: 93

Re: Clock problem[solved]

bernarcher wrote:

There is a routine check. What does your /var/lib/hwclock/adjtime contain? It should look somewhat like

bp:~$ cat /var/lib/hwclock/adjtime
0.026639 1264322994 0.000000
1264322994
UTC

where the "UTC" could read "LOCAL" if your system is set to local time.

The first field (0.026639 in this example) should be a rather low absolute value. It records the offset by which the clock will be adjusted at system start. If this is too high, try to delete the adjtime file, set your hwclock to the proper time and reboot the system. This will recreate the adjtime file, which you should check again.

This does not help in every case. But it does rule out some common clock  error source.

thanks a lot
this tip was very helpful smile

Offline

#13 2010-01-27 05:59:55

jimlikessweets
Member
Registered: 2009-05-28
Posts: 35

Re: Clock problem[solved]

Problem solved thanks to a little man reading. Thanks a lot everyone, for your help

Offline

#14 2010-01-27 06:08:04

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Clock problem[solved]

^ What did you do exactly to solve the problem?

Offline

Board footer

Powered by FluxBB