Re: [opensuse] Time Issues 11.3
On 08/26/2010 05:00 PM, DenverD wrote:
Tony wrote:
Howdy
Running 11.3 with kde 4.4.4, and I've run into an issue with the system clock.
I have the hardware clock set to local and of course the local time i'm on CDT, United States, Texas.
I have used yast to set the timezone to Central (Chicago). I have dbl check /etc/localtime and /etc/sysconfig/clock, that it is pointing to central time zone.
When the computer boots, the system clock is always set 1 hour in advance, the hardware clock is ok, until I shut down then of course the system time is written back to the hardware clock and now the hardware clock is off again.
When update to 11.3 it worked ok, after adding the digital clock applet and using the adjust / date time in that applet is when the time started acting up. I have since removed this applet and removed config for it.
At this point I'm thinking to turn off writing of system clock back to hardware clock, this is a band-aid fix, to me.
Any suggestions help ?
Thanks in advance,
Tony
hi tony in Texas (i've lived in Del Rio, Abilene, Austin) i can't tell from your note how much Linux experience you have so pardon me for assuming you know little or nothing about Linux..
first, Linux 'expects' the hardware clock to run on Coordinated Universal Time (UTC), aka Greenwich.....while Windows expect the hardware clock to be set to local..
while Windows can't be 'taught' to do otherwise, Linux can: so, if you dual boot and need to present a local hardware clock to Windows, then set it that way, but then go into YaST, System> Date Time (or maybe Personal Settings - Configure Desktop....i don't know where that is set in 4.4.4) and find where you can check mark a box that says _something_ like "Hardware clock set to" and make sure it is set to "Local Time"..
then all should be well..
if, on the other hand you never boot Windows, set the hardware clock to UTC, and tell the system that (again in YaST)
as for your mysterious one hour i guess that is because of Daylight Savings Time....i think once the hw clock is actually set the way the system is being told it is (in YaST) the one hour mystery will go away..
most folks also enable NTP (network time protocol) that is set up in YaST> Network Services> NTP Configuration....once that is turned on and you manually set the hw clock really close, it should stay VERY close to right..
enjoy, and have a couple of cheese/onion enchiladas and a Shiner Bock for me (i now live in Denmark)..
peace, dd
Thanks for the information, I've been using Linux for 4 years, so guess a intermediate have a lot to learn still. Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC. For now only way system clock is correct, is I have set the hwclock to one hour off, then when system clock is set it works. I'm open to ideas. Thanks, Tony -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Tony wrote:
I'm open to ideas. NTP.
Configure the computer to use an NTP server, to get the correct time. Linux always runs NTP at boot and periodically afterwards. You can also set Windows to use NTP and also to not change the time for standard/daylight savings times. IIRC, Windows sets the hardware clock on time change, whereas Linux changes the offset and leaves the hardware clock alone. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-29 22:19, Tony wrote:
Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC.
It does not matter how you set it up, local or utc. Linux can handle both. However, after you change the settings (in YaST) and set up the clock, you have to delete the "/etc/adjtime" file (it will be recreated). To avoid problems with how the desktop might handle the clock, manipulate it on an xterm, as root ("su -", the dash is important), with the command "date". -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On Mon, Aug 30, 2010 at 02:55:04AM +0200, Carlos E. R. wrote:
On 2010-08-29 22:19, Tony wrote:
Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC.
It does not matter how you set it up, local or utc. Linux can handle both. However, after you change the settings (in YaST) and set up the clock, you have to delete the "/etc/adjtime" file (it will be recreated).
To avoid problems with how the desktop might handle the clock, manipulate it on an xterm, as root ("su -", the dash is important), with the command "date".
This suggestion is misleading and not needed. Please follow the advice given by James in this thread. That's the correct way to address your issue. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-31 13:09, Lars Müller wrote:
On Mon, Aug 30, 2010 at 02:55:04AM +0200, Carlos E. R. wrote:
On 2010-08-29 22:19, Tony wrote:
Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC.
It does not matter how you set it up, local or utc. Linux can handle both. However, after you change the settings (in YaST) and set up the clock, you have to delete the "/etc/adjtime" file (it will be recreated).
To avoid problems with how the desktop might handle the clock, manipulate it on an xterm, as root ("su -", the dash is important), with the command "date".
This suggestion is misleading and not needed.
This suggestion is proper and proven.
Please follow the advice given by James in this thread. That's the correct way to address your issue.
Please follow my advice. Please be polite and prove your point. You are as Suse employee and should know better than blatantly disregard advices like that. :-/ - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkx853UACgkQU92UU+smfQUAwACgg97P6QFekOv9JCaZf77gopU5 frkAniYTFv3fbomHIN4aolCm3ynMy+Mm =4Ru5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Aug 31, 2010 at 01:28:53PM +0200, Carlos E. R. wrote:
On 2010-08-31 13:09, Lars Müller wrote:
On Mon, Aug 30, 2010 at 02:55:04AM +0200, Carlos E. R. wrote:
On 2010-08-29 22:19, Tony wrote:
Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC.
It does not matter how you set it up, local or utc. Linux can handle both. However, after you change the settings (in YaST) and set up the clock, you have to delete the "/etc/adjtime" file (it will be recreated).
To avoid problems with how the desktop might handle the clock, manipulate it on an xterm, as root ("su -", the dash is important), with the command "date".
This suggestion is misleading and not needed.
This suggestion is proper and proven.
It is not as this might lead to non continous time changes. That's why running ntpd on a host all the time compared to calling ntpdate called by cron is of advantage.
Please follow the advice given by James in this thread. That's the correct way to address your issue.
Please follow my advice.
Please be polite and prove your point. You are as Suse employee and should know better than blatantly disregard advices like that. :-/
Hey, your advice is not the correct way to address time issues. That's it. There is nothing to add as James already gave the correct instructions. EOT Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-31 13:37, Lars Müller wrote:
On Tue, Aug 31, 2010 at 01:28:53PM +0200, Carlos E. R. wrote:
This suggestion is misleading and not needed.
This suggestion is proper and proven.
It is not as this might lead to non continous time changes. That's why running ntpd on a host all the time compared to calling ntpdate called by cron is of advantage.
Calling ntpd is not advisable for everybody. Only if you have a permanent internet connection. And before that, you have to correct the base problem.
Hey, your advice is not the correct way to address time issues. That's it. There is nothing to add as James already gave the correct instructions.
Yes, it is, and you should know it. When people start adjusting the clock one direction and the other, the /etc/adjtime file gets "confused" with wrong data. It is typically responsible for the clock jumping hours forward or backwards on every single boot. This has been known for ages, and the proper advice is to delete that file after manually adjusting the clock - and then add ntp services if you like. If you don't believe me, just read the clock threads going back for a decade, and find out how many people had their clock problem solved by just deleting that file - which is then recreated correctly by the suse clock scripts. Using NTP is just the same as setting the clock manually, but instead, automatically. Every time you move the clock, the adjtime file is adjusted too, recording how fast or slow the system clock is compared to the CMOS clock. Jump it one hour, and the file will record that, and repeat it on boot. That's the problem, and it is known. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkx8/HgACgkQU92UU+smfQW8fACcCDaNTyWqCIBus7ZCOMi/+v+Y pLkAoIw+7Mz1GcVSeHWZqVUoniBNdDjr =H+ao -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 08/29/2010 07:55 PM, Carlos E. R. wrote:
On 2010-08-29 22:19, Tony wrote:
Anyhow I tried the suggestion above prior to making my post, and tried setting hw clock to UTC and I still have a 1 hour diff, regardless if hwclock is set to local or UTC. Another words system clock is always set to 1 hour off regardless if hwclock is local or UTC. It does not matter how you set it up, local or utc. Linux can handle both. However, after you change the settings (in YaST) and set up the clock, you have to delete the "/etc/adjtime" file (it will be recreated).
To avoid problems with how the desktop might handle the clock, manipulate it on an xterm, as root ("su -", the dash is important), with the command "date".
Time issued solved, as it turns out I had everything setup correctly, was a bug of some sort. Just today I applied an update/patch for 2 packages yast2-country, yast2-country-data. The patch for yast2-country talked about the problem I was having, or I was having it's working great now. This was a bug somewhere apparently, thanks for all the good suggestions. Tony -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-09-09 02:11, Tony wrote:
On 08/29/2010 07:55 PM, Carlos E. R. wrote:
Time issued solved, as it turns out I had everything setup correctly, was a bug of some sort.
Just today I applied an update/patch for 2 packages yast2-country, yast2-country-data. The patch for yast2-country talked about the problem I was having, or I was having it's working great now.
This was a bug somewhere apparently, thanks for all the good suggestions.
Curious! I had no idea about that, of course. Thanks for telling us. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkyKygIACgkQU92UU+smfQUYbQCgkU0OH85sq6Qe4NU4JU0hgp6o mmMAniQ6DoTplU2exwjjZ7h6CTG2HrDw =TQJG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carlos E. R.
-
Carlos E. R.
-
James Knott
-
Lars Müller
-
Tony