You are not logged in.

#1 2014-08-29 01:04:00

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

How can I disable automatic time syncing?[SOLVED]

So the time on my Arch box is incorrect, I tried setting it myself doing

timedatectl -set-time <my time here>

but was told:

Failed to set time: Automatic time synchronization is enabled

How can I disable this, so I can set my correct time?

I tried using ntpd -qg, but that didn't work.

Last edited by BabbyUser (2014-08-29 22:21:35)

Offline

#2 2014-08-29 01:43:36

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I disable automatic time syncing?[SOLVED]

Need more information. What does "didn't work" mean? How far off is your time? What else have you done to try to correct it? What wiki topics or forum posts have you read about this common problem (time not right)?

"didn't work" does not tell us anything, other than it's very likely that there is something else wrong with your time configuration, and telling you how to disable ntpd won't fix it.

what is the output of

sudo hwclock --debug

and what is the correct local time (time read from a clock on the wall) when you run this command?

Last edited by 2ManyDogs (2014-08-29 01:55:41)

Offline

#3 2014-08-29 02:31:16

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: How can I disable automatic time syncing?[SOLVED]

2ManyDogs wrote:

Need more information. What does "didn't work" mean? How far off is your time? What else have you done to try to correct it? What wiki topics or forum posts have you read about this common problem (time not right)?

"didn't work" does not tell us anything, other than it's very likely that there is something else wrong with your time configuration, and telling you how to disable ntpd won't fix it.

what is the output of

sudo hwclock --debug

and what is the correct local time (time read from a clock on the wall) when you run this command?


Output:

hwclock from util-linux 2.25
Using the /dev interface to the clock.
Last drift adjustment done at 1409274062 seconds after 1969
Last calibration done at 1409274062 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2014/08/29 02:28:36
Hw clock time : 2014/08/29 02:28:36 = 1409279316 seconds since 1969
Fri Aug 29 02:28:36 2014  -0.450330 seconds
~


It's not even Friday yet for me, nor is it 2:28. The time right now is 10:30.

I tried ntpd -qg, editing the /etc/ntp.conf file for servers in my area

I followed this: https://bbs.archlinux.org/viewtopic.php?id=167407
Didn't work, I rmed the /etc/localtime and symlinked from zoneinfo again, set hwclock --systohc --utc and it didn't work.

Offline

#4 2014-08-29 18:09:49

torors
Member
Registered: 2012-09-28
Posts: 107

Re: How can I disable automatic time syncing?[SOLVED]

I think you can stop ntp with

 # systemctl stop ntpd 

Then yoy can run:

 # ntpd -gq 

For more information: ntp in ArchWiki

Offline

#5 2014-08-29 18:17:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: How can I disable automatic time syncing?[SOLVED]

Also, please post the output of timedatectl


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-08-29 19:52:03

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: How can I disable automatic time syncing?[SOLVED]

torors wrote:

I think you can stop ntp with

 # systemctl stop ntpd 

Then yoy can run:

 # ntpd -gq 

For more information: ntp in ArchWiki


It changed 7:51, when the time is 3:51, which is an improvement.


But, it's still wrong tongue

Offline

#7 2014-08-29 19:53:04

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: How can I disable automatic time syncing?[SOLVED]

ewaller wrote:

Also, please post the output of timedatectl

# timedatectl
      Local time: Fri 2014-08-29 19:52:44 UTC
  Universal time: Fri 2014-08-29 19:52:44 UTC
        RTC time: Fri 2014-08-29 19:52:44
       Time zone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
      DST active: n/a
#

Offline

#8 2014-08-29 19:56:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: How can I disable automatic time syncing?[SOLVED]

BabbyUser wrote:

It changed 7:51, when the time is 3:51, which is an improvement.


But, it's still wrong tongue

Don't tell me, let me guess.  You live on the East coast of North America.

Too bad you you did not respond to my request yet. edit: yes you did smile The same time I was posting.

Set your time zone

Last edited by ewaller (2014-08-29 19:58:31)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2014-08-29 20:28:08

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: How can I disable automatic time syncing?[SOLVED]

ewaller wrote:
BabbyUser wrote:

It changed 7:51, when the time is 3:51, which is an improvement.


But, it's still wrong tongue

Don't tell me, let me guess.  You live on the East coast of North America.

Too bad you you did not respond to my request yet. edit: yes you did smile The same time I was posting.

Set your time zone

I did, but it stays the same, do I need to reboot or?

Offline

#10 2014-08-29 20:29:50

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I disable automatic time syncing?[SOLVED]

BabbyUser wrote:
ewaller wrote:

Set your time zone

I did, but it stays the same, do I need to reboot or?

No, you didn't.

BabbyUser wrote:

       Time zone: n/a (UTC, +0000)

https://wiki.archlinux.org/index.php/Time#Time_zone

Offline

#11 2014-08-29 22:13:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: How can I disable automatic time syncing?[SOLVED]

Please read the wiki.  I does have the answer.

The incantation you are looking for is timedatectl set-timezone US/Eastern


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2014-08-29 22:21:22

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: How can I disable automatic time syncing?[SOLVED]

2ManyDogs wrote:
BabbyUser wrote:
ewaller wrote:

Set your time zone

I did, but it stays the same, do I need to reboot or?

No, you didn't.

BabbyUser wrote:

       Time zone: n/a (UTC, +0000)

https://wiki.archlinux.org/index.php/Time#Time_zone

Oops, appears I didn't. I redid it, and it worked, the time is now set. smile Thank you. Marking as SOLVED.

Offline

Board footer

Powered by FluxBB