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
Support
General Support
GUI Freeze after resume from standby
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="mm1352000" data-source="post: 1168235" data-attributes="member: 82144"><p>Sure, I can try to help. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>The last part of the log section is important:</p><p>[collapse]</p><p>[2015-12-30 18:27:14,232] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)</p><p>[2015-12-30 18:27:14,232] [Log ] [MPMain ] [INFO ] - Main: Resuming automatic operation</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - Main: OnResumeAutomatic - reopen Database</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [INFO ] - Main: VideoDatabaseV5.db3 sqllite database disk cache activated.</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [INFO ] - Main: OnResumeAutomatic - Done</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: RESUMEAUTOMATIC</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: System has resumed from standby</p><p>[2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: Run external command[/collapse]</p><p></p><p>Two points about this...</p><p>1. This "WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)" message (which comes from Windows) without the presence of another "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message (which is the message that is expected when a user wakes the system) tells me that either:</p><ul> <li data-xf-list-type="ul">the "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message was not yet received, OR...<br /> </li> <li data-xf-list-type="ul">the system resume was not triggered by user input</li> </ul><p></p><p>2. The display/screen was turned off on standby, and it appears to stay off during resume:</p><p>[2015-12-30 12:14:09,745] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)</p><p>[2015-12-30 12:14:09,745] [Log ] [MPMain ] [INFO ] - Main: The display is off</p><p></p><p>As a result of these two points, MediaPortal's GUI will remain unresponsive <strong>intentionally</strong>. The reason MP doesn't activate the GUI is that it is considered pointless if the screen is off and nobody is present. So, this is the explanation of why the GUI is "frozen".</p><p></p><p></p><p>If somebody did not wake the system (ie. system woke automatically for recording or EPG grabbing etc.) then what you are seeing should be considered normal behaviour. However, in this case I understand that somebody did wake the system. Therefore we have to discover why the "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message to activate the GUI was never received.</p><p></p><p></p><p>Start by looking at the last entry in the log on the MPMain thread. It relates to the PowerScheduler plugin. Therefore we can say that the PS plugin could be blocking resume from continuing, and we should check the PS plugin code.</p><p></p><p>Here is the relevant code:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/PowerSchedulerClientPlugin/PowerScheduler.cs#L1338" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/PowerSchedulerClientPlugin/PowerScheduler.cs#L1338</a></p><p></p><p>From this we can see that it looks like the PS plugin has become stuck - either temporarily or permanently - in running an external command or registering with TV Server (RegisterToRemotePowerScheduler()), and that is probably the cause of your problem. The point is that we see the 'PS: Run external command' message in the log, but we do <strong>not</strong> see the next expected 'PS: Signal "Resume" to the StandbyWakeupThread' message.</p><p></p><p>According to your configuration you have not configured PS to run external commands. Therefore the cause of the problem seems likely to be the registration with TV Server. From the TV Server log I can see that TV Server had not finished resuming. It was still busy preloading your Cinergy 1200 tuner and had not yet started the server-side PS plugin. Since the server-side PS plugin was not started, it would have been impossible for MP's PS plugin to register. MP must wait until TV Server finishes resuming before the GUI can be activated/unfrozen.</p><p></p><p></p><p>In other words, the overall summary of all analysis is: MP was not frozen. MP's PS plugin was waiting for TV Server to finish resuming so it could register with the server-side PS plugin. On your system TV Server will take 10 seconds or more to resume because you've configured:</p><ol> <li data-xf-list-type="ol">PS to restart the TV service on resume.</li> <li data-xf-list-type="ol">Tuner detection to be delayed for 3 seconds.</li> <li data-xf-list-type="ol">Your tuners to be preloaded.</li> </ol><p>You must be patient and wait for all of this to complete before the MP GUI will activate.</p><p></p><p>There is a possibility that TV Server is frozen while trying to load your Cinergy 1200 tuner. In that case a solution may be:</p><ul> <li data-xf-list-type="ul">to disable preloading for that tuner</li> <li data-xf-list-type="ul">increase the tuner detection delay</li> <li data-xf-list-type="ul">get a new tuner that doesn't have problems with suspend/resume</li> </ul><p></p><p>Regards,</p><p>mm</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1168235, member: 82144"] Sure, I can try to help. :) The last part of the log section is important: [collapse] [2015-12-30 18:27:14,232] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC) [2015-12-30 18:27:14,232] [Log ] [MPMain ] [INFO ] - Main: Resuming automatic operation [2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - Main: OnResumeAutomatic - reopen Database [2015-12-30 18:27:14,248] [Log ] [MPMain ] [INFO ] - Main: VideoDatabaseV5.db3 sqllite database disk cache activated. [2015-12-30 18:27:14,248] [Log ] [MPMain ] [INFO ] - Main: OnResumeAutomatic - Done [2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: RESUMEAUTOMATIC [2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: System has resumed from standby [2015-12-30 18:27:14,248] [Log ] [MPMain ] [DEBUG] - PS: Run external command[/collapse] Two points about this... 1. This "WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)" message (which comes from Windows) without the presence of another "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message (which is the message that is expected when a user wakes the system) tells me that either: [LIST] [*]the "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message was not yet received, OR... [*]the system resume was not triggered by user input [/LIST] 2. The display/screen was turned off on standby, and it appears to stay off during resume: [2015-12-30 12:14:09,745] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE) [2015-12-30 12:14:09,745] [Log ] [MPMain ] [INFO ] - Main: The display is off As a result of these two points, MediaPortal's GUI will remain unresponsive [B]intentionally[/B]. The reason MP doesn't activate the GUI is that it is considered pointless if the screen is off and nobody is present. So, this is the explanation of why the GUI is "frozen". If somebody did not[B] [/B]wake the system (ie. system woke automatically for recording or EPG grabbing etc.) then what you are seeing should be considered normal behaviour. However, in this case I understand that somebody did wake the system. Therefore we have to discover why the "WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)" message to activate the GUI was never received. Start by looking at the last entry in the log on the MPMain thread. It relates to the PowerScheduler plugin. Therefore we can say that the PS plugin could be blocking resume from continuing, and we should check the PS plugin code. Here is the relevant code: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/PowerSchedulerClientPlugin/PowerScheduler.cs#L1338[/URL] From this we can see that it looks like the PS plugin has become stuck - either temporarily or permanently - in running an external command or registering with TV Server (RegisterToRemotePowerScheduler()), and that is probably the cause of your problem. The point is that we see the 'PS: Run external command' message in the log, but we do [B]not[/B] see the next expected 'PS: Signal "Resume" to the StandbyWakeupThread' message. According to your configuration you have not configured PS to run external commands. Therefore the cause of the problem seems likely to be the registration with TV Server. From the TV Server log I can see that TV Server had not finished resuming. It was still busy preloading your Cinergy 1200 tuner and had not yet started the server-side PS plugin. Since the server-side PS plugin was not started, it would have been impossible for MP's PS plugin to register. MP must wait until TV Server finishes resuming before the GUI can be activated/unfrozen. In other words, the overall summary of all analysis is: MP was not frozen. MP's PS plugin was waiting for TV Server to finish resuming so it could register with the server-side PS plugin. On your system TV Server will take 10 seconds or more to resume because you've configured: [LIST=1] [*]PS to restart the TV service on resume. [*]Tuner detection to be delayed for 3 seconds. [*]Your tuners to be preloaded. [/LIST] You must be patient and wait for all of this to complete before the MP GUI will activate. There is a possibility that TV Server is frozen while trying to load your Cinergy 1200 tuner. In that case a solution may be: [LIST] [*]to disable preloading for that tuner [*]increase the tuner detection delay [*]get a new tuner that doesn't have problems with suspend/resume [/LIST] Regards, mm [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
GUI Freeze after resume from standby
Contact us
RSS
Top
Bottom