Linux Lite Forums

Software - Support => Other => Topic started by: ohjrson on May 21, 2014, 09:19:24 PM

Title: Constant time adjustment [Still Happening]
Post by: ohjrson on May 21, 2014, 09:19:24 PM
So this has been my issue for quite some time. I have not really put it in here because I have been waiting for someone else to maybe have the same problem. Alas no one seems to have this issue. What is happening is that my time is losing time as the computer is on. in one week it will be off by an hour and I have to reboot. Problem is that when I do this it does not always reboot, and I have to do some other things to get it to boot up into ubuntu 12.04 then it goes ahead and finishes its boot up. Aside from that when it does boot up the time is reset. Yes I know that I can do this through the terminal and I have been doing that of late, but it is getting annoying that I constantly have to manually update and reset the time.

My specs are as follows:
-Computer-
Processor      : 2x Intel(R) Pentium(R) 4 CPU 2.80GHz
Memory      : 1802MB (893MB used)
Operating System      : Ubuntu 12.04.4 LTS
User Name      : (omitted)
Date/Time      : Wed 21 May 2014 08:59:47 PM EDT
-Display-
Resolution      : 1024x768 pixels
OpenGL Renderer      : Advanced Micro Devices, Inc. [AMD/ATI] RV530 [Radeon X1600 Pro] (prog-if 00 [VGA controller])
X11 Vendor      : The X.Org Foundation
-Multimedia-
Audio Adapter      : ICH4 - Intel ICH5
-Input Devices-
 Power Button
 Power Button
 AT Translated Set 2 keyboard
 Logitech Trackball
 Logitech USB Receiver
 Logitech USB Receiver
 spca561
-Printers (CUPS)-
Photosmart_C6300
-SCSI Disks-
ATA ST3160827AS
ST350063 0AS

What is the resolution to this problem? I also can't seem to do anything with the programs I downloaded for the ATI video cards, unsure what or why that does not work.
Any help with this will be great!...
Thanks
Ohjrson
Title: Re: Constant time adjustment
Post by: Jerry on May 21, 2014, 09:30:56 PM
Time - have you read the 'Setting the Time and Date' section in the Help Manual under Network? As for the ATI issue, please post in the Video Card section of the Forums. Thank you.
Title: Re: Constant time adjustment
Post by: ohjrson on May 21, 2014, 11:34:05 PM
Sorry Valtam I may not have made myself clear when I said: Yes I know that I can do this through the terminal and I have been doing that of late, but it is getting annoying that I constantly have to manually update and reset the time. I should have said that, Yes I have looked in the help menu for the networking and the time and date information. This is what I am doing.

sudo hwclock --hctosys
After I enter my password it does what it does and resets the time, then I enter this:
sudo ntpdate ntp.ubuntu.com where it does its thing getting the information etc... and all is good. The thing is I am doing this about every day or two. The time on my computer gets off by 30 minutes to an hour at times. I am trying to find out why.

BTW just dl Linux Lite 2.0 Beta and I am loving it!!!!! Downloaded it in I think 10 minutes then put it right into a 2g usb and popped it in my Acer 3000 laptop and is running beautifully from the Live USB. (so I am really excited about installing it very soon) I will have some suggestions though...I have had them for a while just have not had time to submit them. But I love LL2.0 !!! Great Job...
Title: Re: Constant time adjustment
Post by: Jerry on May 22, 2014, 12:10:14 AM
Is this on a laptop or desktop? It's possible that if this is an old machine, the cmos battery may need replacing.
Title: Re: Constant time adjustment
Post by: ohjrson on May 22, 2014, 12:24:47 AM
Desktop, and I have thought of that. But I remember that I saw in my bios one day that the time there was incorrect... so I corrected it.

Just re-read everything and I see what you mean. Sorry about that. I have several computers, the one I am on now is a desktop. The one I put LL2.0 on is an Acer Aspire 3000 Laptop.

However getting back to the battery, (IMHO) I think that it would not be related to the battery as the machine is left on and the time slips away (into the future...lol) slowly.

Les
Title: Re: Constant time adjustment
Post by: N4RPS on May 22, 2014, 12:32:31 AM
Hello!

If I were you, I'd still pop a fresh CR2032 into that pup and see if that changes things. A bad battery can still cause time issues, even if the PC is left on.
After that, I'd check your power supply voltages. That would explain why you're running slow, even when it's on, as they usually run FAST...

