LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-04-2003, 07:30 AM   #1
dtamajka
LQ Newbie
 
Registered: Oct 2003
Location: Slovakia
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
Question system clock vs. CMOS clock


Hi,

I have searched linuxquestions.org for threads regarding my problem, but unsuccessfully. So I have to start a new one. Please have a look and try to help me.

I installed Linux (Mangrake 9.1) two months ago on Acer TravelMate 432LC. Since the time I have had no real problem, only minor issues. But there is one thing that annoys me - system clock is running 'too fast'. To be accurate, system clock is 1.66 time faster than CMOS clock (hardware clock). Just to imagine: when hardware clock pass 36 minutes, system clock will pass incredible 60 minutes.

I tried to evaluate the difference using ADJTIMEX command and here is the result:
Code:
# adjtimex --compare
                                      --- current ---  -- suggested --
cmos time   system-cmos     2nd diff   tick      freq   tick      freq
1061496922  4156.120062  4156.120062  10000         0
1061496928  4159.501151     3.381090  10000         0
1061496935  4163.481439     3.980287  10000         0   6020  -1882666
1061496942  4166.875971     3.394533  10000         0   6605   3062412
1061496951  4171.987770     5.111799  10000         0   4888   1316942
1061496957  4175.392305     3.404535  10000         0   6595   3049193
1061496966  4180.514104     5.121799  10000         0   4878   1316224
1061496974  4186.554393     6.040289  10000         0   3960  -1895572
Notice the non-equal difference between measurements and suggested TICK values, the minimal allowed value for TICK is 9000.

Additional notes. It seems that this 'phenomenon' appears only when KDE (3.1) environment is active (even when I switch into text console the system clock is running normally). Furthermore, when I open 'Adjust Date & Time' dialog I can see second hand changing its speed when I move a mouse concurrently.

Thanks a lot for any helpful advice.

Dusan

PS: Clock configuration:
# cat /etc/adjtime
2954.408558 1061497603 0.000000
1061497603
LOCAL

# cat /etc/sysconfig/clock
UTC=false
ARC=false
ZONE=Europe/Bratislava
 
Old 11-04-2003, 09:07 PM   #2
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
I get the same problem. Below are my results of adjtimex --compare. Have you solved your issue?

Erik

# adjtimex --compare
--- current --- -- suggested --
cmos time system-cmos 2nd diff tick freq tick freq
1068434280 -432976.893846 -432976.893846 10000 0
1068445392 -444078.852775 -11101.958929 10000 0
1068456504 -455180.811673 -11101.958897 10000 0 11111959 -673322
1068467616 -466282.770566 -11101.958893 10000 0 11111959 -699536
1068478728 -477384.729463 -11101.958897 10000 0 11111959 -673322
1068490951 -489596.884249 -12212.154786 10000 0 12222155 -1401257
1068502063 -500698.843143 -11101.958893 10000 0 11111959 -699536
1068513175 -511800.802038 -11101.958895 10000 0 11111959 -686429
 
Old 11-05-2003, 01:57 AM   #3
dtamajka
LQ Newbie
 
Registered: Oct 2003
Location: Slovakia
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
No I haven't. I tried almost everything that came to my mind or I read in man pages - without avail. Now I depend on forum memebers advice. Maybe it is related to KDE, do you use KDE too?

Dusan
 
Old 11-05-2003, 07:55 AM   #4
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
Yeah, I mainly use KDE. I think I will try Gnome and see if the problem is there as well. I should also check in windows. It was also recommended to me to try to leave the system running and see if there will be a time lag or the reverse.

Erik
 
Old 11-05-2003, 11:13 AM   #5
dtamajka
LQ Newbie
 
Registered: Oct 2003
Location: Slovakia
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
I have already tested Windows (XP), no problem. Please, try Gnome and let me know. If I had left my system running for example for 3 hours, system time would have been 2 hours in advance of real time (so it would have passed >5< hours) .

Dusan
 
Old 11-05-2003, 09:02 PM   #6
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
So, this is getting more bizare all the time. I logged into Gnome, still was ahead by 5 YEARS and bumped back several hours. I rebooted and went to my CMOS, the tiem and date were just a screwrie. I fixed the time/date and let teh machien restart. My SuSE 8.0 boot-up stalled at "Setting up the CMOS clock" I hit control-D and boot-up continued. Well, I'm back to 17:01, November 2005, when it is actually 22:01, November 5, 2003!

I will have to research if it is my mobo battery or what???

Erik
 
Old 12-02-2003, 10:10 AM   #7
dtamajka
LQ Newbie
 
Registered: Oct 2003
Location: Slovakia
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
Hi again,

I've found something interesting. Experimenting with ACPI and suspend on my MDK9.1 I noticed that time was right and run correctly.

To allow ACPI I had to remove "apm=off" from kernel option in lilo.conf, since then my system time is running correctly.

The only question is, wheter the problem was that the ACPI WAS NOT active, or that the APM WAS active. Who konws. I will test it.

Dusan
 
Old 12-11-2003, 05:56 PM   #8
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
Hi Dusan,

So I'm getting close myself as well. I've put all my ACPI settign back to default. Though I was still getting messed tiem settings. The clock woudl reset in the CMOS a number of years ahead. I have then told the CMOS that I do not have an ACPI compatible OS. Now the date stays stable, but the time is slow. I remember reading else of this similar problem. I'll keep you posted.

Erik
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
system clock,hardware clock varunbihani Linux - Newbie 2 07-23-2005 09:04 AM
Suse 9.2 boot hangs at "setting up cmos clock" villinux Linux - Software 2 03-19-2005 03:02 AM
Dot Clock / Pixel Clock Freaksta Linux - Hardware 1 05-05-2004 08:21 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration