Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Major system clock drift
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rquast
n00b
n00b


Joined: 07 May 2002
Posts: 3

PostPosted: Tue May 07, 2002 9:04 am    Post subject: Major system clock drift Reply with quote

Hello!

I notice a major Gentoo Linux system clock drift on my IBM ThinkPad R30. The drift is about (minus) one hour per day. The hardware clock itself shows no such drift. Even the W2k clock shows no drift.

Configuring the BIOS _not_ to switch off the processor (or PCI bus) clock when the processor (or the bus) is idle does not help. Unloading the APM kernel modules does not help either. No experience with ACPI yet.

What I want to know is

- if this obviously Linux specific problem is known
- how the clock drift can be explained
- how the clock drift problem can be tackled

The ThinkPad R30 uses an Intel Modbile PIII that is send to sleep when idle. Could the clock drift be caused by incorrect idle time management?

Thank you,
R. Quast
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Tue May 07, 2002 9:42 am    Post subject: Reply with quote

I don't know why your clock drifts, but I can propose a solution:

Code:

emerge net-misc/ntp

rc-update add default ntp


You'll also need to configure a time server in /etc/ntp.conf
Back to top
View user's profile Send private message
robster
n00b
n00b


Joined: 07 May 2002
Posts: 2
Location: The Netherlands - The country where democracy died at may 6, 2002

PostPosted: Tue May 07, 2002 10:56 am    Post subject: Reply with quote

Your last line of code is a little off, I did it this way:

rc-update add ntpd default (its ntpd, not ntp)

Hope this helps :)
Back to top
View user's profile Send private message
Kartoffel
n00b
n00b


Joined: 23 Apr 2002
Posts: 29

PostPosted: Tue May 07, 2002 5:56 pm    Post subject: Reply with quote

Since your hardware clock is working try hwclock --systohc --utc I think you only use --utc if your hwclock is utc. That way you don't have to install another program. Supposedly running hwclock repeatedly teaches the system time to work correctly.

I tried ntpdate but could never get it to work for hardware clock set at local time.

Have fun.
Back to top
View user's profile Send private message
McVeigh
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 102
Location: Florida

PostPosted: Tue May 07, 2002 6:03 pm    Post subject: Reply with quote

I was reading another how-to that said to create a /etc/ntp.conf file with the time server you want to use. is this correct?
_________________
Take Care,

Seth

left to do:
USB printer
qmail
squirelmail
php
Back to top
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Tue May 07, 2002 8:19 pm    Post subject: Me too! Reply with quote

I too have this problem!

It is really starting to get annoying - I have checked all of my configs and gone through the Gentoo install twice and same problem.

Never had this problem with Slack though....

Anyone have an answer???

My System:
Athlon 1.2 GHz
ABIT KT7A

Derek
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Tue May 07, 2002 9:29 pm    Post subject: Reply with quote

I was having a similar problem so I deleted /etc/adjtime and made sure my /etc/rc.conf read CLOCK="local" , rebooted and all things seem to be ok now.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
meekrob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 81
Location: Tempe, AZ USA

PostPosted: Wed May 08, 2002 2:03 am    Post subject: My solution Reply with quote

was to delete /etc/localtime and set CLOCK="local" in rc.conf. I don't know if this is the best practice, but it worked for me.
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed May 08, 2002 2:07 am    Post subject: Reply with quote

It's fine to do this, /etc/localtime gets regenerated/generated properly when you reboot --- you could also just blank it out if you feel uncomfortable deleting it :)
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Wed May 08, 2002 9:12 am    Post subject: Reply with quote

robster wrote:
Your last line of code is a little off, I did it this way:

rc-update add ntpd default (its ntpd, not ntp)

Hope this helps :)


Whoops :D

In my defense, that was from memory as I was on my Slackware laptop at home instead of my Gentoo workstation at work ;)

(yeah, yeah... I'll move the laptop over to Gentoo just as soon as I have a free day or three ;) )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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