You are not logged in.

#1 2010-07-21 16:39:25

jlacroix
Member
Registered: 2009-08-16
Posts: 576

[SOLVED] Laptop Not Keeping Correct Time

Hello everyone. I am having a ton of trouble keeping the time on my laptop. It seems that every time I install Arch I battle with this for about two weeks before the problem goes away, and I've never had any trouble with any other distro.

Anyway, my laptop time was always correct but ever since I removed my Arch hard drive and put a different hard drive in so that I could try Mint for a review I was writing, my Arch install has been unable to keep the correct time ever since.

I have tried both UTC and localtime in rc.conf, and neither one makes a dent in this problem. Ever day I use my laptop at lunch, and I have to fix the time manually, and the next day it will be several hours off again.

This is the command I use to update the time:

sudo ntpd -s -d

I decided not to have ntp always run, because I don't feel that it's necessary. I've never had to have it run as a daemon before, and my laptop isn't always connected to the Internet.

Any idea why this would happen? Yesterday I fixed the time and now my clock is reading 1:58pm when it is really 12:31pm.

Last edited by jlacroix (2010-07-21 18:59:17)

Offline

#2 2010-07-21 16:47:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Laptop Not Keeping Correct Time

Have you tried removing /var/lib/hwclock/adjtime ?

Offline

#3 2010-07-21 17:03:35

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Laptop Not Keeping Correct Time

karol wrote:

Have you tried removing /var/lib/hwclock/adjtime ?

No I haven't. I never heard of that before. I'll try that when I get home.

Offline

#4 2010-07-21 17:06:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Laptop Not Keeping Correct Time

jlacroix wrote:
karol wrote:

Have you tried removing /var/lib/hwclock/adjtime ?

No I haven't. I never heard of that before. I'll try that when I get home.

It's over here: http://wiki.archlinux.org/index.php/Time#Time_Skew

Offline

#5 2010-07-21 18:29:03

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [SOLVED] Laptop Not Keeping Correct Time

Is your hardware clock correct?

hwclock

Offline

#6 2010-07-21 18:45:00

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Laptop Not Keeping Correct Time

Ok, you guys inspired me to take the laptop out at my desk at work, the curiosity was killing me.

As suggested, I checked the hwclock. It was 8 minutes off. I then ran ntpd -s -d and then my time in my KDE taskbar was then correctified, but the hwclock was still 8 minutes off. (Specifically hwclock showed 2:50 and my KDE clock showed 2:42 after running the ntpd command).

After deleting the adjtime file, the hwclock was still 8 minutes off even though I reran ntpd afterwards.

Offline

#7 2010-07-21 18:48:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Laptop Not Keeping Correct Time

And after restart?

Offline

#8 2010-07-21 18:51:09

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Laptop Not Keeping Correct Time

karol wrote:

And after restart?

After the restart it is now fine. It appears that both my KDE clock and hwclock match.

So it appears that my problem was that adjtime file?

Offline

#9 2010-07-21 18:52:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Laptop Not Keeping Correct Time

> So it appears that my problem was that adjtime file?
It usually is.

Offline

#10 2010-07-21 18:59:28

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Laptop Not Keeping Correct Time

Thanks everyone!

Offline

Board footer

Powered by FluxBB