The pre-start script got the date for us from the internet, until now.
It still does, btw.
Apparently we should be ashamed of that.
That wasn't referring to the sync as it, but to the fact that is just a workaround for something that is and always has been implemented in yocto, but just wasn't working.
The final target should always be to get the core OS (yocto/OpenEmbedded) working for all, rather than implementing workarounds in distro specific repos so that every team has to re-invent the wheel.
We added it because debug logs always had the epoch date. As most of us use 28.2, the date has always been correct for us.
Forget about 28.2, especially when you are really talking about NTP (= Internet Time).
We are in the very same situation: Astra 19.2°E delivers sane times, but we suffer from E2 not really syncing to it, due to code for other sats.
That wasn't introduced by latest changes, that has always been the case, I just noticed it when looking for the reason why the time suddenly was totally off, just because it was approximated at boot.
To me, a wrong date/time is a wrong date and time. Just because some services don't run unless the date is within a specific time range, that does not means we should force a wrong date/time and be unable to correct it.
You are confusing hen and egg here. The E2 code contained silly workarounds (which honestly I simply didn't expect).
Then, instead of fixing the E2 code, yocto was broken or not fixed in order to keep the crappy workaround working.
Approx time and NTP sync have always been inside yocto, they have either been patched out (approx time) or kept broken (NTP one shot).
Hopefully the change that SpaceRat will make will bring it back to how it was.
It already is. Birdman is probably right assuming that slewing the time towards real time is simply too slow. I will make the one shot NTP adjust the time instantly.
BTW: Another bug in E2 was encountered in the process. E2 doesn't let tuners sleep before the first DVB sync, which will never happen if NTP sync is selected.
To test: Set time sync to NTP, restart box, send it to standby. In OWIF you can see that one tuner remains powered, if you use a softcam you can see it still working too if the last station was encrypted.
Previously a GUI restart "fixed" this, because E2 considered the now set time as good and as good as a first sync.
E2 lacked code in dvbtime.cpp not to wait for a transponder sync if NTP is chosen.
See my latest two commits in OpenATVfor a better workaround. It's still just a workaround (If NTP sync is selected and time appears good, consider the first DVB sync as done), but a better one as before (No restart required before sending box to standby).
The real solution would be NetworkTime.py telling dvbtime.cpp that a successful NTP sync was done. I'll compare NetworkTime and the PLi plugin if they have a better solution.
Side effects do happen. He is right, the operating system should have the correct time. Enigma2 is just a program.
Exactly.
On the other hand E2 should always be able to configure the OS, as sending the average user to shell isn't really a permanent solution.
Gesendet von meinem SM-N910F mit Tapatalk