Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 was wondering if any one came across that issue before. Everytime I reboot my PC something (I assume GNOME) reset my system clock to an hour behind what is was the last time. So if a reboot twice in a row that'll be two hours behind and so on. It used to work fine until I had to change my system time backward temporally to overcome and issue with GPG. Since I put it back I get that phenomena. It's like it's adjusting it for the Day light saving everytime a boot. Problem is Japan does not have any day light saving.
I run OpenSuse 11.2 with Gnome 2.28.2 as my interface.
I'm currently located in Japan GMT+9 not DST.
/etc/localtime -> /usr/share/zoneinfo/Asia/Tokyo
I suspect a bug in Gnome or Yast. It's not user specific because the time is already altered even before I log it.
Now If anyone has a clue about how to fix that, I'll be much grateful.
I would normally say a ntp issue. Not sure how a reboot could do that more than once.
The only other thought is using USA devices on 50Hz Japan power. Can't say how that would do it, normally the time is at wrong speed.
Try to boot with all network access off, remove ethernet.
Simply boot to bios and check time a few times. Be sure to do a cold boot. I mean cold. Remove ac plug and press power a few times, then return plug and boot to bios. Does it keep changing?
Thank you all for taking time to reply to my post.
It is a weird bug, it must be Gnome. It only started recently after I moved the clock backward temporarily. I should reboot the system at init 3 and see if that occur. Even if I can blame it on Gnome that won't help me though but that's a lead.
In the mean time I am going to play with hwclock and have a read about NTP.
Quote:
You don't say if you are "dual-booting" with windows.
I am running Windows XP but virtually so that can't be the cause.
Try to boot with all network access off, remove ethernet.
Simply boot to bios and check time a few times. Be sure to do a cold boot. I mean cold. Remove ac plug and press power a few times, then return plug and boot to bios. Does it keep changing?
I did try a cold boot but it doesn't make a difference.
Cold or warm if I get into the BIOS the time is the same as the last time I shut down the PC. It's later on during boot time that the clock gets modified.
That's a weird one.
I ran some tests by loading Linux at different run level.
The first time I boot Linux under level 1 the clock changes back an hour. The next consecutive time at level 1 the clock remains the same.
Alternatively the first time I boot the system from level 1 to level [2 or 3 or 5] the clock don't change, but the next time the clock will change back an hour.
That's beyond my understanding, my last hope is NTP or a kernel update.
Cold or warm if I get into the BIOS the time is the same as the last time I shut down the PC.
This would imply that your CMOS clock hardware is broken, or the battery is flat, but perhaps I misunderstand you, and you mean the time error (if any) is the same as it was when you last shot down (in which case the HWclock is OK).
My guess is that when your PC boots, and the network is up, ntp is setting the time for you. I don't understand why ntp is out by an hour though.
Anything interesting in one of your environment variables?
Quote:
I am running Windows XP but virtually so that can't be the cause.
I don't run anything in a VM, so it is difficult to offer advice here, but maybe you should double-check that windows (even in a VM) isn't the cause. I suspect it might be.
See if you have `zic` on your system. zic is the 'timezone compiler' and the manpage may give you some clue or hint about something else to investigate. If you don't have the manpage for zic, then your system doesn't use it so don't worry about that.
Second: if it were me, I'd be having a good look at my init and shutdown scripts, and examine any code having to do with reading or setting or saving the time during boot or shutdown. I don't know how something like this weird situation would start pretty much by itself (or how an init script would get altered without the admin altering it), but it'd be worth a look anyhow.
Don't what the cause might be, but a workaround might (might) be to put this line in /etc/init.d/halt.local
Code:
/sbin/hwclock --systohc
Which will set the hardware clock to whatever Linux currently thinks the time is. Obviously you need to make sure Linux knows the correct time before you try this.
I also have to venture that this is probably an error somewhere in the configuration scripts for the time. Possibly something with gnomes time management or what not. I would rule out any hardware issues since time was unaffected when you prevented the system from booting into the OS. One thing to note is you can set your bios to UTC and then setup your time stuff to give you the time based on your time zone. If you don't do this the time zone information is ignored and time is retrieved from the bios.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.