Skip to content

Conversation

danielbanar
Copy link
Contributor

@danielbanar danielbanar commented Sep 16, 2025

Hi,

I noticed that when the camera boots, it starts with the firmware compilation time.

This causes problems when the device is not connected to the internet. When recording videos to a file, the system time is always the same at boot, which results in new recordings being concatenated into the same file instead of creating separate files.

Currently, the time is set in S30customizer from /etc/os-release. I added a script that restores the system time from a saved timestamp file on boot and updates this file periodically. This ensures that the time at boot is set to the last known time the camera was powered on, although the restored time might be outdated.

Personally, I don’t like the name fake-hwclock, but it’s called that on Debian systems, including Raspberry Pi. I would have preferred something like sw-rtc instead.

@flyrouter
Copy link
Member

Good afternoon

Thank you for your suggestion; it's quite valuable because you write good comments outlining your thoughts.

Yes, the package can be considered and integrated, but I think we should remove the "-openipc" ending as it's too long and unnecessary. I think fake-hwclock or sw-rtc would be sufficient as they don't conflict with other packages. Perhaps this simple sample will be useful to someone, but we won't include it in the firmware by default.

I'd also like to point out that the streamer settings include a "notime" flag in the file writing section, which allows you to be completely independent of the time and avoid using an incorrect date or a lagging time. You might find this interesting.

@danielbanar danielbanar force-pushed the fake-hwclock branch 3 times, most recently from 1b14684 to 5147440 Compare September 22, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants