Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: LoadWB on July 17, 2012, 08:12:44 AM

Title: MorphOS on MacMini loses time
Post by: LoadWB on July 17, 2012, 08:12:44 AM
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?  Is there a good utility to automatically update the time using NTP?
Title: Re: MorphOS on MacMini loses time
Post by: Geit on July 17, 2012, 09:41:14 AM
It is called SetClockNTP and delivered with MorphOS. If it really looses a few minutes per hour, then you should launch a script which looks like this:

Lab loop
SetClockNTP
Wait 60 mins
Skip loop BACK

This will update the clock every 60 minutes.

To launch the script automatically just create a file in S: named "network-startup" with the following lines:

execute MOSSYS:s/network-startup
execute s:FixClock.script

Of course the FixClock.script file is the one you created above and you must ensure to just create/edit the network-startup in SYS:S.

Geit
Title: Re: MorphOS on MacMini loses time
Post by: kolla on July 17, 2012, 01:25:56 PM
I'd rather find out why it is losing several minutes per hour, sounds like either hardware failure or OS bug. When you just run SetClockNTP, which ntp servers are used?
Title: Re: MorphOS on MacMini loses time
Post by: Dragster on July 17, 2012, 02:16:46 PM
Quote from: LoadWB;700381
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?  Is there a good utility to automatically update the time using NTP?

It could be a dying battery... have u thought of replacing it?


Cheers,


Dragster
Title: Re: MorphOS on MacMini loses time
Post by: LoadWB on July 17, 2012, 03:17:34 PM
Quote from: Dragster;700408
It could be a dying battery... have u thought of replacing it?


Cheers,


Dragster


I have not, silly man.  Apple products contain no user serviceable parts and are made from Unicorn farts and powered by dreams!

But seriously, I'll check on that battery.


@Geit: that's a pretty elegant solution.  I'll play with that.

@Kolla: No idea, but I'll find out later tonight when I get home.
Title: Re: MorphOS on MacMini loses time
Post by: mpiva on July 17, 2012, 04:01:11 PM
Quote from: kolla;700401
I'd rather find out why it is losing several minutes per hour, sounds like either hardware failure or OS bug. When you just run SetClockNTP, which ntp servers are used?



Stop operating your computer so close to light-speed.  :biglaugh:
Title: Re: MorphOS on MacMini loses time
Post by: jj on July 17, 2012, 04:16:54 PM
@LoadWb   Are dual or tripple booting ?
 
Because when i used to switch between MorphOS and MacOs It would always knock my time out by an hour
Title: Re: MorphOS on MacMini loses time
Post by: LoadWB on July 17, 2012, 08:18:02 PM
Quote from: JJ;700413
@LoadWb   Are dual or tripple booting ?
 
Because when i used to switch between MorphOS and MacOs It would always knock my time out by an hour


No, straight up MorphOS.  I also forgot to mention that the hardware is not losing time: when I reboot, all is well on the time.
Title: Re: MorphOS on MacMini loses time
Post by: Templario on July 17, 2012, 10:57:28 PM
No, I have the batery K.O.
Title: Re: MorphOS on MacMini loses time
Post by: XDelusion on July 17, 2012, 10:57:51 PM
Just got my mini yesterday and it's right on time.
Title: Re: MorphOS on MacMini loses time
Post by: Karlos on July 17, 2012, 11:38:02 PM
Quote from: LoadWB;700381
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?  Is there a good utility to automatically update the time using NTP?

Are you sure it's not just the fact your OS is so fast it's suffering relativistic effects? :)

Seriously though, Isn't SetClockNTP* (C: command) what you want? If memory serves that's been around since long before 2.7...

-edit-

*Sorry, late to the party, I see that's been pointed out already.
Title: Re: MorphOS on MacMini loses time
Post by: LoadWB on July 18, 2012, 04:35:43 AM
Quote from: Karlos;700470
Are you sure it's not just the fact your OS is so fast it's suffering relativistic effects? :)

Seriously though, Isn't SetClockNTP* (C: command) what you want? If memory serves that's been around since long before 2.7...

-edit-

*Sorry, late to the party, I see that's been pointed out already.


SetClockNTP works just fine.  I did not know it existed, so that's good.  The underlying problem remains, however, that as MorphOS runs on this box it loses time.  I'm going to try the scripted method for fixing that -- I suppose there's no "cron" in MorphOS?

Which brings up another issue.  If the network cable is not connected, I cannot get the TCP/IP stack to pull an address from DHCP once it is connected.  ifconfig down/up does not trigger DHCP, and dhcp is not a valid argument to ifconfig.  How do I tell the TCP/IP stack to pull a new DHCP lease?
Title: Re: MorphOS on MacMini loses time
Post by: hooligan on July 18, 2012, 05:16:39 AM
Quote from: LoadWB;700381
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?  Is there a good utility to automatically update the time using NTP?


So does both of my PS3's :)
Title: Re: MorphOS on MacMini loses time
Post by: kolla on July 18, 2012, 12:43:37 PM
Running a loop script that runs SetClockNTP every hour is not elecant, it's cludge, a really ugly work-around. MorphOS could do with both a real NTP capable time server, and also a scheduler (cron). Those who dual boot with OSX and suffer from hour offsets, that's because OSX is doing The Right Thing™ having the hardware clock set to UTC and calculating the local time from the locale settings - MorphOS should do that same.
Title: Re: MorphOS on MacMini loses time
Post by: LoadWB on July 18, 2012, 02:43:14 PM
Quote from: kolla;700522
Running a loop script that runs SetClockNTP every hour is not elecant, it's cludge, a really ugly work-around. MorphOS could do with both a real NTP capable time server, and also a scheduler (cron). Those who dual boot with OSX and suffer from hour offsets, that's because OSX is doing The Right Thing™ having the hardware clock set to UTC and calculating the local time from the locale settings - MorphOS should do that same.


It was kind-of tongue-in-cheek.  Something like ntpd would be nice within MOS.  How does MOS handle the hardware clock and time zones?
Title: Re: MorphOS on MacMini loses time
Post by: Boot_WB on July 18, 2012, 09:01:11 PM
Quote from: LoadWB;700381
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?
 

Not here, Powerbook, Mac Mini both keep adequate time - no noticable loss per day. Can't say I've compared them against an atomic clock though.

Kolla - ntpd seems a bit overkill for me, a light command line tool with predictable runtime which I can call on demand is fine for such a trivial task, rather than than running a daemon doing comparative analyses of delay times, polling servers every 64 seconds, etc.
I can live with the trade off of possible inaccuracy of a few seconds.
Totally agree about the hardware clock offset though, seems such an obvious annoyance to fix.
Title: Re: MorphOS on MacMini loses time
Post by: smerf on July 20, 2012, 02:35:22 AM
Quote from: LoadWB;700381
My MacMini MorphOS machine loses time.  Several minutes per hour.  Anyone else have this problem?  Is there a good utility to automatically update the time using NTP?


Hi,

Just be grateful that is all you lost, several minutes, my Macmini with morphos was a complete waste of time. ;-D

Just kidding.

smerf