Clock is reset every few seconds

  • Hello, please try to set the time zone by referring to https://forums.luckfox.com/viewtopic.p ... C+8#p1054 .
  • I have been through that.

    /etc/profile only applies to shell logins. I want the correct time set in the camera - it is not affected by settings in /etc/profile.

    Also, when I set the date/time with 'ntpd -q -x -b -g -t 1' it soon gets reset back to UTC-8 - which is Beijing time. It appears there's a ntpd job running somehow that does this.
  • The default startup configuration of rkipc has NTPD time synchronization enabled. You can disable this by modifying the [network.ntp] enable property to 0 in the /oem/usr/share/rkipc-300w.ini file.
  • OK thanks! The system now comes up in UTC which is at least understandable.

    Having ntpd run by the camera app is quite peculiar - but given that's the case, is there a way to specify a TZ in that rkipc-300w.ini file?
  • We haven't tested this, but you can refer to the implementation in <Luckfox Pico Sdk>/project/app/rkipc/rkipc/common/network/ntp.c. In rkipc, NTP is set up to configure the OSD timestamp.
  • thanks for the tip!