Mailing List Archive

date and time set to April 1976
Hi,

I've recently installed gentoo on a G4 TiBook and it's working fine.

However, I have a couple of unresolved problems, one of which being, the system doesn't remember the date. I had entered the correct date when installing, but it always follow the system date instead (the date that appears in Open Firmware when I boot it) and I have to reset the correct date every time I boot (otherwise I get compilation errors warning that I'm installing files that got modified in the future).

The system date turned back to April 1976 when I zapped the PRAM and NVRAM because it was impossible to boot Mac OS ; then I installed Gentoo and ever since it goes back again and again to 1976 (time is not stuck though ; time passing seems to be accurate, only, it is translated back to April 1976).

I tried to guess how to reset time and date in Open Firmware by typing commands that seemed appropriate (I tried "date" "set-date", "setdate"), but nothing worked :-(

Does anyone know a fix to this -- either, how I could set correct time and date in Open Firmware, or allow Linux to remember its own time and date ?

cheers,

Y-Lan


---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Re: date and time set to April 1976 [ In reply to ]
Try "hwclock -systohc" after you've set your system time. That should
set the hardware clock for you.

-Joe
--
gentoo-ppc-user@gentoo.org mailing list
Re: date and time set to April 1976 [ In reply to ]
On Monday 13 February 2006 13:36, Y-Lan Boureau wrote:
> Does anyone know a fix to this -- either, how I could set correct time
> and date in Open Firmware, or allow Linux to remember its own time and
> date ?

The relevant option is in /etc/conf.d/clock :
---
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"
---

followed by
% rc-update add clock boot
to make sure it runs at boot and halt.

> cheers,
> Y-Lan

Cheers,
Christophe

PS: my MacOS X won't boot anymore either, I wish I knew why.
--
gentoo-ppc-user@gentoo.org mailing list
Re: date and time set to April 1976 [ In reply to ]
Note that this can als indicate that the Mobo battery that keeps the time
synced when the power is off may be dead.

But try the hwclock stuff first.

On 2/13/06, Christophe Choumert <christophe.choumert@polytechnique.org>
wrote:
>
> On Monday 13 February 2006 13:36, Y-Lan Boureau wrote:
> > Does anyone know a fix to this -- either, how I could set correct time
> > and date in Open Firmware, or allow Linux to remember its own time and
> > date ?
>
> The relevant option is in /etc/conf.d/clock :
> ---
> # If you want to set the Hardware Clock to the current System Time
> # during shutdown, then say "yes" here.
>
> CLOCK_SYSTOHC="yes"
> ---
>
> followed by
> % rc-update add clock boot
> to make sure it runs at boot and halt.
>
> > cheers,
> > Y-Lan
>
> Cheers,
> Christophe
>
> PS: my MacOS X won't boot anymore either, I wish I knew why.
> --
> gentoo-ppc-user@gentoo.org mailing list
>
>


--
Ben Ricker
He's just this guy, you know?
Re: date and time set to April 1976 [ In reply to ]
Ben Ricker <ben.ricker@gmail.com> a écrit : Note that this can als indicate that the Mobo battery that keeps the time synced when the power is off may be dead.

No no, today we are April 14th, 1976, and four days ago was April 10th, 1976, so time is actually kept :-)

Thanks everyone, I'll try tonight as soon as I have my computer in front of me.

Cheers,

Y-Lan





But try the hwclock stuff first.

On 2/13/06, Christophe Choumert <christophe.choumert@polytechnique.org> wrote: On Monday 13 February 2006 13:36, Y-Lan Boureau wrote:
> Does anyone know a fix to this -- either, how I could set correct time
> and date in Open Firmware, or allow Linux to remember its own time and
> date ?

The relevant option is in /etc/conf.d/clock :
---
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"
---

followed by
% rc-update add clock boot
to make sure it runs at boot and halt.

> cheers,
> Y-Lan

Cheers,
Christophe

PS: my MacOS X won't boot anymore either, I wish I knew why.
--
gentoo-ppc-user@gentoo.org mailing list





--
Ben Ricker
He's just this guy, you know?


---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Re: date and time set to April 1976 [ In reply to ]
Actually someone just told me that the clock always works even if the battery is dead, so it means nothing that time is passing :-(
Hope it's not the case though.

Y-Lan Boureau <blauenote@yahoo.fr> a écrit :
Ben Ricker <ben.ricker@gmail.com> a écrit : Note that this can als indicate that the Mobo battery that keeps the time synced when the power is off may be dead.

No no, today we are April 14th, 1976, and four days ago was April 10th, 1976, so time is actually kept :-)

Thanks everyone, I'll try tonight as soon as I have my computer in front of me.

Cheers,

Y-Lan





But try the hwclock stuff first.

On 2/13/06, Christophe Choumert <christophe.choumert@polytechnique.org> wrote: On Monday 13 February 2006 ! 13:36, Y-Lan Boureau wrote:
> Does anyone know a fix to this -- either, how I could set correct time
> and date in Open Firmware, or allow Linux to remember its own time and
> date ?

The relevant option is in /etc/conf.d/clock :
---
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"
---

followed by
% rc-update add clock boot
to make sure it runs at boot and halt.

> cheers,
> Y-Lan

Cheers,
Christophe

PS: my MacOS X won't boot anymore either, I wish I knew why.
--
gentoo-ppc-user@gentoo.org mailing list





--
Ben Ricker
He's just this guy, you know?


---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.


---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Re: date and time set to April 1976 [ In reply to ]
Thanks everyone :-))

My system date is back to 2006 !

