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
MP hangs when scheduled recording starts.
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: 1178510" data-attributes="member: 82144"><p>[USER=56931]@Tuomaa[/USER]</p><p>Thanks for your analysis. <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>As you can see from the log file, the events that MediaPortal receives from Windows in the MP1-2 case are:</p><p></p><p>1. [2016-03-13 11:07:05,020] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)</p><p></p><p>2. [2016-03-13 11:07:10,050] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)</p><p>...</p><p>[2016-03-13 11:07:10,050] [Log ] [MPMain ] [INFO ] - Main: The display is on</p><p></p><p>3. [2016-03-13 11:09:10,753] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)</p><p>[2016-03-13 11:09:10,769] [Log ] [MPMain ] [INFO ] - Main: User is providing input to the session</p><p></p><p>So, Windows never sends WM_POWERBROADCAST + PBT_APMRESUMESUSPEND message that you mentioned. Of course Windows <em>should</em> have sent that message... but from experience with many similar reports from various people, it has become obvious that we can't assume that message will be sent/received. Perhaps there's a driver problem or rogue application on these people's systems. I don't know...</p><p></p><p>Anyway, if you look at the MP code you will see that MP now recognises that Windows failed to send the message. We attempt to generate the message that Windows should have sent for all the plugins that have WndProc()s:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L2036" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L2036</a></p><p></p><p>If CEC Remote does not have a WndProc, it obviously won't receive the message from MP. In that case I recommend CEC Remote code to detect the situation in the same way that MP does (by detection of WM_POWERBROADCAST + PBT_POWERSETTINGCHANGE + GUID_SESSION_USER_PRESENCE).</p><p></p><p>I hope that helps. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="mm1352000, post: 1178510, member: 82144"] [USER=56931]@Tuomaa[/USER] Thanks for your analysis. :) As you can see from the log file, the events that MediaPortal receives from Windows in the MP1-2 case are: 1. [2016-03-13 11:07:05,020] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC) 2. [2016-03-13 11:07:10,050] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE) ... [2016-03-13 11:07:10,050] [Log ] [MPMain ] [INFO ] - Main: The display is on 3. [2016-03-13 11:09:10,753] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE) [2016-03-13 11:09:10,769] [Log ] [MPMain ] [INFO ] - Main: User is providing input to the session So, Windows never sends WM_POWERBROADCAST + PBT_APMRESUMESUSPEND message that you mentioned. Of course Windows [I]should[/I] have sent that message... but from experience with many similar reports from various people, it has become obvious that we can't assume that message will be sent/received. Perhaps there's a driver problem or rogue application on these people's systems. I don't know... Anyway, if you look at the MP code you will see that MP now recognises that Windows failed to send the message. We attempt to generate the message that Windows should have sent for all the plugins that have WndProc()s: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L2036[/URL] If CEC Remote does not have a WndProc, it obviously won't receive the message from MP. In that case I recommend CEC Remote code to detect the situation in the same way that MP does (by detection of WM_POWERBROADCAST + PBT_POWERSETTINGCHANGE + GUID_SESSION_USER_PRESENCE). I hope that helps. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
MP hangs when scheduled recording starts.
Contact us
RSS
Top
Bottom