Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with time (in Gentoo ONLY!)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Wed Jun 05, 2002 4:06 pm    Post subject: Problems with time (in Gentoo ONLY!) Reply with quote

@Mods sorry if this is in the wrong forum. I thought it seemed appropriate to this forum and not the Hardware one.

I have done some testing and have found out that when I am in my Gentoo system, the hardware clock seems to run slower that normal, ie after about two hours the time is behind by 5-10 minutes, and this doesn't stop.

However in Windows XP, I do not have this problem. I have tried to set equivilant settings so that they are the same but am still getting the problem.

If anybody knows what is going on please reply. Thanks.
_________________
Postcount ++
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 05, 2002 5:02 pm    Post subject: Reply with quote

What a strange little story. Time going slower, well maybe it's because linux works so much faster, :lol: . If your on the Internet regularly you can install ntp , this will set your time and clock frequency very accuratly, but you need an internet connection so it can poll the servers regularly.

Never heard of this problem, Sry, Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Wed Jun 05, 2002 5:14 pm    Post subject: Reply with quote

I actualy noticed this aswell, reinstalled as I needed to resize a reiserfs partition and I haven't had any problems since, guessing this is a kernel compile option somewhere that I enabled before and not now or something.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Jun 05, 2002 5:23 pm    Post subject: Reply with quote

Well only one I can think of is /dev/rtc Enhanced Realtime Clock or something under character devices. I have always compiled this in and never had trouble, well I use ntp at the moment but just installed today, so my system was running without for about two weeks (reinstall gentoo) and the time wasn't so much off, but didn't check it exactly.

Cya LX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Wed Jun 05, 2002 5:31 pm    Post subject: Reply with quote

neuron wrote:
I actualy noticed this aswell, reinstalled as I needed to resize a reiserfs partition and I haven't had any problems since.


I just did a reinstall because of the problem! Could it be because of my home directory? I never reformatted it.

lx wrote:
Well only one I can think of is /dev/rtc Enhanced Realtime Clock or something under character devices. I have always compiled this in and never had trouble, well I use ntp at the moment but just installed today, so my system was running without for about two weeks (reinstall gentoo) and the time wasn't so much off, but didn't check it exactly.

Cya LX.


I'll try it and report the results.

I hope it gets fixed, it's is really annoying.
_________________
Postcount ++
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Wed Jun 05, 2002 6:28 pm    Post subject: Reply with quote

craftyc... no, it can't :)

lx, didn't have that in before, and don't have it in now.
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Wed Jun 05, 2002 6:36 pm    Post subject: Reply with quote

neuron wrote:
craftyc... no, it can't :)

lx, didn't have that in before, and don't have it in now.


Well I thinks it's working now with ntp. Even if it didn't work I would not want to reinstall Gentoo. It takes two days to get it up and running for me (That includes all the programs that I use)! I can't wait that long.
_________________
Postcount ++
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Wed Jun 05, 2002 6:56 pm    Post subject: Reply with quote

well, using ntp will fix things :)

and you don't need to reinstall, just recompile the kernel once or twice to test (possibly a LOT more though ;) ).

ntp checking isn't the optimal way to fix a problem like this though, heh.
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Wed Jun 05, 2002 7:14 pm    Post subject: Reply with quote

neuron wrote:
well, using ntp will fix things :)

and you don't need to reinstall, just recompile the kernel once or twice to test (possibly a LOT more though ;) ).

ntp checking isn't the optimal way to fix a problem like this though, heh.


I agree, but if the install took less than two days I would take that option first. Oh well. :(
_________________
Postcount ++
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Wed Jun 05, 2002 7:34 pm    Post subject: Reply with quote

lx could I take a look at your /etc/ntp.conf file please? I don't know what servers to add. :( Thanks.

Also how often does ntp update the time?

Thanks.
_________________
Postcount ++
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 06, 2002 8:32 am    Post subject: Reply with quote

craftyc wrote:
I don't know what servers to add. :( Thanks.

Also how often does ntp update the time?

Thanks.


You best use a few close to your locations, check:
http://www.eecis.udel.edu/~mills/ntp/clock1.htm
http://www.eecis.udel.edu/~mills/ntp/clock2.htm

statum 1 are best just, the remote server is then directly connected to an atomic clock (well using radio-signals).

I don't know the frequency, damn just found out that I only added ntpd to level default, but I use default5 for normal boot, so seems I wasn't running ntp at all, still my systemclock is accurate. In other thread somebody mentioned that it might only occur using KDE. Well I've gnome.
You can use ntpdate "serverlist" to directly update your system clock, so you could use it in a script, but this doesn't correct the clocks frequency. But we probably need to find out what causes the problem, rather then avoiding it, normally your clock should run a day without losing a second. But 5 minutes, no thats way to much.

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 06, 2002 8:36 am    Post subject: Reply with quote

neuron wrote:
craftyc... no, it can't :)

lx, didn't have that in before, and don't have it in now.


Don't get exactly what this is about, but if its about /dev/rtc I have always compiled the kernel with the option on / so Enhanced Realtime Clock support has always been in my kernels. I don't have the problem (well I can't notice it, like you). Are you using KDE?
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
pavera
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 84

PostPosted: Thu Jun 06, 2002 9:05 am    Post subject: Reply with quote

Wow, I hadn't even noticed... I have had KDE running for about a week straight now... and my clock is a full 12 hours behind. I just updated it, and will check to see if it falls off again that rapidly, and I will make sure that option is compiled into the kernel, (if its not selected by default, its not in my kernel). But, this could be a pretty big bug with KDE (the other post pretty specifically narrows it down to KDE, and not gentoo in general) lx supports this theory, since he is running Gnome and has no such problems.

-update, ERTC is not compiled into my kernel.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 06, 2002 9:43 am    Post subject: Reply with quote

From other thread:
cbueche wrote:
Hi again,

I *do* run /dev/rtc, so the problem is probably KDE (or a subcomponent like X / mouse / whatewer app runs on top of this)

Charles

So it ain't /dev/rtc
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
pavera
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 84

PostPosted: Thu Jun 06, 2002 9:58 am    Post subject: Reply with quote

Can the moderators combine these threads?
(I did read that in the other thread btw... definately feels like a KDE issue)
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 06, 2002 10:45 am    Post subject: Reply with quote

Well if we can get some more people having the problem, just check if it also happen when booting without KDE, maybe it is some problem with motherboard / chipset. (found a problem with time and via chipset, but I use this chipset without problems and with 2.4.18). I did compile my own kernel, standard 2.4.18 with acpi-20020506 / pre-empt / lm-sensors.

Can't imagine its a problem with KDE, please try if it exists when running console for a period of time (use init 1 to boot or something).

Cya, lX

Asus a7v133a.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
pavera
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 84

PostPosted: Thu Jun 06, 2002 10:57 am    Post subject: Reply with quote

In the other post, he mentioned that he had done that,
Quote:

my problem is the system clock slows down while in KDE. icon_eek.gif
I made the following tests :

- shutdown
- set HW clock in BIOS
- power off
- wait 12 hours
- check -> clock correct

- boot in text mode
- wait 1 hour
- check -> clock correct

- launch KDE
- wait 1 hour
- check -> system clock is 5 minutes late


I am waiting to see if my clock looses more time, so far its been running for 2.5 hours and hasn't lost a full minute yet, so we'll see in a few more hours if it looses a minute or two...
then I'll try booting into console (although, having my computer in console makes it kinda useless for what I need to use it for (web site design) but maybe overnight tomorrow night..
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Thu Jun 06, 2002 11:12 am    Post subject: Reply with quote

Just clarify I *did* have KDE installed (However I use fluxbox for anything graphical). This problem really pi***d me off so I decided to do a clean install of Gentoo :(. Before I did the install I set the BIOS clock to the correct time. 12 hours later and it's still on the correct time.

Right now I am emerging X and KDE (and a few other apps). When they finish compiling I will report back on what happens with the time (hopefully nothing :)).

I *do not* have a Dell PC so it is higly unlikely to be a BIOS problem, and also don't forget that I checked in Windows what happened with the system clock as well.

PS I hate using a text browser, is there anyway we can speed up the compile process? :)
_________________
Postcount ++
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 06, 2002 11:14 am    Post subject: Reply with quote

Oke so it is KDE, now we have to now if it changes suddenly, maybe somebody with the problem can log the time every second or two, well as fast as possible, without running out of disk space. He can then maybe determine if there are jumps in time.

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Thu Jun 06, 2002 11:23 am    Post subject: Reply with quote

There are no "jumps". If you have another clock by you (a watch) and put it next to the clock on gkrellm, you can see that 30 seconds of the computers clock is slower than 30 seconds of the watch (by about a second).

The time is visibly slower than normal.
_________________
Postcount ++
Back to top
View user's profile Send private message
cbueche
n00b
n00b


Joined: 29 May 2002
Posts: 42
Location: Prêles, Switzerland

PostPosted: Thu Jun 06, 2002 11:27 am    Post subject: Reply with quote

<sorry to cross-post, it seems both threads track the same problem>

The problem is caused by kmix. Kill it, the clock doesn't shift anymore.
It took me a lot of kills to find it.

method :

- run "ntpdate -d $timeserver" in a 60 second loop, notice how the offset grows.
- kill things you suspect to be wrong
- watch the offset (continue to grow means you need to assassin more stuff )

Charles
_________________
Charles Bueche <charles@bueche.ch>
sand, snow, wave, wind and net -surfer
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Thu Jun 06, 2002 12:17 pm    Post subject: Reply with quote

I did test the new kde (usualy a blackbox user) then my time screwed up... that it is kde defenatly makes sence.
Back to top
View user's profile Send private message
Rylan
n00b
n00b


Joined: 08 May 2002
Posts: 41

PostPosted: Thu Jun 06, 2002 1:34 pm    Post subject: Reply with quote

I've had the exact same problem! And here I thought it was a bad cmos battery.
I have kde installed also, but I never run it. I run fluxbox instead, and it seems like my clock drift isn't quite so bad with flux. It's still off, just not as much. Perhaps there's a bug in fluxbox when it's compiled with kde support?

Until I can fix the problem, I'm going to try to get ntpd running.
I remember ripping some settings for /etc/ntp.conf from a mod on these forums, but I'd like to see other people's configs if possible. I've never used ntpd before and am not sure what a good default config looks like. Currently I have this in /etc/ntp.conf

Code:
server ntp.ctr.columbia.edu
driftfile /etc/ntp.drift
restrict default nomodify nopeer notrust noserve notrap
restrict 127.0.0.1 notrust nomodify
restrict 24.x.x.x notrust nomodify
restrict 192.168.0.0 mask 255.255.255.0 nopeer nomodify

(24.x.x.x) I assume is supposed to be my ip. Is there a way to set it dynamically for those of us using dhcp? I'm thinking evironment variable + some trick with /etc/dhcpc/dhcpcd-eth0.exe to restart ntpd when the ip changes

I also have iptables running with deny everything, let established/related out, and allow upd port 123 in. I'm assuming that all ntpd traffic is udp ( I need to look this up ) so the statefulness of my firewall is irrelevant to ntpd's functioning, right?
Back to top
View user's profile Send private message
Roderik
n00b
n00b


Joined: 06 Jun 2002
Posts: 55
Location: Belgium

PostPosted: Thu Jun 06, 2002 2:32 pm    Post subject: Reply with quote

i've got a similar problem

i'm using the gentoo 2.4.19 kernel (compiled the entire thing from stage 1) and fluxbox as wm and my time is going crazy, not really a problem normaly but mrtg doesn't like to go back in tha past

here is a little demonstration of my problem, keep in mind that i'm setting my clock every minute with ntp

Code:

bash-2.05a# date
Thu Jun  6 16:23:14 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:14 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:15 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:16 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:17 CEST 2002
bash-2.05a# date
------->>>>>  Thu Jun  6 17:34:52 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:18 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:20 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:21 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:22 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:28 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:29 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:30 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:31 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:31 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:32 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:33 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:34 CEST 2002
bash-2.05a# date
-------- >>>>> Thu Jun  6 17:35:09 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:35 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:37 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:38 CEST 2002
bash-2.05a# date
Thu Jun  6 16:23:39 CEST 2002


while my hwclock runs smoothly

Code:

bash-2.05a# hwclock
Thu Jun  6 16:29:45 2002  -0.206998 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:46 2002  -0.211552 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:47 2002  -0.227147 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:48 2002  -0.226853 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:49 2002  -0.178064 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:50 2002  -0.233759 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:51 2002  -0.313670 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:52 2002  -0.355530 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:53 2002  -0.304214 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:54 2002  -0.219542 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:55 2002  -0.242843 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:56 2002  -0.094384 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:58 2002  -0.767092 seconds
bash-2.05a# hwclock
Thu Jun  6 16:29:59 2002  -0.257605 seconds


now i'm stumped for the reason why, if anyone has some idea what's up with this....
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Thu Jun 06, 2002 9:14 pm    Post subject: Reply with quote

Well after doing the (extremly long) reinstall :cry: I finally have my system up and running. So far I have not noticed a lag in time. It's working perfectly. :D

I still have no idea what caused this though. I have not compiled the option mentioned above into my kernel this time either.

This is very strange :? :?:
_________________
Postcount ++
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum