View previous topic :: View next topic |
Author |
Message |
rquast n00b
Joined: 07 May 2002 Posts: 3
|
Posted: Tue May 07, 2002 9:04 am Post subject: Major system clock drift |
|
|
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 |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Tue May 07, 2002 9:42 am Post subject: |
|
|
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 |
|
|
robster n00b
Joined: 07 May 2002 Posts: 2 Location: The Netherlands - The country where democracy died at may 6, 2002
|
Posted: Tue May 07, 2002 10:56 am Post subject: |
|
|
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 |
|
|
Kartoffel n00b
Joined: 23 Apr 2002 Posts: 29
|
Posted: Tue May 07, 2002 5:56 pm Post subject: |
|
|
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 |
|
|
McVeigh Tux's lil' helper
Joined: 24 Apr 2002 Posts: 102 Location: Florida
|
Posted: Tue May 07, 2002 6:03 pm Post subject: |
|
|
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 |
|
|
friedmud Apprentice
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Tue May 07, 2002 8:19 pm Post subject: Me too! |
|
|
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 |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Tue May 07, 2002 9:29 pm Post subject: |
|
|
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 |
|
|
meekrob Tux's lil' helper
Joined: 13 Apr 2002 Posts: 81 Location: Tempe, AZ USA
|
Posted: Wed May 08, 2002 2:03 am Post subject: My solution |
|
|
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 |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed May 08, 2002 2:07 am Post subject: |
|
|
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 |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Wed May 08, 2002 9:12 am Post subject: |
|
|
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
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 |
|
|
|