Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 7 of 19 FirstFirst ... 5678917 ... LastLast
Results 91 to 105 of 273

Thread: Vix 5.1.006. Time wrong

  1. #91
    SpaceRat's Avatar
    Title
    Senior Member
    Join Date
    Apr 2015
    Posts
    206
    Thanks
    25
    Thanked 79 Times in 52 Posts
    Try it, you are free to increase the count for the loop.
    I tested with bad URL, but not with resolution not working at all so you might be right.
    As the sync is backgrounded, higher values at least shouldn't slow down boot.

    Gesendet von meinem SM-N910F mit Tapatalk
    Receiver/TV:
    • Vu+ Duo² 4*S2+2*C / 1.8TB HDD / OpenATV 6.1@Samsung 50" Plasma
    • AX Quadbox 2400 / 2*S2/2*C / 930GB HDD / OpenATV 6.1@Samsung 32" LCD
    • Vu+ Solo² / 465GB HDD / OpenATV 6.1
    • Vu+ Solo² / 230GB HDD / OpenATV 6.1
    • DVBSky S2-Twin-Tuner PCIe@Samsung SyncMaster T240HD (PC)
    Pay TV: Redlight Mega, Brazzers TV Europe, XXL, HD-, Sky
    Internet: Unitymedia 1play 100 / Cisco EPC3212 + Linksys WRT1900ACS + Fritz!Box 7390 / IPv4 (UM) + IPv6 (HE)

  2. #92
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,655
    Thanks
    65
    Thanked 655 Times in 511 Posts
    Quote Originally Posted by birdman View Post
    OK, but if name resolution is failing because the network isn't up isn't there a possibility that the loop over 5 attempts will actually get run very quickly (since ping won't be running with its 4s timeout)?
    Out of interest. What happens if the box isn't networked at all and is just being used as a stand alone broadcast receiver/PVR?
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  3. #93
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by SpaceRat View Post
    As the sync is backgrounded, higher values at least shouldn't slow down boot.
    You don't seem to be following the actual bug issue.
    The time sync at boot must not be done in the background!
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  4. #94
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by adm View Post
    Out of interest. What happens if the box isn't networked at all and is just being used as a stand alone broadcast receiver/PVR?
    Then you would be using the time from the transponders (in enigma2) and, since there is no network interface to bring up then there will be no ntpdate-sync run at boot time.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #95
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by birdman View Post
    You don't seem to be following the actual bug issue.
    The time sync at boot must not be done in the background!
    I tried your change to ntpdate-sync to foreground the ntpdate check, but it didn't seem to make any difference (but maybe I did it wrong). I decided to join this thread as SpaceRat has responded to my PM. I found that if I changed from NTP sync to Transponder sync and rebooted (after complete power down to clear all capacitors etc.) then the box came up initially with the fake-hwclock.data time, but then corrected to the transponder time. When I changed back to NTP sync and rebooted after complete power down, then the box was stuck on fake-hwclock.data time.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  6. #96
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by fat-tony View Post
    When I changed back to NTP sync and rebooted after complete power down, then the box was stuck on fake-hwclock.data time.
    So your box either syncs twice or never? I can't, at the moment, see how that can happen. But if it is then there must be a way...
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  7. #97
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by birdman View Post
    You don't seem to be following the actual bug issue.
    The time sync at boot must not be done in the background!
    I now have an ntpdate-sync script which runs ntpdate in the background when called from enigma2, but in the foreground if called when an interface is brought up (i.e. METHOD is set).
    The former is needed to ensure that the time is set before services start (the whole point of the original change) and the latter is needed as enigma2 runs it using Console.ePopen(), and the Vix spinner pops up if that doesn't complete in <5s(?), which it usually won't.

    This is it:
    ntpdate-sync.zip
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. #98
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    I'm stumped. I've changed so many different things my mind is going................
    Definitely the double sync which is stepping the time into the future is an issue, but I don't know what is causing that as enigma2.sh has the call to ntpdate commented out, so it should be just ntpdate-sync which is being run and it has supposedly a check to ensure that ntpdate is not run twice.
    Also, the fact that fake-hwclock.data does not get updated once it has a value into the future is another issue.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  9. #99
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by birdman View Post
    I now have an ntpdate-sync script which runs ntpdate in the background when called from enigma2, but in the foreground if called when an interface is brought up (i.e. METHOD is set).
    The former is needed to ensure that the time is set before services start (the whole point of the original change) and the latter is needed as enigma2 runs it using Console.ePopen(), and the Vix spinner pops up if that doesn't complete in <5s(?), which it usually won't.

    This is it:
    ntpdate-sync.zip
    Thanks @birdman - I'll give it a shot on my machine. Off to bed now
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  10. #100
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by fat-tony View Post
    Iso it should be just ntpdate-sync which is being run and it has supposedly a check to ensure that ntpdate is not run twice.
    No. It has a check to ensure it isn't being run twice at the same time, but that is only done if the /usr/bin/lockfile-create exists, which it doesn't by default on OpenVix.

    Also, the fact that fake-hwclock.data does not get updated once it has a value into the future is another issue.
    That's a deliberate design feature, although I forget why.
    It's configurable by uncomment the line in /etc/default/fake-hwclock.

    The real issue here is how it ever gets a future time set.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  11. #101
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,362
    Thanks
    6,443
    Thanked 9,160 Times in 6,235 Posts
    Quote Originally Posted by birdman View Post
    The real issue here is how it ever gets a future time set.
    Wasn't that answered before? Two operations.

  12. #102
    Ashley69's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2015
    Posts
    1,099
    Thanks
    205
    Thanked 290 Times in 246 Posts
    I presume this issue is still ongoing.
    I changed my time sync to ntp because of the incorrect time being shown when on transponder sync and this seemed to fix the issue.
    However when my box woke from deep standby this morning it had the incorrec time. (ntp sync)
    A reboot has now brought in the correct time.
    I presume if I had waited (sync set to very 30 mins)30 mins it would have corrected the time.
    The box is a Mutant HD51
    Image 5.1.011
    Octagon SF8008 4K, VU+Duo 2..
    Edision OS MINI,

  13. #103
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    @birdman - I've posted twice on the other bug thread about how ntpdate is being started twice at the same time, then updates the clock with the offset twice, thus moving the time into the future. I think your presumption that ntpdate uses an absolute time is not correct. My understanding is that ntpdate (like ntpd) retrieves a timestamp from a remote server after initially taking a local timestamp, then calculates the round trip delay etc., works out a difference and either applies that to the system clock by a set or a slew. I'm assuming that in the case of the double start of ntpdate one is picking up the result of the other and applying it twice. Don't forget that my timeserver is on the LAN and the round-trip delay is only a millisecond or so.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  14. #104
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,796
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by fat-tony View Post
    I think your presumption that ntpdate uses an absolute time is not correct.
    I think it sets one. Easy enough to check that, though.

    I'm assuming that in the case of the double start of ntpdate one is picking up the result of the other and applying it twice.
    It was the future fake_hwclock that was the issue, but I'd forgotten that you had a double advance.

    Perhaps ntp should be taking its own lock when it working....given that there is nothing else to stop it being run twice on any system. It shoudln't be relying on any external mutex mechanism.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  15. #105
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by birdman View Post
    I now have an ntpdate-sync script which runs ntpdate in the background when called from enigma2, but in the foreground if called when an interface is brought up (i.e. METHOD is set).
    The former is needed to ensure that the time is set before services start (the whole point of the original change) and the latter is needed as enigma2 runs it using Console.ePopen(), and the Vix spinner pops up if that doesn't complete in <5s(?), which it usually won't.

    This is it:
    ntpdate-sync.zip
    @birdman - I installed your script change and shut the box down and pulled the power overnight. This morning I started up but ntpdate-sync is not updating my system time at all now. It appears to be running but it's not changing the system clock time which started from the fake-hwclock.data of 07.30 set last night.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

Page 7 of 19 FirstFirst ... 5678917 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.