SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having a strange problem with my system clock in Linux. Whenever I boot into Linux after shutting the computer off, the system clock is way behind. The longer the computer is off, the greater the error -- up to 24 hours or more. This problem does not occur in Win98, only Linux.
I believe I've read that the system clock adjusts itself when you change the time, in an attempt to be accurate. It must store this information in a file somewhere, so does anyone know what file I can edit to remove that information, allowing the clock to start from scratch?
I'm running SuSE Linux 8.1/KDE 3.0 on an IBM ThinkPad 600E.
Originally posted by gd2shoe You should probably also make sure "Hardware Clock" is set to local (I think). This will prevent problems between Windows and Linux.
OK, thanks -- didn't think about that. I've now done "hwclock --localtime" hoping that will help.
5/20/05: I've tried all of the above and nothing has changed. :-(
So the question remains: Is there a file I can edit/delete that will wipe out all the correction data for the clock, so it will be as it was when first installed? Or are there any other suggestions?
Originally posted by JazzMastaJim 5/20/05: I've tried all of the above and nothing has changed. :-(
So the question remains: Is there a file I can edit/delete that will wipe out all the correction data for the clock, so it will be as it was when first installed? Or are there any other suggestions?
If you've "tried all of the above" and the clock still slows down in linux, then ntpd isn't doing it's job. It would be nice to know what is causing the problem, but ntpd should be constantly updating the time to keep it correct.
Originally posted by gd2shoe If you've "tried all of the above" and the clock still slows down in linux, then ntpd isn't doing it's job. It would be nice to know what is causing the problem, but ntpd should be constantly updating the time to keep it correct.
The clock doesn't drift while Linux is running. It loses time -- lots of it -- whenever the computer is rebooted or shut off. But only when booted into Linux, not Windoze, which makes me think it is a Linux software/configuration problem, as opposed to a hardware problem.
You may also want to flash your BIOS. I had the same problem with a Gigabyte board and AMIBIOS (don't recall what release) a while back. The time issue was resolved for several months, however just recently it occurred again. I had replaced the battery and setup ntp previous to doing the BIOS.
What kind of h/w. I'm simply curious to see if we share anything in common.
I don't have the specifics in front of me, but I'm pretty sure it was the Gigabyte G7XE, Athlon 800Mhz, Voodoo 3000.
Well, in case anyone is still subscribed to it, here's what happened:
The CMOS battery was definitely bad, so I replaced it -- and the system clock was still way off. Apparently, losing the CMOS battery threw the clock off so badly that, once the battery was replaced, it couldn't compensate, even after a couple weeks of resetting the hardware clock several times a day.
After a lot of research, I finally read that the clock drift compensation can be reset by deleting the file /etc/adjtime. So I deleted it. Problem solved!
Last edited by JazzMastaJim; 10-08-2005 at 11:14 PM.
Originally posted by tremor_tj Great job, Jim! This thread will be a good one for those poor frustrated people looking for an obscure answer. Glad you got it fixed!
Thanks, tremor_tj. I didn't want to leave the thread hanging, in case someone else had the same problem.
BTW, I got the CMOS battery from www.AtBatt.com, which had by far the cheapest prices I could find. I had it within 3-4 business days.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.