Xavier time sync error

Hi,

we find that local time and rtc time not sync sometimes , follow picturs ,

lcoal time don’t change per senconds,interval not fixed,example:
watch -n0 date

then will be watch the time not sync.

Thanks,
BR.

What’s the time on the top in the video?

Hi ShaneCCC,

Thank you very much for your reply!

The time on the top in the video is the correct time on the linux server, used to compare the time on the Xavier.

Thanks

I check the watch -n0 date from Xavier compare with Time.is - 在任何時區的精確時間 without problem.
Could you have detail step for checking. Also what the version? I am check on r32.5.1

Hi ShaneCCC,

Thank you very much for your reply again!
I use Jectpack4.4.

This problem does not exist in every Xavier, it is an individual phenomenon, we use the following command"watch -n0 timedatectl" to test, the problem is that time is not synchronized,see the following video:

Thanks,

@Bibek
Any comment for this issue?

Thanks

Hi,
Is this normal?
Any suggestions on this?

Thanks,
BR

Could you try modify the rtc0 to rtc1 in below files and reboot to rry.

root@nvidia-desktop:/lib/udev# grep -ir rtc0 .
./hwclock-set:HCTOSYS_DEVICE=rtc0
./rules.d/50-udev-default.rules:SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"

Hi ShaneCCC,

Thank you for your reply!
I’m going to try it,thanks!

BR

Hi ShaneCCC,
We changed RTC0 to RTC1, but the test did not work. There is still a time asynchronization problem.
The following figure:

Any other suggestions or methods?

Thanks,
BR

We’re investigating this issue, will do the update once root caused.

Hi kayccc,

Thanks!

Thank you for your investigation and I look forward to having a result soon.

BR.

Any progress about this issue?

Write some time to RTC first, whatever time you want.
For ex:
$ timedatectl set-time 10:00
Then watch:
$ watch -n 1 timedatectl

The bottom half of the video is normal, and the top half of the video is a time jump

watch -n 0 timedatectl

The bottom half of the video is normal, and the top half of the video is a time jump

watch -n 0 timedatectl

Does it two different system for the top and bottom?
Did you disable the time sync by below command

sudo timedatectl set-ntp 0
sudo timedatectl set-time 10:00
then 
watch -n 1 timedatectl

Hi ShaneCCC,

Thanks for your reply!
In the last post ,bottom is a reference system with no abnormal time,top is xavier.

Disable the time sync by “sudo timedatectl set-ntp 0”,and the video is bellow:

Thanks!

BR.

Looks like you didn’t disable the time sync, the “System clock synchronized:” still yes

Whether it uses

sudo systemctl stop systemd-timesyncd.service
Sudo timedatectl set-ntp 0
" ? I use it and nothing happens