public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Weird system time issue
@ 2002-07-16 19:35 Ken Nowack
  2002-07-16 21:33 ` Dan Naumov
  0 siblings, 1 reply; 7+ messages in thread
From: Ken Nowack @ 2002-07-16 19:35 UTC (permalink / raw
  To: gentoo-dev, gentoo-user

Alright, 

I've been asking people in IRC for a bit about this
and haven't found a solution yet. My system time is
all buggified for some reason. 

I can reset the system time, but give it about an hour
and it resets itself for no apparent reason, about 12
hours off. I've tried using rdate -s every 15 minutes,
doesn't help. I've tried setting up ntpd and using it,
but once the system time gets too far off, ntpd dies
with no explanation. 

It seems part of the issue *may* be my use of gdm. If
I'm logged in to my desktop, my system time will keep
updating itself. Once I log out to the gdm login
screen, time gets all screwey again, indifferent of
which system time update method I'm using. Odd yes?

The rdate method was set up in a cron job. Apparently
it seems that if the comp is sitting at the gdm login
screen, the cron job will not be successful in
updating the system time, but if I'm logged in, it
works. And as for ntpd, it's usually dead by the time
I log out, so I have no idea if that works while gdm
is up.

I recompiled my kernel (suggestion from IRC) because I
thought the inclusion of RTC support might fix things.
That hasn't worked. I recompiled gdm, rdate, and ntpd
as well just for good measure. That has failed to fix
this issue as well. 

Does anyone out there have any suggestions for me
where to look next? There hasn't been anything helpful
in the logs and it's starting to drive me nuts.

Ken Nowack

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Weird system time issue
  2002-07-16 19:35 Ken Nowack
@ 2002-07-16 21:33 ` Dan Naumov
  2002-07-17  0:47   ` Michael Mattsson
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Naumov @ 2002-07-16 21:33 UTC (permalink / raw
  To: gentoo-dev

On Tue, 2002-07-16 at 22:35, Ken Nowack wrote:
> Alright, 
> 
> I've been asking people in IRC for a bit about this
> and haven't found a solution yet. My system time is
> all buggified for some reason. 

<BLATANT SNIP>

I am experiencing similar problems with the system time. Sometimes, the
clock gets off by up to 18 minutes within a 24 hour period, but the
"offing" seems to either slow down or stop after a few days. I've (on
several occasions) found the system clock to be off by up to 35 minutes
after using the computer for several days, but it wouldn't get "more
off" after that. However, after fixing the clock by setting it to the
correct time, it would slowly drift again.

This is happening to me on a system using gentoo-sources-2.4.19-r7 and
gcc-2.95.3-r7 with glibc-2.2.5-r5 (also happened with several previous
versions of glibc). I haven't attempted to switch to vanilla sources to
identify whether that would solve the problem, but I just thought I'd
let you know that you're not the only one experiencing the problem. I've
also heard some people on OPN #Gentoo complain about this as well.

Sincerely,
-- 


#-------------------------------------------------------#
|  Dan Naumov (aka Jago on IRC) || Otavantie 2, 50670,  |
|     Otava Folk Highschool     ||   Otava, Finland.    |
#-------------------------------------------------------#
|      User of Gentoo Linux : http://www.gentoo.org     |
#-------------------------------------------------------#



^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [gentoo-dev] Weird system time issue
  2002-07-16 21:33 ` Dan Naumov
@ 2002-07-17  0:47   ` Michael Mattsson
  2002-07-17  9:10     ` Paul de Vrieze
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Mattsson @ 2002-07-17  0:47 UTC (permalink / raw
  To: gentoo-dev, 'Dan Naumov'

I noticed the same issue after upgrading to KDE 3.02 on several of my
home machines.

I noticed that when I removed the Clock applet from the KDE panel, I
doied not have the issue anymore.  I havent had time to really dig into
the problem at the moment,  So I am not sure if the Clock applet is the
cause or just a symptom of a greater problem.



I opened a bug report: http://bugs.gentoo.org/show_bug.cgi?id=5118
And posted about the issue in the bugs forum:
http://forums.gentoo.org/viewtopic.php?t=8432


Cheers

Michael
Aka Steblublu




-----Original Message-----
From: gentoo-dev-admin@gentoo.org [mailto:gentoo-dev-admin@gentoo.org]
On Behalf Of Dan Naumov
Sent: Tuesday, July 16, 2002 5:34 PM
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Weird system time issue


On Tue, 2002-07-16 at 22:35, Ken Nowack wrote:
> Alright,
> 
> I've been asking people in IRC for a bit about this
> and haven't found a solution yet. My system time is
> all buggified for some reason.

<BLATANT SNIP>

I am experiencing similar problems with the system time. Sometimes, the
clock gets off by up to 18 minutes within a 24 hour period, but the
"offing" seems to either slow down or stop after a few days. I've (on
several occasions) found the system clock to be off by up to 35 minutes
after using the computer for several days, but it wouldn't get "more
off" after that. However, after fixing the clock by setting it to the
correct time, it would slowly drift again.

This is happening to me on a system using gentoo-sources-2.4.19-r7 and
gcc-2.95.3-r7 with glibc-2.2.5-r5 (also happened with several previous
versions of glibc). I haven't attempted to switch to vanilla sources to
identify whether that would solve the problem, but I just thought I'd
let you know that you're not the only one experiencing the problem. I've
also heard some people on OPN #Gentoo complain about this as well.

Sincerely,
-- 


#-------------------------------------------------------#
|  Dan Naumov (aka Jago on IRC) || Otavantie 2, 50670,  |
|     Otava Folk Highschool     ||   Otava, Finland.    |
#-------------------------------------------------------#
|      User of Gentoo Linux : http://www.gentoo.org     |
#-------------------------------------------------------#

