I cant get the time to sync.
This is the output from timedatectl status
Local time: Fri 2021-12-10 16:00:26 IST
Universal time: Fri 2021-12-10 10:30:26 UTC
RTC time: Fri 2021-12-10 10:30:26
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
I think the problem is the line 5, ‘System clock synchronized: no’, but I cant figure out how to enable it.
Here is an output from timedatectl timesync-status
After you ran sudo timedatectl set-ntp true did the output of timedatectl status changed?
Do you have any problem in resolving the FallbackNTPServers DNS Names to an IP address?
You might want to specify in /etc/systemd/timesyncd.conf NTP Servers that work in your region better than the FallbackNTPServers. It does not need to be an DNS Name, you can also use IP addresses. Don’t forget to uncomment the NTP line.
After you made changes to /etc/systemd/timesyncd.conf restart systemd-timesyncd.service
The in the status of systemd-timesyncd.service you should see a line like
systemd-timesyncd[273]: Initial synchronization to time server ...
Local time: Fri 2021-12-10 22:25:49 IST
Universal time: Fri 2021-12-10 16:55:49 UTC
RTC time: Fri 2021-12-10 16:55:50
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
I don’t know what ‘resolving the FallbackNTPServers DNS Names to an IP address’ means.
I added a list of pools for india from this site https://www.pool.ntp.org/zone/in to /etc/systemd/timesyncd.conf and restarted systemd-timesyncd.service by running sudo systemctl restart systemd-timesyncd.
Here is what /etc/systemd/timesyncd.conf looks like now:
[Time]
NTP=server 0.in.pool.ntp.org server 1.in.pool.ntp.org server 2.in.pool.ntp.org server 3.in.pool.ntp.org
FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
and this is what timedatectl show-timesync --all looks like now:
LinkNTPServers=
SystemNTPServers=server 0.in.pool.ntp.org server 1.in.pool.ntp.org server 2.in.pool.ntp.org server 3.in.pool.ntp.org
FallbackNTPServers=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
ServerName=
ServerAddress=
RootDistanceMaxUSec=5s
PollIntervalMinUSec=32s
PollIntervalMaxUSec=34min 8s
PollIntervalUSec=0
Frequency=0
I looked at that arch wiki already before I posted here on the forum and I got the contents for /etc/systemd/timesyncd.conf from there bcause I deleted the one that was there before, after reading a post that said deleting the conf file would reset to things to default.
But besides that I didn’t find anything that has helped me.
thanks but the output for timedatectl show-timesync --all seems to be the same even after I changed it.
and also the time is not right yet.
Here is what it looks like after the change and restarting systemd-timesyncd.service:
I have tried this before and it didn’t work.
But here is what timedatectl status outputs after running timedatectl set-local-rtc 1:
Local time: Fri 2021-12-10 22:54:43 IST
Universal time: Fri 2021-12-10 17:24:43 UTC
RTC time: Fri 2021-12-10 22:54:42
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: no
NTP service: active
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
Notice how rtc time changed to the wrong time after running timedatectl set-local-rtc 1.
What did not work. The warning in timedatectl status is completely normal. It is not really supported, you can also make the switch in Windows. The Arch Wiki page also describes a way to change this in Windows.
But you need to make sure the RTC setting is the same in both Windows and Manjaro.
This is the same timezone as in timedatectl. If this is not your timezone, change it with timedatectl.
Do I have to reinstall manjaro again? I feel like its been falling apart for a while now on my computer cause I get lots of error message when shutting down and starting up.
If you want why not. Personally this is always the wrong decision. Better find out why it happens. Check the logs and journal, look up the errors and fix them.