Cheers,

Y-Lan


--- Christophe Choumert
<christophe.choumert@polytechnique.org> a écrit :

> On Monday 13 February 2006 13:36, Y-Lan Boureau
> wrote:
> > Does anyone know a fix to this -- either, how I
> could set correct time
> > and date in Open Firmware, or allow Linux to
> remember its own time and
> > date ?
>
> The relevant option is in /etc/conf.d/clock :
> ---
> # If you want to set the Hardware Clock to the
> current System Time
> # during shutdown, then say "yes" here.
>
> CLOCK_SYSTOHC="yes"
> ---
>
> followed by
> % rc-update add clock boot
> to make sure it runs at boot and halt.
>
> > cheers,
> > Y-Lan
>
> Cheers,
> Christophe
>
> PS: my MacOS X won't boot anymore either, I wish I
> knew why.
> --
> gentoo-ppc-user@gentoo.org mailing list
>
>







___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
--
gentoo-ppc-user@gentoo.org mailing list
Re: date and time set to April 1976 [ In reply to ]
I looked at my OLD Power Mac MT (mobo fabbed in 1997) and it HAS a dead
battery. It resets to Jan 1, 1970 every reboot. Basic point: I do not think
it will "keep time" if the batter is dead.

Anyway, glad you have it fixed!

Au revoir,

Ben Ricker

On 2/14/06, Y-Lan Boureau <blauenote@yahoo.fr> wrote:
>
> Actually someone just told me that the clock always works even if the
> battery is dead, so it means nothing that time is passing :-(
> Hope it's not the case though.
>
> *Y-Lan Boureau <blauenote@yahoo.fr>* a écrit :
>
>
> *Ben Ricker <ben.ricker@gmail.com>* a écrit : Note that this can als
> indicate that the Mobo battery that keeps the time synced when the power is
> off may be dead.
>
> No no, today we are April 14th, 1976, and four days ago was April 10th,
> 1976, so time is actually kept :-)
>
> Thanks everyone, I'll try tonight as soon as I have my computer in front
> of me.
>
> Cheers,
>
> Y-Lan
>
>
>
>
>
> But try the hwclock stuff first.
>
> On 2/13/06, Christophe Choumert <christophe.choumert@polytechnique.org>
> wrote:
> >
> > On Monday 13 February 2006 ! 13:36, Y-Lan Boureau wrote:
> > > Does anyone know a fix to this -- either, how I could set correct
> > time
> > > and date in Open Firmware, or allow Linux to remember its own time and
> > > date ?
> >
> > The relevant option is in /etc/conf.d/clock :
> > ---
> > # If you want to set the Hardware Clock to the current System Time
> > # during shutdown, then say "yes" here.
> >
> > CLOCK_SYSTOHC="yes"
> > ---
> >
> > followed by
> > % rc-update add clock boot
> > to make sure it runs at boot and halt.
> >
> > > cheers,
> > > Y-Lan
> >
> > Cheers,
> > Christophe
> >
> > PS: my MacOS X wo! n't boot anymore either, I wish I knew why.
> > --
> > gentoo-ppc-user@gentoo.org mailing list
> >
> >
>
>
> --
> Ben Ricker
> He's just this guy, you know?
>
>
> ------------------------------
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez<http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com>la version beta.
>
>
> ------------------------------
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez<http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com>la version beta.
>
>


--
Ben Ricker
He's just this guy, you know?
Re: date and time set to April 1976 [ In reply to ]
On 2006-02-14, at 20:19, Y-Lan Boureau wrote:

> Thanks everyone :-))
>
> My system date is back to 2006 !
>
> Cheers,
>
> Y-Lan

Having a dead battery, system clock resets to it's initial value only
when I:
1. Turn off the power
2. Plug off power cord for a while, i.e. when I take the computer to
a different location. 5 minutes is enough.

Simple restart is not enough. System clock is running like the
circuit that lets to turn on machine "softly" - with power button on
the keyboard.

If you use oldworld machine and need to boot the old Mac OS system
before running BootX, you can expect the machine to "forget" where is
the startup volume too.

With these information you should quickly find if battery needs to be
replaced.

Regards
Bartek
--
gentoo-ppc-user@gentoo.org mailing list
Re: date and time set to April 1976 [ In reply to ]
No, the battery is not dead - I've keeped the computer unplugged for hours a number of times, and time was still passing, moving from April 10th to April 11th and so on.
What happened was I never gave a chance to the hardware clock to get back to 2006, after I resetted it to 1976 by zapping the PRAM and NVRAM.
But then after people from this mailing list kindly told me how to set hardware clock to system time, the clock was back to 2006 at last.

So this problem is solved for good :-)

Cheers,

Y-Lan



Bartosz Zaród <Bartosz@Zarod.pl> a écrit :
On 2006-02-14, at 20:19, Y-Lan Boureau wrote:

> Thanks everyone :-))
>
> My system date is back to 2006 !
>
> Cheers,
>
> Y-Lan

Having a dead battery, system clock resets to it's initial value only
when I:
1. Turn off the power
2. Plug off power cord for a while, i.e. when I take the computer to
a different location. 5 minutes is enough.

Simple restart is not enough. System clock is running like the
circuit that lets to turn on machine "softly" - with power button on
the keyboard.

If you use oldworld machine and need to boot the old Mac OS system
before running BootX, you can expect the machine to "forget" where is
the startup volume too.

With these information you should quickly find if battery needs to be
replaced.

Regards
Bartek
--
gentoo-ppc-user@gentoo.org mailing list




---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.