Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a GPS connected to my system, and if I change system time to be ahead/behind GPS time by less than 4 hours, ntpd ensures that the system time is updated to match that of the GPS. If, however, that offset is beyond 4 hours, no update takes place.

I have ensured to run ntpd with the -g option, but it still doesn't work, unless I use normal ntp servers, for example having server 0.debian.pool.ntp.org iburst in /etc/ntp.conf. Let us, however, assume that the system in question will not have internet access during normal operation.

The other relevant settings in that file are:

server minpoll 4 maxpoll 4
fudge time1 0.420 refid GPS

server minpoll 4 maxpoll 4 prefer
fudge refid GPS1

(source: gpsd manpage)

I even added tinker panic 0 to that config, just to make sure, but still no luck.

share|improve this question
Did I get it correctly that you want to make it working without internet connectivity at all? – Serge Oct 16 '12 at 22:10
That is correct. – Tshepang Oct 17 '12 at 5:41
up vote 2 down vote accepted

I decided to go for a work-around... I used chrony.

Here is what I have in the config file at /etc/chrony/chrony.conf to use the GPS as the reference clock (source):

refclock SHM 0

Then, to actually get chrony to do large offset adjustments, instead of the normal gradual ones, I added this to the same config file:

makestep 1000 -1

That means that the step adjustment will happen when the hardware clock is off by at least a 1000 seconds. -1 means try as many times as it takes to get to match the reference clock.

I left the other settings intact, as provided by Debian Wheezy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.