Welcome, Guest. Please login or register.

Author Topic: MorphOS on MacMini loses time  (Read 4358 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline LoadWBTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
MorphOS on MacMini loses time
« 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?
 

Offline Geit

  • Newbie
  • *
  • Join Date: Dec 2009
  • Posts: 34
    • Show only replies by Geit
Re: MorphOS on MacMini loses time
« Reply #1 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
« Last Edit: July 17, 2012, 09:45:16 AM by Geit »
 

Offline kolla

Re: MorphOS on MacMini loses time
« Reply #2 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?
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Dragster

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 1003
  • Country: mx
  • Gender: Male
    • Show only replies by Dragster
Re: MorphOS on MacMini loses time
« Reply #3 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
Amiga 1200T 603/240, 060/50, SCSI II, Plextor 40/12/40S SCSI CDRW, Plextor 40X SCSI CDROM, Fujitsu 36GB 10KRPM SCSI HD, Pioneer 305S SCSI DVD, BVisionPPC, 256 MB FASTRAM, PowerFlyer EIDE, Scandex external scandoubler, ZIV busboard, Algor USB, Wireless, repulse audio...Peg II Quadruple boot: OS4.1FE/MorphOS 3.9 regged, OpenSUSE11.1 & Debian Squeeze, Powerbook G4 1139 MorphOS3.9, A4000D CSPPC/PIV/DENEB OS3.9/4.1FE, A4000T CSPPC/CVPPC/SCSI, etc.. 2
 

Offline LoadWBTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: MorphOS on MacMini loses time
« Reply #4 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.
 

Offline mpiva

  • Sr. Member
  • ****
  • Join Date: Aug 2003
  • Posts: 297
    • Show only replies by mpiva
    • http://members.shaw.ca/michpiva
Re: MorphOS on MacMini loses time
« Reply #5 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:
-- Michael A. Piva --


"In engineering, there is no single truth, no one right answer; there\'s a canvas, and you paint it your way, only with chips or gates or subroutines rather than actual paint. That\'s the Amiga..."
-Dave Haynie
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: MorphOS on MacMini loses time
« Reply #6 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
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline LoadWBTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: MorphOS on MacMini loses time
« Reply #7 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.
 

Offline Templario

Re: MorphOS on MacMini loses time
« Reply #8 on: July 17, 2012, 10:57:28 PM »
No, I have the batery K.O.
Amiga 500 with ROMs 1.3-2.05 and M-Tec AT 500 with hard disk and 4MB Ram.
WinUAE + Original OS 3.5&3.9
Sam440ep 800 MHZ + OS 4.1 F.E.
Sam460ex 1 GHz + OS 4.1 + Update 6. K.O.
MacMini 1.5 GHz + MorphOS 3.9
PowerBook G4 1.65 + MorphOS 3.9
 

Offline XDelusion

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: MorphOS on MacMini loses time
« Reply #9 on: July 17, 2012, 10:57:51 PM »
Just got my mini yesterday and it's right on time.
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: MorphOS on MacMini loses time
« Reply #10 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.
« Last Edit: July 17, 2012, 11:41:14 PM by Karlos »
int p; // A
 

Offline LoadWBTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: MorphOS on MacMini loses time
« Reply #11 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?
 

Offline hooligan

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 515
    • Show only replies by hooligan
    • http://www.mikseri.net/hooligan
Re: MorphOS on MacMini loses time
« Reply #12 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 :)
 

Offline kolla

Re: MorphOS on MacMini loses time
« Reply #13 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.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline LoadWBTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: MorphOS on MacMini loses time
« Reply #14 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?