You are not logged in.
Pages: 1
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
Have you tried removing /var/lib/hwclock/adjtime ?
Offline
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
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
Offline
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
And after restart?
Offline
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
> So it appears that my problem was that adjtime file?
It usually is.
Offline
Thanks everyone!
Offline
Pages: 1