73 DE N4RPS
Rob
Title: Re: Constant time adjustment
Post by: ohjrson on June 12, 2014, 12:45:11 AM
Yeah did the fresh battery thing and tested the old one (battery) it still had 2.5 volts in it so not sure that did anything.

Power supply is working fine. I did set the time to the correct time in the bios, so not sure if that will make a difference.

What else could it be?
Title: Re: Constant time adjustment
Post by: N4RPS on June 12, 2014, 01:22:16 AM
Hello!

The CR2032 CMOS battery voltage is SUPPOSED to be 3.2 V. I'd change it. It could be producing a fairly decent voltage and, at the same time, not provide adequate current to properly run the oscillator.

After that, keep a watch on the system time in the BIOS, as well as in the OS. If it continues to change, and you're CERTAIN that your power supply's good (I'd change THAT, also, if you have a known good spare), then you most likely have a weak component in the oscillator portion of the real-time clock - most likely, a capacitor.

Some computers display the power supply voltages in the BIOS, but I use a special tester that cost me around $30, just to check power supplies. It gives me a digital display of both voltage and amperage for ALL the outputs.

Look at the electrolytic capacitors on the motherboard (they look like little cans). If the tops of ANY of them are bulging or have ruptured, then the motherboard is pretty much history. You could 'recap' it, but at that point, it'd be cheaper to buy (or scrounge) another old machine instead...

73 DE N4RPS
Rob
Title: Re: Constant time adjustment
Post by: ohjrson on June 14, 2014, 10:51:15 PM
Thanks N4RPS for the information.
AS it happens I have a little bit of electronics knowledge but not a lot. I knew that those little cans were capacitors but I did not know their full name, or that they are electrolytic. It just so happens I have a DVD recorder that won't power on at all now and when I took off the cover I saw that one of them had indeed blown. Odd thing is that it was on before and just would not come on again once I shut it off. The power board is separate from the rest of the system and is connected by ribbons and such to the other components. How difficult is it to replace those and would it be worth actually trying to or better/less expensive to try and order a replacement power board from the manufacturer.

As for the issue with the time slowly slipping away. it seems I am still having the issue, even aftger replacing the battery for the cmos. I am going to have to look into the power supply more closely to see if something similar has happened. But so I am clear you are saying that if those (capacitors) have any sign of bulging or blown then the mother board is no good and I should just get another one?

Let me know.
Thanks again.
Title: Re: Constant time adjustment
Post by: N4RPS on June 15, 2014, 02:18:42 PM
Hello!

Yes, that's what I'm saying.  Even though the capacitors are, in quantity, a few cents each, by the time you buy the many (and many different values of) electrolytic capacitors, and expend the effort to change them all, you approach the cost of a new motherboard.

Additionally, you don't know if it'll even work again after you've done all that, as changing certain components out affects others in ways you just can't predict...

73 DE N4RPS
Rob
Title: Re: Constant time adjustment
Post by: ohjrson on August 19, 2014, 11:46:52 PM
Ok N4RPS
   I have made a discovery of sorts I guess. I recently looked at my time on my Linux lite OS and it was off quite a bit. So as normal I went to the command prompt and did an update and low an behold it updated to the right time. SO..... the Bios is keeping the right time but the OS LL 1.08 is dropping off slowly for some reason. Now I still have the LL 1.08 on my laptop and it has no problem keeping time. So any idea's as to what may not be set right in the OS?

Thanks.
Title: Re: Constant time adjustment
Post by: rokytnji on August 19, 2014, 11:59:49 PM
https://help.ubuntu.com/community/UbuntuTime

Code: [Select]
sudo dpkg-reconfigure tzdata
Quote
Follow the directions in the terminal.
Title: Re: Constant time adjustment
Post by: gold_finger on August 20, 2014, 12:18:56 AM
ohjrson,

See if anything here helps:  http://forums.linuxmint.com/viewtopic.php?f=110&t=155246#p806451 (http://forums.linuxmint.com/viewtopic.php?f=110&t=155246#p806451)
Title: Re: Constant time adjustment
Post by: ajoseph on August 28, 2014, 08:26:50 PM
Good day,

Had a similar problem with my laptop after installing LL 2.0. Having tried online remedies to try to change system admin time (and restarting the machine many times) to no avail, I turned to synaptic. Found a prog called "gnome-time-admin". I set my time and date in there and have had no problems since.

Note: Only experienced this issue with the Laptop. Desktop kept Time and Date perfectly after LL 2.0 installation.

Title: Re: Constant time adjustment
Post by: ohjrson on September 15, 2014, 04:43:25 PM
I seem to be having the same issue I was having with LL 1.08 regarding losing time with LL 2.0 or Beryl.

I have done a hardware update with the NTP server and the time is correct now. I used what rokytnjl suggested on the code and it showed my hardware time was out of sync so with that synced up now I am hoping it will stay. I was hoping that I would not have this issue with LL 2.0 or Beryl. and the odd thing is I did the install for Beryl on my laptop and it seems fine. So go figure.
Title: Re: Constant time adjustment
Post by: Scott on September 15, 2014, 07:18:00 PM
Hi Ohjrson,

Does this laptop sometimes boot to Windows? I know one cause for out of sync time is booting between an OS on local time (usually Windows) and an OS on universal time (usually Linux).

~Scott
Title: Re: Constant time adjustment
Post by: ohjrson on September 15, 2014, 07:40:01 PM
Hi Ohjrson,

Does this laptop sometimes boot to Windows? I know one cause for out of sync time is booting between an OS on local time (usually Windows) and an OS on universal time (usually Linux).

~Scott

No it is exclusively LL 2.0 or Beryl.
Oddly enough now my laptop is having wireless issues... Go figure.
update: That issue was resolved and should be correctly marked.

As far as the time. I have left the computer on and it looks like I have lost 4 minutes since Monday.
Title: Re: Constant time adjustment
Post by: ohjrson on September 24, 2014, 02:45:16 PM
Update:
 Well it seems that the time is anywhere from 2 minutes to 13 minutes off. However it seems to reset itself periodically.

Is there a program I can put in to help keep this as close to the right time as possible?

Update: Just did a reboot to my system because the time was off by 10 minutes.
Had let the system run for 4 days. Lost the time over that many days.

Update: as of today the time is now 22 minutes ahead of what it is supposed to be and the computer has been running for 5d 3:21
Why is this happening?
Thanks
ohjrson
Title: Re: Constant time adjustment [Still Happening]
Post by: ohjrson on October 01, 2014, 12:09:49 AM
Anybody?
Title: Re: Constant time adjustment [Still Happening]
Post by: bitsnpcs on October 01, 2014, 02:28:14 AM
Hello Ohjrson,

I found this website http://linux.die.net/man/8/hwclock (http://linux.die.net/man/8/hwclock)

It states "You can also run hwclock periodically to insert or remove time from the Hardware Clock to compensate for systematic drift (where the clock consistently gains or loses time at a certain rate if left to run)."

Systemic drift sounds like/similar to what you have described.

In the options area of the page it covers
Code: [Select]
-u
 --utc
--localtime

and states -
"If you specify the wrong one of these options (or specify neither and take a wrong default), both setting and querying of the Hardware Clock will be messed up. "

It may be worth looking into these on the link in more detail and altering these settings to see if any of these options solve the issue.

Reading a little more on this I notice -
"It works like this: hwclock keeps a file, /etc/adjtime, that keeps some historical information. This is called the adjtime file. "

So if this file is absent or not working for some reason then the hwclock will not check the current time and adjust the clock correctly, I am unsure how to test the adjtime file.
Finding this out would probably be better to test first before altering any of the options for hwclock. 
Title: Re: Constant time adjustment
Post by: anon222 on October 01, 2014, 10:33:48 PM
Update:
 Well it seems that the time is anywhere from 2 minutes to 13 minutes off. However it seems to reset itself periodically.

Is there a program I can put in to help keep this as close to the right time as possible?

Update: Just did a reboot to my system because the time was off by 10 minutes.
Had let the system run for 4 days. Lost the time over that many days.

Update: as of today the time is now 22 minutes ahead of what it is supposed to be and the computer has been running for 5d 3:21
Why is this happening?
Thanks
ohjrson
I'm not sure why this happens.
Try this
Code: [Select]
sudo apt-get install gnome-time-admin ntpYou'll find 'Time and Date' in the Whisker menu. Open it and click on Unlock and it will ask you for a password. You should see 'Manual' option.
Switch it to the other option, something like 'Keep time synchronised with web servers'.
I hope this helps.
Title: Re: Constant time adjustment [Still Happening]
Post by: ohjrson on October 09, 2014, 02:12:17 PM
Thanks.
      I have installed and will see what happens now.