LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Time keeping problem is ir software or hardware? (https://www.linuxquestions.org/questions/linux-desktop-74/time-keeping-problem-is-ir-software-or-hardware-4175458522/)

1sweetwater! 04-17-2013 02:40 PM

Time keeping problem is ir software or hardware?
 
What keeps changing my desktop clock 12 hr time to 24 hr time and losing correct time in the hardware clock?
When the desktop time changes I check BIOS clock and notice that it can either be the same or different.
I'm using Mint14Cinnamon. I set desktop to non network and close Date &Time settings. I work with programs on the computer a while and go back to Date&Time settings and Network setting is checked. This can happen also when shutting down and re booting.
I've reset CMOS by removing battery and 20 minutes later replace the battery with new one said to be good until 2015.
I just got this board back from a second RMA for previous two boards having same/similar problems.
Is Mint broken? Is motherboard in need of a 3rd RMA? Should I go back to Windoze?
Use to be an Ubuntu user until they flaked it out with Unity. It seems Mint is doing th same with it's desktop options.
Bring back the desktop used in Ubuntu 10.04 and 10.10 please...
I swear since Ubuntu 10.04 Linux has gone the way of Windoze. Thanx if you can help!!!%:))SW
This is a year old build: TA75M/A4-3300/8gbKingstonPC3HyperX1333/Seagate1tb/LGcd/dvd drive/ Antec Basiq430w.

tronayne 04-17-2013 03:23 PM

Desktop clock changes? No clue -- that should be in your desktop settings somewhere or other.

Time changes? Clue. Download (if not already there), install and configure NTP (Network Time Protocol). If I'm not not mistaken, "South Central Moontana" is in Australia? When you configure /etc/ntp.conf, add entries of this form in the in the server area:
Code:

server        127.127.1.0        # local clock
fudge        127.127.1.0 stratum 10       
#server  pool.ntp.org
server  0.au.pool.ntp.org
server  1.au.pool.ntp.org
server  2.au.pool.ntp.org

In the above, the local clock lines should be there -- they're there so if no external time source is available NTP will sync to itself until one becomes available. I checked, those entries are "live."

If, for some reason there are no pool servers available to you at your location using the above notation, you may -- may! -- wish to do the following (but probably not):

There are 27 NTP public time servers listed for Australia at http://support.ntp.org/bin/view/Serv...alia&scope=all, ping them, you're looking for three that are electrically close to you (the shortest time), add the addresses of those three to your /etc/ntp.conf file. You do not need more than three; if one is not available, NTP will automatically drop to the next.

Use the pool servers if at all possible.

Don't know diddly about your distribution, but do know that NTP is available from their software download site and it would be worth your time (get it?) to install, configure and use it -- it keeps your software clock and hardware clock on time.

Hope this helps some.

1sweetwater! 04-17-2013 07:49 PM

Desktop clock changes? No clue
 
Thanx tronayne, I'm a bit command line challenged due to dementia [I need prompting to get going and stay on track] but I did use synaptic to get NTP from repositories and installed it. Wonder why Mint didn't include it installed?
I don't remember having to do this with Ubuntu 10&11...
Now I've gotta find NTP in the menus and see if I can manipulate the settings to suit me.
BTW Moontana is my joke expression for Montana in the USofA. I'm actually in the Billings area---biggest city in state at about 100,000 blokes/lads/lassies/people.
I really ought to put more in my profile aye?!? Too much dementia and too little time!!!
I appreciate the help tronayne!!! %:))SW

jACK-ah 04-17-2013 10:30 PM

Bro I think the sell I not sure but I thinnk that coul be the problem the cell inside you cpu Its round type cell is gone week insert a new one and set the time again

1sweetwater! 04-17-2013 11:58 PM

Thanx for the reply. I'm sure I mentioned that I replaced the battery after leaving it out for 20-30 minutes so CMOS would reset and I'd have better power for the sys clock.

tronayne 04-18-2013 06:41 AM

Well, OK, Montana, USA (had a cataract op Monday, not seeing too clearly with both eyes yet --other one gets fixed the 29th -- but, boy! that new lens sure is bright).

So, you want to use three US pool servers:
Code:

server        127.127.1.0        # local clock
fudge        127.127.1.0 stratum 10       
#server  pool.ntp.org
server  0.us.pool.ntp.org
server  1.us.pool.ntp.org
server  2.us.pool.ntp.org

Thing is, the two clocks are not "connected;" the hardware clock sets the software clock when you boot and runs in the kernel with interrupts. Using NTP, the software clock is kept accurate and the hardware is nudged into the correct time periodically so that eventually it's more or less accurate (neither one is ever going to be like your $30 wristwatch, corrections need to be applied, NTP does that for you).

Winders does that by default (Windows users are not expected to know how the pick their noses, let alone fiddle with computer clocks and the like), many Linux distributions install and enable NTP, some do, some don't and it's left to you to turn it on -- you've got one of those.

Can't hurt, will help.

Z038 04-18-2013 12:42 PM

1sweetwater!, depending on kernel settings, your system clock may be set from the hardware clock during boot up, and the hardware clock set from the system clock during shutdown. Some distributions may have other controls for syncing the clocks. You can issue the following (as root) to see if your hardware clock and your system clock are out of sync.

Code:

hwclock ; date
The first output will be the hardware clock date and time and the second is the system clock date and time, both displayed in local time, even if your hardware clock is set to UTC. They should be identical or very close, within a second.

If they aren't, then you can set the system clock using ntpd with the -q option and then set the hardware clock from the system clock. Do this as root.

Code:

ntpd -q && hwclock --systohc
Now if you are running the ntpd service full time, your system clock should stay correct, and you should check to be sure that the hardware clock is being set from the system clock during shutdown.

1sweetwater! 04-20-2013 05:08 AM

Time keeping problem is it software or hardware?
 
Well, decided to remove Mint Cinnamon; it was either not inclined to let me do things via menus or had a corrupt install. Replaced it with Mint Mate and it was easier to work with and I think I have the time thing solved. Desktop has been reporting correct for a day or so.
If not I'll be back!!!%:))SW















i


All times are GMT -5. The time now is 02:48 AM.