[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bios time is not shown by debian



On Sat, Apr 07, 2007 at 07:11:23 -0700, L.V.Gandhi wrote:
>  On 4/7/07, Florian Kulzer wrote:
> >

> > On Fri, Apr 06, 2007 at 18:38:30 -0700, L.V.Gandhi wrote:
> > >  I have dual booting sony vaio laptop booting both vista and etch.
> > >  System time ie bios time is shown by vista. But etch shows 7 hrs
> > >  less. I am in PDT.  Both linux and windows are configured to PDT
> > >  time zone. In rcS, utc=no is there. Still this time problem is
> > >  there. Even if change after reboot, debian shows less time.
> > >  Anysolution is appreciated.
> >
> > Can you read and set the hardware lock as root? Try
> >
> > hwclock --show
> > hwclock --set --date="07 Apr 2007 13:06:46"
> >
> > The date string should have the correct date/time for your local
> > timezone. Sometimes it is necessary to use the "--directisa" option to
> > make the above commands work. In that case you can put
> >
> > HWCLOCKPARS="--directisa"
> >
> > into /etc/default/rcS to make sure that setting/reading the hardware
> > clock works during shutdown/boot-up.
> >
>  Thank you Very much Mr.Florian. I have added line to rcS.  Now during boot
>  I get system time. But however after booting when I do
>  lvgvaio:~# hwclock --show
>  I get
>  select() to /dev/rtc to wait for clock tick timed out
> 
>  Though my problem during boot is solved, anything to do now for the above
>  status.

The HWCLOCKPARS variable is only effective during boot-up and shutdown,
when /etc/default/rcS is read (sourced) by /etc/init.d/hwclock.sh.

If you want to run hwclock yourself you still have to specify the
"--directisa" option explicitly. I would not worry about this too much
since there is normally little reason to run this command yourself. (If
you want to make sure that the system clock stays on time while the
computer is up and running: That is the job of "ntp" or "chrony" and
does not directly involve the hardware clock AFAIK.)

-- 
Regards,
          Florian



Reply to: