Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clock always wrong
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kentsin
n00b
n00b


Joined: 08 Dec 2002
Posts: 58
Location: Macao

PostPosted: Mon Sep 01, 2003 1:56 pm    Post subject: Clock always wrong Reply with quote

The new 1.4 box always have wrong time. /etc/rc.conf is set to local, the /etc/localtime is linked to /usr/share/zoneinfo/Asia/Macao. I set the bios clock to localtime, after boot, date always give a time diff in one hours.

What is the problem? Shall I submit this as bug?
Back to top
View user's profile Send private message
kitano
Apprentice
Apprentice


Joined: 19 Dec 2002
Posts: 228
Location: Munich, Germany, Europe, Earth

PostPosted: Mon Sep 01, 2003 2:25 pm    Post subject: Reply with quote

what does
Code:
hwclock --localtime

and
Code:
hwclock --utc

say, and what is the output of date at this time?
_________________
->searched for a gentoo penguin ->alienated it with "find edges", "saturation", "photocopy" ->encoded quicktime from still ->played with aaxine ->screenshotted ->made it my avatar

only in case you were going to ask what it is...
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Sep 01, 2003 2:30 pm    Post subject: Reply with quote

no, this should work.

what does the following code tell you:

Code:

rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Macao /etc/localtime
date
hwclock
Back to top
View user's profile Send private message
kentsin
n00b
n00b


Joined: 08 Dec 2002
Posts: 58
Location: Macao

PostPosted: Fri Sep 05, 2003 1:32 am    Post subject: I think I found the answer Reply with quote

I think I found the problem:

the internet gateway on the local network have a wrong clock. It seems the gentoo box sync its clock on boot up against the gateway.

Thanks a lot for help.
Back to top
View user's profile Send private message
drekka
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 111

PostPosted: Wed Oct 01, 2003 12:49 pm    Post subject: Reply with quote

I have this problem too and everything looks right according to what I'm reading in these forums. I live in Melbourne Australia. /etc/localtime is pointing at /usr/share/zoneinfo/Australia/Melbourne.

I've tried both UTC and local as settings in rc.conf.

But everytime I start the computer the clock is out. It looks as if it is starting the clock at the time I shut it down, as if the computer had not bene turned off. After a week or so the clock is out by days.

I've noticed messages when the system is starting services about RTC stuff not being found or something but I don't know how to deal with this.

This is driving me nuts having to constantly reset the clock.

How do I fix it ????

cio
Derek.
_________________
Regards,
Derek

<nb>Reality is not what you think</nb>
Back to top
View user's profile Send private message
Artie_Effim
n00b
n00b


Joined: 14 Nov 2002
Posts: 25

PostPosted: Wed Oct 01, 2003 1:13 pm    Post subject: Reply with quote

You can always install ntp.
Back to top
View user's profile Send private message
drekka
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 111

PostPosted: Wed Oct 01, 2003 2:23 pm    Post subject: Reply with quote

The basic problem with that is I don't want to have to be connected to the net to have my clock correct.

cio
Derek.
_________________
Regards,
Derek

<nb>Reality is not what you think</nb>
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Thu Oct 02, 2003 10:44 am    Post subject: Reply with quote

Hi!

I've hade the experience: When your clocks stops working after turning your pc off, try a new battery on your bios.
No joke, there is one!

Daniel
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Thu Oct 02, 2003 11:09 am    Post subject: Reply with quote

I was thinking about that too :wink:
It happend to me on my old gateway.


DerMojo wrote:
Hi!

I've hade the experience: When your clocks stops working after turning your pc off, try a new battery on your bios.
No joke, there is one!

Daniel

_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
drekka
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 111

PostPosted: Thu Oct 02, 2003 12:22 pm    Post subject: Reply with quote

I'm familiar with that issue. The mobo is only 6 months old and this issue only happens when I boot linux. Nice try ;-)

It mixed be fixed thouhg, I just booted tonight and the clock was correct. After reading some posts last night I deleted the /etc/adjtime file and used hwclock to set the time. Looks like it's now fixed.


cio
Derek.
_________________
Regards,
Derek

<nb>Reality is not what you think</nb>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum