home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPStandbyHandler - Does Not Record On 2nd And Subsequent Recordings
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bounguine" data-source="post: 336221" data-attributes="member: 16098"><p>My case is more complex</p><p></p><p>Problem 1</p><p>DVB-card is not initialized on resuming, causing me to loose recordings on resuming from hibernation</p><p>Solving:</p><p>> in Mpsh or nnCron (on resume):</p><p>restart DVB-driver</p><p></p><p>Problem 2</p><p>Restarting DVB-driver when TVServer is already running may cause issues (I saw it when I used nnCron with driver control)</p><p>Solving:</p><p>> in Mpsh (on resume):</p><p>1) stop TVServer,</p><p>2) restart DVB-driver,</p><p>3) start TVServer</p><p></p><p>Problem 3</p><p>As TVServer is marked in “Services” to be launched “Auto”, problem 2 may occur, because I’m not pretty much sure that it always starts before step 1.</p><p>Solving:</p><p>> In “Services” TVServer to be marked as “manually”,</p><p>> in Mpsh (on resume):</p><p>2) restart DVB-driver,</p><p>3) start TVServer</p><p></p><p>Problem 4</p><p>Arises from problem 3, as starup section is not yet implemented in Mpsh.</p><p>Solving:</p><p>> use nnCron to start TVServer with a Start-up script:</p><p>3) start TVServer</p><p></p><p>Problem 5</p><p>TVServer rejects connection from MP for quite a long time. </p><p>MP (after starting up/resuming) asks me to put the hostname of my TVServer.</p><p>Solving:</p><p>a) restart MP manually,</p><p>b) use MS loopback adaptor.</p><p></p><p>Problem 6</p><p>MS SQL (My SQL) starts after TVServer tries to connect to the DB (“login “sa” rejected). </p><p>MP (after starting up/resuming) has a blank “on now” window.</p><p>Solving:</p><p>a) restart MP manually,</p><p>b) put a delay in MP console (in my case – 40-50 secs).</p><p></p><p>Problem 7</p><p>TVServer can’t lock DVB-card on starting up/resuming, even DVB-driver is restarted, causing me to loose 3 of 3 scheduled recordings every night.</p><p>Solving:</p><p>a) choose any FTA channel and come back (works only when watching TV, but not recording with a scheduler),</p><p>b) check an option in TVServer console to build the graph (it’s working and I loose only 1 program from 3 scheduled).</p><p></p><p>Problem 8</p><p>Arises from problem 6 and might be 7 (b). </p><p>The whole procedure takes time. </p><p>MP (although “wait for TVServer to start” is checked) starts counting down before TVServer finishes the whole procedure.</p><p>100 secs of delay (maximum value in MP console) is not enough. With this maximum delay MP reads channels and groups according to logs, but “on screen” window for TV is blank, Radio channels and groups are present.</p><p>Solving:</p><p>a) restart MP manually (waiting again 100 secs),</p><p>b)</p><p>> uncheck “start with windows” and “restart on resuming” in MP console, putting a zero delay,</p><p>> in Mpsh (on resume):</p><p>2) restart DVB-driver,</p><p>3) start TVServer,</p><p>4) delay (>100 secs),</p><p>5) start MP,</p><p>> nnCron (start up):</p><p>3) start TVServer,</p><p>4) delay (>100 secs),</p><p>5) start MP,</p><p></p><p>Problem 9</p><p>I still don’t want to loose anything (see problem 7).</p><p>Automatically starting timeshifting a predefined FTA-channel when TVServer starts might be the solution.</p><p>Here’s an example of how to do this (I’m not a coder, unfortunately):</p><p><a href="https://www.team-mediaportal.com/manual/TV-Server_Development/TV-Server_devexample2" target="_blank">TV-Server_Development/TV-Server_devexample2 - MediaPortal Manual Documentation</a></p><p></p><p>So, the procedure might be like this:</p><p>> TVServer – “manual” in “Services”,</p><p>> (in MP console) “start with windows” and “resume after standby” are unchecked, delay = 0,</p><p>> in (PowerScheduler) put the time (Time 1) before waking PC up for recording, where Time 1 > Time 2 * Counter (see below),</p><p>> in Mpsh (on resume):</p><p>2) restart DVB-driver,</p><p>3) start TVServer (with or without building a graph),</p><p>4)</p><p>4a) watch TVServer to start (e.g. there’s a line showing it in the log-file),</p><p>4b) start timeshifting channel (Channel N, predefined by a user) for Time 1 (period if timeshifting in secs),</p><p>4c) </p><p>- if timeshifting is successful (e.g. there’s a TS-file in timeshifting directory or a corresponding line in the log), stop timeshifting and go to (5),</p><p>- if unsuccessful, repeat timeshifting, but not more than Counter (number of retries),</p><p>- if the last retry is unsuccessful, go to (5)</p><p>5) start MP,</p><p>> nnCron (start up):</p><p>3) start TVServer (with or without building a graph),</p><p>4)</p><p>4a) watch TVServer to start (e.g. there’s a line showing it in the log-file),</p><p>4b) start timeshifting channel (Channel N, predefined by a user) for Time 2 (period if timeshifting in secs),</p><p>4c) </p><p>- if timeshifting is successful (e.g. there’s a TS-file in timeshifting directory or a corresponding line in the log), stop timeshifting and go to (5),</p><p>- if unsuccessful, repeat timeshifting, but not more than Counter (number of retries),</p><p>- if the last retry is unsuccessful, go to (5)</p><p>5) start MP.</p><p></p><p>Of course, I’d love the startup procedure to be made by Mpsh, as I should think much how to do it with nnCron.</p><p></p><p>Problem 10</p><p>If MP is started and if the tuner is still unlocked, there’s nothing for me, but to switch to an FTA channel and come back.</p><p>But if it occurs with a scheduled recording there might be another problem.</p><p>I looked through logs and saw that if the tuner is not locked TVServer tries to make a record every 15 secs until the scheduled time finishes. And only then tries to go to hibernation.</p><p></p><p>So I see a very long record in the log with this always repeating:</p><p></p><p>2008-11-27 07:09:49.625000 [5]: Recording ДЖАЗ added in _recordingsInProgressList</p><p>…</p><p>2008-11-27 07:09:49.640625 [28]: card: Tuner locked: False</p><p>2008-11-27 07:09:49.656250 [28]: **************************************************</p><p>2008-11-27 07:09:49.656250 [28]: ***** SIGNAL LEVEL: 0, SIGNAL QUALITY: 0 *****</p><p>2008-11-27 07:09:49.656250 [28]: **************************************************</p><p>If after that PC tries to go to hibernation as it is planned by PowerScheduler and there’ no more activity, PC dies with a blue screen “going to standby” until I restart it in the morning.</p><p>In logs I see this:</p><p>2008-11-27 07:20:24.500000 [5]: PowerScheduler: lastUserTime: 05:40:42.7820 , True</p><p>2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59</p><p>2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />cheduledRecordingsHandler time:28.11.2008 0:55:00</p><p>2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler:EpgGrabbingHandler time:27.11.2008 14:02:00</p><p>2008-11-27 07:20:24.515625 [5]: PowerScheduler.NextWakeupTime: inspecting handler<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />owerSchedulerClientPlugin time:27.11.2008 14:00:00</p><p>2008-11-27 07:20:24.515625 [5]: PowerScheduler: lastUserTime: 05:40:42.7820 , True</p><p>2008-11-27 07:20:24.515625 [5]: PowerScheduler: System is unattended and idle - initiate suspend/hibernate</p><p>2008-11-27 07:20:24.515625 [5]: PowerScheduler: Manual system suspend requested by </p><p>2008-11-27 07:20:24.515625 [5]: PowerScheduler: Concurrent shutdown was ignored: Hibernate ; force: True</p><p>…</p><p></p><p>2008-11-27 08:07:24.500000 [21]: PowerScheduler: lastUserTime: 05:40:42.7820 , True</p><p>2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59</p><p>2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />cheduledRecordingsHandler time:28.11.2008 0:55:00</p><p>2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler:EpgGrabbingHandler time:27.11.2008 14:02:00</p><p>2008-11-27 08:07:24.515625 [21]: PowerScheduler.NextWakeupTime: inspecting handler<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />owerSchedulerClientPlugin time:27.11.2008 14:00:00</p><p>2008-11-27 08:07:24.515625 [21]: PowerScheduler: lastUserTime: 05:40:42.7820 , True</p><p>2008-11-27 08:07:24.515625 [21]: PowerScheduler: System is unattended and idle - initiate suspend/hibernate</p><p>2008-11-27 08:07:24.515625 [21]: PowerScheduler: Manual system suspend requested by </p><p>2008-11-27 08:07:24.515625 [21]: PowerScheduler: Concurrent shutdown was ignored: Hibernate ; force: True</p><p></p><p>You see I’m loosing other possible recordings, because PC is dead and needs me to make a hard reset.</p></blockquote><p></p>
[QUOTE="bounguine, post: 336221, member: 16098"] My case is more complex Problem 1 DVB-card is not initialized on resuming, causing me to loose recordings on resuming from hibernation Solving: > in Mpsh or nnCron (on resume): restart DVB-driver Problem 2 Restarting DVB-driver when TVServer is already running may cause issues (I saw it when I used nnCron with driver control) Solving: > in Mpsh (on resume): 1) stop TVServer, 2) restart DVB-driver, 3) start TVServer Problem 3 As TVServer is marked in “Services” to be launched “Auto”, problem 2 may occur, because I’m not pretty much sure that it always starts before step 1. Solving: > In “Services” TVServer to be marked as “manually”, > in Mpsh (on resume): 2) restart DVB-driver, 3) start TVServer Problem 4 Arises from problem 3, as starup section is not yet implemented in Mpsh. Solving: > use nnCron to start TVServer with a Start-up script: 3) start TVServer Problem 5 TVServer rejects connection from MP for quite a long time. MP (after starting up/resuming) asks me to put the hostname of my TVServer. Solving: a) restart MP manually, b) use MS loopback adaptor. Problem 6 MS SQL (My SQL) starts after TVServer tries to connect to the DB (“login “sa” rejected). MP (after starting up/resuming) has a blank “on now” window. Solving: a) restart MP manually, b) put a delay in MP console (in my case – 40-50 secs). Problem 7 TVServer can’t lock DVB-card on starting up/resuming, even DVB-driver is restarted, causing me to loose 3 of 3 scheduled recordings every night. Solving: a) choose any FTA channel and come back (works only when watching TV, but not recording with a scheduler), b) check an option in TVServer console to build the graph (it’s working and I loose only 1 program from 3 scheduled). Problem 8 Arises from problem 6 and might be 7 (b). The whole procedure takes time. MP (although “wait for TVServer to start” is checked) starts counting down before TVServer finishes the whole procedure. 100 secs of delay (maximum value in MP console) is not enough. With this maximum delay MP reads channels and groups according to logs, but “on screen” window for TV is blank, Radio channels and groups are present. Solving: a) restart MP manually (waiting again 100 secs), b) > uncheck “start with windows” and “restart on resuming” in MP console, putting a zero delay, > in Mpsh (on resume): 2) restart DVB-driver, 3) start TVServer, 4) delay (>100 secs), 5) start MP, > nnCron (start up): 3) start TVServer, 4) delay (>100 secs), 5) start MP, Problem 9 I still don’t want to loose anything (see problem 7). Automatically starting timeshifting a predefined FTA-channel when TVServer starts might be the solution. Here’s an example of how to do this (I’m not a coder, unfortunately): [url=https://www.team-mediaportal.com/manual/TV-Server_Development/TV-Server_devexample2]TV-Server_Development/TV-Server_devexample2 - MediaPortal Manual Documentation[/url] So, the procedure might be like this: > TVServer – “manual” in “Services”, > (in MP console) “start with windows” and “resume after standby” are unchecked, delay = 0, > in (PowerScheduler) put the time (Time 1) before waking PC up for recording, where Time 1 > Time 2 * Counter (see below), > in Mpsh (on resume): 2) restart DVB-driver, 3) start TVServer (with or without building a graph), 4) 4a) watch TVServer to start (e.g. there’s a line showing it in the log-file), 4b) start timeshifting channel (Channel N, predefined by a user) for Time 1 (period if timeshifting in secs), 4c) - if timeshifting is successful (e.g. there’s a TS-file in timeshifting directory or a corresponding line in the log), stop timeshifting and go to (5), - if unsuccessful, repeat timeshifting, but not more than Counter (number of retries), - if the last retry is unsuccessful, go to (5) 5) start MP, > nnCron (start up): 3) start TVServer (with or without building a graph), 4) 4a) watch TVServer to start (e.g. there’s a line showing it in the log-file), 4b) start timeshifting channel (Channel N, predefined by a user) for Time 2 (period if timeshifting in secs), 4c) - if timeshifting is successful (e.g. there’s a TS-file in timeshifting directory or a corresponding line in the log), stop timeshifting and go to (5), - if unsuccessful, repeat timeshifting, but not more than Counter (number of retries), - if the last retry is unsuccessful, go to (5) 5) start MP. Of course, I’d love the startup procedure to be made by Mpsh, as I should think much how to do it with nnCron. Problem 10 If MP is started and if the tuner is still unlocked, there’s nothing for me, but to switch to an FTA channel and come back. But if it occurs with a scheduled recording there might be another problem. I looked through logs and saw that if the tuner is not locked TVServer tries to make a record every 15 secs until the scheduled time finishes. And only then tries to go to hibernation. So I see a very long record in the log with this always repeating: 2008-11-27 07:09:49.625000 [5]: Recording ДЖАЗ added in _recordingsInProgressList … 2008-11-27 07:09:49.640625 [28]: card: Tuner locked: False 2008-11-27 07:09:49.656250 [28]: ************************************************** 2008-11-27 07:09:49.656250 [28]: ***** SIGNAL LEVEL: 0, SIGNAL QUALITY: 0 ***** 2008-11-27 07:09:49.656250 [28]: ************************************************** If after that PC tries to go to hibernation as it is planned by PowerScheduler and there’ no more activity, PC dies with a blue screen “going to standby” until I restart it in the morning. In logs I see this: 2008-11-27 07:20:24.500000 [5]: PowerScheduler: lastUserTime: 05:40:42.7820 , True 2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59 2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler:ScheduledRecordingsHandler time:28.11.2008 0:55:00 2008-11-27 07:20:24.500000 [5]: PowerScheduler.NextWakeupTime: inspecting handler:EpgGrabbingHandler time:27.11.2008 14:02:00 2008-11-27 07:20:24.515625 [5]: PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:27.11.2008 14:00:00 2008-11-27 07:20:24.515625 [5]: PowerScheduler: lastUserTime: 05:40:42.7820 , True 2008-11-27 07:20:24.515625 [5]: PowerScheduler: System is unattended and idle - initiate suspend/hibernate 2008-11-27 07:20:24.515625 [5]: PowerScheduler: Manual system suspend requested by 2008-11-27 07:20:24.515625 [5]: PowerScheduler: Concurrent shutdown was ignored: Hibernate ; force: True … 2008-11-27 08:07:24.500000 [21]: PowerScheduler: lastUserTime: 05:40:42.7820 , True 2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59 2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler:ScheduledRecordingsHandler time:28.11.2008 0:55:00 2008-11-27 08:07:24.500000 [21]: PowerScheduler.NextWakeupTime: inspecting handler:EpgGrabbingHandler time:27.11.2008 14:02:00 2008-11-27 08:07:24.515625 [21]: PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:27.11.2008 14:00:00 2008-11-27 08:07:24.515625 [21]: PowerScheduler: lastUserTime: 05:40:42.7820 , True 2008-11-27 08:07:24.515625 [21]: PowerScheduler: System is unattended and idle - initiate suspend/hibernate 2008-11-27 08:07:24.515625 [21]: PowerScheduler: Manual system suspend requested by 2008-11-27 08:07:24.515625 [21]: PowerScheduler: Concurrent shutdown was ignored: Hibernate ; force: True You see I’m loosing other possible recordings, because PC is dead and needs me to make a hard reset. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPStandbyHandler - Does Not Record On 2nd And Subsequent Recordings
Contact us
RSS
Top
Bottom