Results 1 to 4 of 4

Thread: system clock runs fast

  1. #1
    Junior Member registered user
    Join Date
    May 2003
    Location
    Jackson, MS, USA
    Posts
    25

    system clock runs fast

    The clock on my laptop runs a bit fast (no matter what OS I'm running on it, but it's been straight debian-style knoppix for a while now). Can someone point out a simple enough way to correct the time from a remote time server or similar?

  2. #2
    Junior Member
    Join Date
    Nov 2003
    Posts
    1
    Disclaimer, this is generic advice, not tested on Knoppix as I am currently downloading it.

    As a first step you should look at the manual page for hwclock. It has facilities to account for clock drift, and is probably already installed.

    I like Dan Bernsteins 'clockspeed' package. Essentially have to download the source and compile it. You then give it an accurate time using NTP, wait a while, give it a second accurate time using NTP. It then uses this to work out how much it has to adjust your clock by, and then sits in the background doing so.

    Available from http://cr.yp.to

    Warnings. Dan's stuff is not "Open Source". You get the source code from him, and can do anything you like with it except redistribute it. I have no problem with this, but some people do.

    It uses the high resolution clock cycle counter on your machine, so if your machine changes its clock rate, then 'clockspeed' will not work for you.

    You can write a tiny shell script which calls adjtimex in an infinite loop, or failing that you can always write a small C (or whatever) program, which calls 'adjtime', then sleeps in an infinite loop.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: system clock runs fast

    Quote Originally Posted by UselessPython
    The clock on my laptop runs a bit fast (no matter what OS I'm running on it, but it's been straight debian-style knoppix for a while now). Can someone point out a simple enough way to correct the time from a remote time server or similar?
    Installing ntp and ntp-simple should do what you want you will have to set a time server in a config file and that should be it.

    [edit]
    The config file would be /etc/ntp.conf put the servers at the bottom.
    [/edit]

  4. #4
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    I found this on Google:-

    rdate -s ntp2b.mcc.ac.uk

    - run it from the command line or from a script that runs at boot. Actually I think is was Stephen (from the last post) - didn't you suggest adding these sorts of things to the bootmisc.sh script? - It works great if you do add it there.

    The network time server in the command above is (obviously) UK based, you need to find one nearby, another job for Google?

    many thanks, Stu.....

Similar Threads

  1. KDE clock 1 hour off system time - knoppix-autoconfig prob?
    By monkeyman2000 in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 09-19-2004, 06:34 PM
  2. clock problems
    By evirus in forum General Support
    Replies: 7
    Last Post: 05-07-2004, 10:46 PM
  3. Updating local pc clock from a atomic clock site???
    By Cuddles in forum General Support
    Replies: 15
    Last Post: 04-03-2004, 08:33 AM
  4. Clock Time
    By LordHarshmage in forum General Support
    Replies: 1
    Last Post: 05-06-2003, 08:28 PM
  5. Replies: 2
    Last Post: 04-01-2003, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


64GB (4X 16GB) DDR3-1333 PC3-10600 Memory RAM for APPLE MAC PRO 5,1 Westmere picture

64GB (4X 16GB) DDR3-1333 PC3-10600 Memory RAM for APPLE MAC PRO 5,1 Westmere

$49.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$15.90



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



G.SKILL Trident Z5 RGB 64GB (2 x 32GB) 288-Pin PC RAM DDR5 6400 (PC5 51200) M... picture

G.SKILL Trident Z5 RGB 64GB (2 x 32GB) 288-Pin PC RAM DDR5 6400 (PC5 51200) M...

$217.99



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory

$54.99



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$22.85



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$38.95



Lot of 50 4GB DDR4 Memory Laptop RAM 3200MHz Samsung/SK Hynix/Kingston/Micron picture

Lot of 50 4GB DDR4 Memory Laptop RAM 3200MHz Samsung/SK Hynix/Kingston/Micron

$248.50