-
Junior Member
registered user
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?
-
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.
-
Senior Member
registered user
Re: system clock runs fast

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]
-
Senior Member
registered user
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
-
By monkeyman2000 in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 09-19-2004, 06:34 PM
-
By evirus in forum General Support
Replies: 7
Last Post: 05-07-2004, 10:46 PM
-
By Cuddles in forum General Support
Replies: 15
Last Post: 04-03-2004, 08:33 AM
-
By LordHarshmage in forum General Support
Replies: 1
Last Post: 05-06-2003, 08:28 PM
-
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
-
Forum Rules

SK Hynix 1TB PC801 M.2 NVMe PCIe Gen4x4 2280 SSD
$100.00

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$60.00

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac
$19.99

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro
$545.25

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive
$86.95

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM
$159.99

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb
$1746.47

Seagate Desktop 1TB/1000GB SATA 3.5" HDD Hard Drive
$29.99

External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A
$100.00