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
Installation, configuration support
Startup issues
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: 1137643" data-attributes="member: 82144"><p>Thanks Erick</p><p></p><p>1. I'm not able to explain the missing audio, but I suspect that's an HDMI + power timing issue. For all intents and purposes, the logs show MP behaving as if it has and is playing audio.</p><p></p><p>2. The reason you got the error is that the TV service hadn't finished loading.</p><p>MP:</p><p>[2015-05-27 18:43:15,112] [Log ] [MPMain ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMSUSPEND)</p><p>...</p><p>[2015-05-27 18:44:36,552] [Log ] [MPMain ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC)</p><p>...</p><p>[2015-05-27 18:44:45,544] [Log ] [MPMain ] [INFO ] - TVHome.ViewChannelAndCheck(): View channel=GEM</p><p>[2015-05-27 18:44:45,550] [Log ] [MPMain ] [ERROR] - TvServer: Failed to execute remote TV server operation (GetChannelState) The given key was not present in the dictionary.</p><p></p><p>TV Server:</p><p>[2015-05-27 18:43:14,338] [Log ] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: Suspend</p><p>...</p><p>[2015-05-27 18:44:36,041] [Log ] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: ResumeAutomatic</p><p>...</p><p>[2015-05-27 18:44:46,083] [Log ] [PowerEventThread] [INFO ] - Controller: TVServer initialized okay</p><p></p><p>As you can see, you attempted to tune before the TV service had finished loading. Therefore, the error isn't surprising.</p><p></p><p>3. I'm no expert with these sorts of things (I choose to focus on TV Server), but I wonder if this was due to what looks like insertion of a USB drive during MP start up.</p><p></p><p></p><p>You asked why MP doesn't automatically start TV on resume.</p><p>I could be wrong, but I suspect that is due to the way you're putting the PC to sleep. I think what I see is:</p><ol> <li data-xf-list-type="ol">TV is playing in fullscreen.</li> <li data-xf-list-type="ol">You turn the TV off.</li> <li data-xf-list-type="ol">Windows starts to suspend.</li> <li data-xf-list-type="ol">Suspend triggers TV to stop.</li> </ol><p>I think the key issue is (4). If you stop TV before turning the TV off, I think MP should try to start TV automatically when you resume.</p><p></p><p></p><p>You also asked if there is a way to reduce the TV service reload time.</p><p>Well, the above log entries show that the TV service takes approximately ten seconds to load on resume.</p><p></p><p>Five of those ten seconds are a hard-coded delay in PowerScheduler:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/Plugins/PowerScheduler/PowerScheduler.cs#L1667" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/Plugins/PowerScheduler/PowerScheduler.cs#L1667</a></p><p>[2015-05-27 18:44:36,075] [Log ] [PowerEventThread] [DEBUG] - PS: ReInit Controller</p><p>[2015-05-27 18:44:41,080] [Log ] [PowerEventThread] [INFO ] - Controller: Initializing TVServer</p><p></p><p>You wouldn't have that delay if you hadn't enabled the PowerScheduler plugin [expert mode] -> advanced -> "reinitialize TV controller on wakeup" setting:</p><p><a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/13_Plugins/Power_Scheduler/2_Server_Configuration#Advanced_(Expert_Mode_only)" target="_blank">http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/13_Plugins/Power_Scheduler/2_Server_Configuration#Advanced_(Expert_Mode_only)</a></p><p></p><p>Is there a reason you chose to enable that option?</p><p></p><p>Another three of those ten seconds are spent doing nothing, due to your configured tuner detection delay:</p><p><a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/06_General#Delay_for_TV_card_detection" target="_blank">http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/06_General#Delay_for_TV_card_detection</a></p><p>[2015-05-27 18:44:41,154] [Log ] [PowerEventThread] [INFO ] - Controller: delaying device detection for 3 second(s)</p><p>[2015-05-27 18:44:44,160] [Log ] [PowerEventThread] [INFO ] - Starting async device detection...</p><p></p><p>Is there a reason that you put in that delay?</p><p></p><p>The remaining two seconds are the time it <em>actually</em> takes to load the TV service, and that probably can't easily be reduced.</p><p></p><p>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: 1137643, member: 82144"] Thanks Erick 1. I'm not able to explain the missing audio, but I suspect that's an HDMI + power timing issue. For all intents and purposes, the logs show MP behaving as if it has and is playing audio. 2. The reason you got the error is that the TV service hadn't finished loading. MP: [2015-05-27 18:43:15,112] [Log ] [MPMain ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMSUSPEND) ... [2015-05-27 18:44:36,552] [Log ] [MPMain ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMRESUMEAUTOMATIC) ... [2015-05-27 18:44:45,544] [Log ] [MPMain ] [INFO ] - TVHome.ViewChannelAndCheck(): View channel=GEM [2015-05-27 18:44:45,550] [Log ] [MPMain ] [ERROR] - TvServer: Failed to execute remote TV server operation (GetChannelState) The given key was not present in the dictionary. TV Server: [2015-05-27 18:43:14,338] [Log ] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: Suspend ... [2015-05-27 18:44:36,041] [Log ] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: ResumeAutomatic ... [2015-05-27 18:44:46,083] [Log ] [PowerEventThread] [INFO ] - Controller: TVServer initialized okay As you can see, you attempted to tune before the TV service had finished loading. Therefore, the error isn't surprising. 3. I'm no expert with these sorts of things (I choose to focus on TV Server), but I wonder if this was due to what looks like insertion of a USB drive during MP start up. You asked why MP doesn't automatically start TV on resume. I could be wrong, but I suspect that is due to the way you're putting the PC to sleep. I think what I see is: [LIST=1] [*]TV is playing in fullscreen. [*]You turn the TV off. [*]Windows starts to suspend. [*]Suspend triggers TV to stop. [/LIST] I think the key issue is (4). If you stop TV before turning the TV off, I think MP should try to start TV automatically when you resume. You also asked if there is a way to reduce the TV service reload time. Well, the above log entries show that the TV service takes approximately ten seconds to load on resume. Five of those ten seconds are a hard-coded delay in PowerScheduler: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/TvEngine3/TVLibrary/Plugins/PowerScheduler/PowerScheduler.cs#L1667[/URL] [2015-05-27 18:44:36,075] [Log ] [PowerEventThread] [DEBUG] - PS: ReInit Controller [2015-05-27 18:44:41,080] [Log ] [PowerEventThread] [INFO ] - Controller: Initializing TVServer You wouldn't have that delay if you hadn't enabled the PowerScheduler plugin [expert mode] -> advanced -> "reinitialize TV controller on wakeup" setting: [URL]http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/13_Plugins/Power_Scheduler/2_Server_Configuration#Advanced_(Expert_Mode_only)[/URL] Is there a reason you chose to enable that option? Another three of those ten seconds are spent doing nothing, due to your configured tuner detection delay: [URL]http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/141_Configuration/TV-Server_Configuration/06_General#Delay_for_TV_card_detection[/URL] [2015-05-27 18:44:41,154] [Log ] [PowerEventThread] [INFO ] - Controller: delaying device detection for 3 second(s) [2015-05-27 18:44:44,160] [Log ] [PowerEventThread] [INFO ] - Starting async device detection... Is there a reason that you put in that delay? The remaining two seconds are the time it [I]actually[/I] takes to load the TV service, and that probably can't easily be reduced. Hope that helps. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Installation, configuration support
Startup issues
Contact us
RSS
Top
Bottom