1 |
On 2/11/06, Bob Slawson <bslawson@×××××××××××.net> wrote: |
2 |
> Mark Knecht wrote: |
3 |
> > Hello, |
4 |
> > Just in the last week or so my AMD64 machine has started to exhibit |
5 |
> > problems with the clock. Maybe it's a hardware problem, or possibly |
6 |
> > it's some new ntpd issue after updates. At boot time it seems to be |
7 |
> > coming up with semi-random times. This is causing me to ask a few |
8 |
> > questions and try to learn a bit more about how this actually works |
9 |
> > under Linux. Thanks in advance. |
10 |
> > |
11 |
> First thing to do is to check that the symlink `/etc/localtime' still |
12 |
> points to a valid timezone data file. For instance: |
13 |
> |
14 |
> $ ls -l /etc/localtime |
15 |
> lrwxrwxrwx 1 root root 30 Jan 21 21:52 /etc/localtime -> |
16 |
> /usr/share/zoneinfo/US/Eastern |
17 |
> |
18 |
> works well where I live. When I have clock problems, this symlink is |
19 |
> almost always the problem. |
20 |
> |
21 |
> |
22 |
> In /etc/conf.d/clock, I have CLOCK="UTC", CLOCK_SYSTOHC="yes" , and |
23 |
> CLOCK_OPTS="". |
24 |
> |
25 |
> BobS |
26 |
> |
27 |
|
28 |
Hi Bob, |
29 |
/etc/localtime seems to be OK: |
30 |
|
31 |
mark@lightning ~ $ ls -l /etc/localtime |
32 |
lrwxrwxrwx 1 root root 39 Aug 30 10:29 /etc/localtime -> |
33 |
/usr/share/zoneinfo/America/Los_Angeles |
34 |
mark@lightning ~ $ |
35 |
|
36 |
My clock settings seem similar, other than the UTC/local question |
37 |
|
38 |
CLOCK="local" |
39 |
CLOCK_OPTS="" |
40 |
CLOCK_SYSTOHC="yes" |
41 |
|
42 |
Are you able to clarify about what to write into the clock when |
43 |
using fist date and then hwclock? For instance yesterday I did these |
44 |
commands: |
45 |
|
46 |
date 021008002006 |
47 |
hwclock -w |
48 |
|
49 |
But this morning (Feb. 11th) when I booted the clock came up saying |
50 |
Feb. 9th. so I had to write it again after booting. |
51 |
|
52 |
NOTE: The problem happens using both UTC and local so it's actually |
53 |
not caused by that. |
54 |
|
55 |
NOTE 2: I also see that system time is off by 2 minutes from what I |
56 |
get from the over the phone time system. Normally they have been very |
57 |
close so it seems that ntpd is not doing it's job right now either.... |
58 |
|
59 |
I suppose this could be a bad battery or something like that but this |
60 |
is my newest system and is only about 6 months old so I doubt it. |
61 |
Also, I had this problem for about 3 months on my old laptop when |
62 |
support for that chipset came out. I'm therefore assuming it's really |
63 |
a Linux problem of some type. |
64 |
|
65 |
A bit more debug info: |
66 |
|
67 |
lightning ~ # hwclock --debug |
68 |
hwclock from util-linux-2.12r |
69 |
Using /dev/rtc interface to clock. |
70 |
Last drift adjustment done at 1139675735 seconds after 1969 |
71 |
Last calibration done at 1139675735 seconds after 1969 |
72 |
Hardware clock is on local time |
73 |
Assuming hardware clock is kept in local time. |
74 |
Waiting for clock tick... |
75 |
/dev/rtc does not have interrupt functions. Waiting in loop for time |
76 |
from /dev/rtc to change |
77 |
...got clock tick |
78 |
Time read from Hardware Clock: 2006/02/11 10:51:26 |
79 |
Hw clock time : 2006/02/11 10:51:26 = 1139683886 seconds since 1969 |
80 |
Sat Feb 11 10:51:26 2006 -0.686794 seconds |
81 |
lightning ~ # |
82 |
|
83 |
|
84 |
Thanks, |
85 |
Mark |
86 |
|
87 |
-- |
88 |
gentoo-amd64@g.o mailing list |