Configuring a systems time - which files to edit?
I am having a problem with my SuSE 9.0 PRO only box in that it seems to lose time. considering the machine is only 1 year old I hope it is not the CMOS battery. To rule this out entirely I would like to check the configuration files of the KDE time display. The system seems to lose approx 10 minutes each time I reboot it. What I cannot understand is that on booting linux has to get the time from the CMOS, even if it never consults it again. On a shutdown the system time and hardware time are synchronised and I think this is where the error is creeping in. so therefore for the clock to be wrong linux must not be keeping time incorrectly as each time it syncs the software and hardware time it compounds the error ie adds more of an error each time it is shutdown. I have already been to Yast and checked the time there and to see if there where any other options but alas none. I have right clicked on the time, entered the root pwd and edited the time and confirmed my time zone, and still not seen any other options available. Is there perhaps a clock setting that adds minutes to cater for time corrections or something that might be enabled? Where can I find the files I need to browse and possibly edit, and what are they called? Help would be much appreciated to rule linux out as the faulty party. -- The Little Helper ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Monday 17 May 2004 16:01, Hylton Conacher (ZR1HPC) wrote:
The system seems to lose approx 10 minutes each time I reboot it.
~ maybe, deleting /etc/adjtime might fix it ? -- best wishes ____________ sent on Linux ____________
The Monday 2004-05-17 at 18:01 +0200, Hylton Conacher (ZR1HPC) wrote:
configuration files of the KDE time display. The system seems to lose approx 10 minutes each time I reboot it. What I cannot understand is that on booting linux has to get the time from the CMOS, even if it never consults it again. On a shutdown the system time and hardware time are synchronised and I think this is where the error is creeping in. so therefore for the clock to be wrong linux must not be keeping time incorrectly as each time it syncs the software and hardware time it compounds the error ie adds more of an error each time it is shutdown.
Delete /etc/adjtime
Is there perhaps a clock setting that adds minutes to cater for time corrections or something that might be enabled? Where can I find the files I need to browse and possibly edit, and what are they called?
Yes, there is. In fact, yours is probably unadjusted, and it is the culprit in your case: deleting the above mentioned file resets it. Read my microhowto for an explanation: http://susefaq.sourceforge.net/howto/time.html If that is not the case, there another issue in suse 9.0: http://portal.suse.com/sdb/en/2004/02/pohletz_xntp_drift.html -- Cheers, Carlos Robinson
On Monday 17 May 2004 17:01, Hylton Conacher (ZR1HPC) wrote:
I am having a problem with my SuSE 9.0 PRO only box in that it seems to lose time. considering the machine is only 1 year old I hope it is not the CMOS battery. To rule this out entirely I would like to check the configuration files of the KDE time display. The system seems to lose approx 10 minutes each time I reboot it. What I cannot understand is that on booting linux has to get the time from the CMOS, even if it never consults it again. On a shutdown the system time and hardware time are synchronised and I think this is where the error is creeping in. so therefore for the clock to be wrong linux must not be keeping time incorrectly as each time it syncs the software and hardware time it compounds the error ie adds more of an error each time it is shutdown.
I have already been to Yast and checked the time there and to see if there where any other options but alas none. I have right clicked on the time, entered the root pwd and edited the time and confirmed my time zone, and still not seen any other options available.
Is there perhaps a clock setting that adds minutes to cater for time corrections or something that might be enabled? Where can I find the files I need to browse and possibly edit, and what are they called?
Help would be much appreciated to rule linux out as the faulty party.
-- The Little Helper =============================================================== ========= Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 =============================================================== =========
-- Replace the Cmos battery for what they cost and the ease of changing them is it worth the doubt after all if the battery goes completely it's not just your cmos clock that will get it's proverbial knickers in a not is it all the rest of your settings are at risk for what about £0.75pence UK C'mon get real change it BE SAFE .. G6NJR Pete otherwise known as "Quinton 11" A Linux Only area Happy bug hunting M$ clan Pete,,,,, :-)
I had a similar problem with Knoppix and it turned out to be a shutdown save UTC when I was CDT. The system would update the time by 6 hours ever boot cycle. Donn aka N5XWB On Tue, 18 May 2004 09:48:18 +0100 peter Nikolic
On Monday 17 May 2004 17:01, Hylton Conacher (ZR1HPC) wrote:
I am having a problem with my SuSE 9.0 PRO only box in that it seems to lose time. considering the machine is only 1 year old I hope it is not the CMOS battery. To rule this out entirely I would like to check the configuration files of the KDE time display. The system seems to lose approx 10 minutes each time I reboot it. What I cannot understand is that on booting linux has to get the time from the CMOS, even if it never consults it again. On a shutdown the system time and hardware time are synchronised and I think this is where the error is creeping in. so therefore for the clock to be wrong linux must not be keeping time incorrectly as each time it syncs the software and hardware time it compounds the error ie adds more of an error each time it is shutdown.
I have already been to Yast and checked the time there and to see if there where any other options but alas none. I have right clicked on the time, entered the root pwd and edited the time and confirmed my time zone, and still not seen any other options available.
Is there perhaps a clock setting that adds minutes to cater for time corrections or something that might be enabled? Where can I find the files I need to browse and possibly edit, and what are they called?
Help would be much appreciated to rule linux out as the faulty party.
-- The Little Helper =============================================================== ========= Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 =============================================================== =========
--
Replace the Cmos battery for what they cost and the ease of changing them is it worth the doubt after all if the battery goes completely it's not just your cmos clock that will get it's proverbial knickers in a not is it all the rest of your settings are at risk for what about £0.75pence UK C'mon get real change it BE SAFE ..
G6NJR Pete otherwise known as "Quinton 11"
A Linux Only area Happy bug hunting M$ clan
Pete,,,,, :-)
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Tuesday 18 May 2004 04:48, peter Nikolic wrote:
On Monday 17 May 2004 17:01, Hylton Conacher (ZR1HPC) wrote:
I am having a problem with my SuSE 9.0 PRO only box in that it seems to lose time. considering the machine is only 1 year old I hope it is not the CMOS battery.> > =============================================================== =========
/snip/
--
Replace the Cmos battery for what they cost and the ease of changing them is it worth the doubt after all if the battery goes completely it's not just your cmos clock that will get it's proverbial knickers in a not is it all the rest of your settings are at risk for what about £0.75pence UK C'mon get real change it BE SAFE ..
G6NJR Pete otherwise known as "Quinton 11"
Won't the CMOS settings be lost when you take the old battery out? It would be a good idea, regardless, to open up the settings at machine start and write down what everything is set for, _before_ you change the battery. Better safe than sorry! --doug
* Doug McGarrett
Won't the CMOS settings be lost when you take the old battery out?
Not if you change it with the computer under power (plugged into the wall, not turned on). Line voltage to the power-supply provides power to the cmos when available, the battery when not. IIANM, the cmos has some *persistance* and will not loose it's memory unless it is w/o power for a length of time .... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Hylton Conacher (ZR1HPC) wrote:
I am having a problem with my SuSE 9.0 PRO only box in that it seems to lose time. considering the machine is only 1 year old I hope it is not the CMOS battery. To rule this out entirely I would like to check the configuration files of the KDE time display. The system seems to lose approx 10 minutes each time I reboot it. What I cannot understand is that on booting linux has to get the time from the CMOS, even if it never consults it again. On a shutdown the system time and hardware time are synchronised and I think this is where the error is creeping in. so therefore for the clock to be wrong linux must not be keeping time incorrectly as each time it syncs the software and hardware time it compounds the error ie adds more of an error each time it is shutdown.
I have already been to Yast and checked the time there and to see if there where any other options but alas none. I have right clicked on the time, entered the root pwd and edited the time and confirmed my time zone, and still not seen any other options available.
Is there perhaps a clock setting that adds minutes to cater for time corrections or something that might be enabled? Where can I find the files I need to browse and possibly edit, and what are they called?
Help would be much appreciated to rule linux out as the faulty party Thanks to both pinto and Carlos for the /etc/adjtime suggestion. I have deleted it and the time has maintained itself since your reply.
Thanks again Hylton -- ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
participants (7)
-
Carlos E. R.
-
Donn L Washburn
-
Doug McGarrett
-
Hylton Conacher (ZR1HPC)
-
Patrick Shanahan
-
peter Nikolic
-
pinto