_______________________________________________
gentoo-dev mailing list
gentoo-dev@gentoo.org
http://lists.gentoo.org/mailman/listinfo/gentoo-dev




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Weird system time issue
  2002-07-17  0:47   ` Michael Mattsson
@ 2002-07-17  9:10     ` Paul de Vrieze
  2002-07-17 22:11       ` Michael Mattsson
  0 siblings, 1 reply; 7+ messages in thread
From: Paul de Vrieze @ 2002-07-17  9:10 UTC (permalink / raw
  To: gentoo-dev

On Wednesday 17 July 2002 02:47, Michael Mattsson wrote:
> I noticed the same issue after upgrading to KDE 3.02 on several of my
> home machines.
>
> I noticed that when I removed the Clock applet from the KDE panel, I
> doied not have the issue anymore.  I havent had time to really dig into
> the problem at the moment,  So I am not sure if the Clock applet is the
> cause or just a symptom of a greater problem.
>
>
>
> I opened a bug report: http://bugs.gentoo.org/show_bug.cgi?id=5118
> And posted about the issue in the bugs forum:
> http://forums.gentoo.org/viewtopic.php?t=8432
>

Did you also try to remove /etc/adjtime. This file gets written by the hwclock 
utility and is supposed to help in autoadjusting your hardware clock to the 
real time (clocks are never entirely correct). Also (as I posted earlier) 
using rdate (or ntpdate for that matter) not at boot breaks things. Specially 
with cron as it's whole time system gets confused.

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Weird system time issue
  2002-07-17  9:10     ` Paul de Vrieze
@ 2002-07-17 22:11       ` Michael Mattsson
  2002-07-18 10:07         ` Paul de Vrieze
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Mattsson @ 2002-07-17 22:11 UTC (permalink / raw
  To: gentoo-dev



On July 17, 2002 05:10 am, Paul de Vrieze wrote:
> Did you also try to remove /etc/adjtime. This file gets written by the
> hwclock utility and is supposed to help in autoadjusting your hardware
> clock to the real time (clocks are never entirely correct). Also (as I
> posted earlier) using rdate (or ntpdate for that matter) not at boot breaks
> things. Specially with cron as it's whole time system gets confused.


No.  But I did notice that when i set the system to use "localtime" instead of 
"UTC", the problem does not appear.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Weird system time issue
  2002-07-17 22:11       ` Michael Mattsson
@ 2002-07-18 10:07         ` Paul de Vrieze
  0 siblings, 0 replies; 7+ messages in thread
From: Paul de Vrieze @ 2002-07-18 10:07 UTC (permalink / raw
  To: gentoo-dev

On Thursday 18 July 2002 00:11, Michael Mattsson wrote:
> On July 17, 2002 05:10 am, Paul de Vrieze wrote:
> > Did you also try to remove /etc/adjtime. This file gets written by the
> > hwclock utility and is supposed to help in autoadjusting your hardware
> > clock to the real time (clocks are never entirely correct). Also (as I
> > posted earlier) using rdate (or ntpdate for that matter) not at boot
> > breaks things. Specially with cron as it's whole time system gets
> > confused.
>
> No.  But I did notice that when i set the system to use "localtime" instead
> of "UTC", the problem does not appear.
>

That looks like an adjtime problem (which timezone are you, the further from 
gmt the bigger the problems). Basically what you want to do is first decide 
whether you store your time in UTC or in localtime (the latter if you run 
windows, else the first). Then set the computer time correct (ntpdate for 
example). Then set the hardware clock correct (yes you have two clocks) using 
"hwclock --utc --systohc" for utc and "hwclock --localtime --systohc" for 
localtime. Next delete the /etc/adjtime file so the system will start to zero 
with correcting your computer time to systematic drift (that is not really 
nescesarry if you have ntpd anyway)

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Weird system time issue
       [not found] <200207182046.58211.pauldv@cs.kun.nl>
@ 2002-07-18 19:49 ` Ken Nowack
  0 siblings, 0 replies; 7+ messages in thread
From: Ken Nowack @ 2002-07-18 19:49 UTC (permalink / raw
  To: gentoo-dev

--- Paul de Vrieze <pauldv@cs.kun.nl> wrote:
> On Thursday 18 July 2002 20:42, you wrote:
> > Thanks.
> >
> > Trying this as a possibility. I also downloaded
> the
> > vanilla sources but haven't had time to recompile
> the
> > kernel yet. A couple details to add to the mix: 1)
> > sitting at a console my hwclock seems to gain
> about
> > 2.5 minutes an hour 2) when i start gdm the time
> > instantly goes backward by about 2.5 hours (I'll
> do
> > more tests and send the exact amount if I can find
> it)
> >
> >
> > So based upon that it seems that some x component
> is
> > having issues as well as the hwclock running fast.
> > Getting closer but not there yet, ugh.
> >
> 
> Hi Ken,
> 
> gdm is not supposed to change anything to your time
> at all. What happens when 
> you use xdm or kdm. But first, is your
> /etc/localtime set right, and could 
> you send the output of a set command
> 
> Paul
> 
> -- 
> Paul de Vrieze
> Junior Researcher
> Mail: pauldv@cs.kun.nl
> Homepage: http://www.devrieze.net
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-18 19:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200207182046.58211.pauldv@cs.kun.nl>
2002-07-18 19:49 ` [gentoo-dev] Weird system time issue Ken Nowack
2002-07-16 19:35 Ken Nowack
2002-07-16 21:33 ` Dan Naumov
2002-07-17  0:47   ` Michael Mattsson
2002-07-17  9:10     ` Paul de Vrieze
2002-07-17 22:11       ` Michael Mattsson
2002-07-18 10:07         ` Paul de Vrieze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox