[no Bug] Intermittant failure to sleep / standby (1 Viewer)

MusicMan62

Portal Pro
November 2, 2010
53
6
Frome, UK
Home Country
United Kingdom United Kingdom
My system intermittantly gets into a state where it refuses to go to sleep/standby. This seems to occur after watching several mp-tvseries programs OR lots of terrestrial TV and annoyingly first happens after a resume to update the EPG. Once the EPG is updated it just stays on. If I try to manually put the system to sleep when idle using the remote it also fails in this mode. The log says:

PowerStatus:QuerySuspend rejected by TvEngine.PowerScheduler.PowerScheduler

...and the only way to recover is to reboot the PC and all is well again. I am running PS++ with 'force standby' active. Any ideas as to what exactly is denying the suspend? Logs attached.
 
Last edited by a moderator:

hafblade

Portal Pro
January 19, 2011
675
290
Trier, Germany
Home Country
Germany Germany
Please set the logging behaviour to debug so that we see every information of the powerscheduler.
You could also use the processexplorer of Microsoft (see google) to check which programs are running at the moment and using cpu usage.
Furthermore it would be great if you could make screenshots of your PowerScheduler Customizing.
 

HomeY

Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Please fill in your system specs first.

    Have you set the same Suspend settings in both MP Config & TV Server config? Since according to that PowerStatus line, the TV Server is preventing standby.

    Your TV Server log shows a bunch of errors also. It seems that the database can't be reached, and if EPG grabbing tries to update the info, it'll keep trying untill the database is reached again, which might result in an infinite loop (so no standby)
    Code:
    2012-08-22 09:59:11.031250 [PowerEventThread(8)]: TV service PowerEventThread: Exception: Error: DatabaseUnavailableUnclassified
    Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached.
    Check the connection string: Server=jon;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30; ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Exception of type 'System.Exception' was thrown.
      at MySql.Data.MySqlClient.NativeDriver.Open()

    And what about last nights Suspend? That seemed to have worked according to the logs:
    Code:
    2012-08-21 22:15:10.572250 [PowerEventThread(8)]: PS: Send "EnteringStandby" event
    2012-08-21 22:15:10.650375 [PowerEventThread(8)]: TV service PowerEventThread 30
    2012-08-21 22:15:10.728500 [PowerEventThread(8)]: TV service PowerEventThread 30
    2012-08-22 09:59:09.625000 [PowerEventThread(8)]: TV service PowerEventThread 30
     
    Last edited:

    MusicMan62

    Portal Pro
    November 2, 2010
    53
    6
    Frome, UK
    Home Country
    United Kingdom United Kingdom
    Hi Guys,

    Thanks for your replies. My debug level is set to debug in MP config (screenshot attached). Is there an option somewhere else to give more PS++ debug info? Sorry about not displaying system specs, they used to be displayed but must have got deleted along the way. I have re-entered them in my profile but not sure how to display them here. I have ticked the option in my profile to do this so hopefully they will appear.

    I have also attached screenshots of my PS++ config settings. I have a single seat setup so my client settings are taken from the server setup. Yes i do sometimes get server unreachable errors and I've no idea why, I've just lived with it thinking it was normal behaviour.

    Last night's suspend was successful but the suspend after EPG update failed. Once rebooted it all works again. Perhaps the problem stems from the server being unreachable. Why would that happen?
     

    Attachments

    • MP Config1.JPG
      MP Config1.JPG
      54.5 KB
    • PS++Config.zip
      405.4 KB

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Sorry about not displaying system specs, they used to be displayed but must have got deleted along the way. I have re-entered them in my profile but not sure how to display them here. I have ticked the option in my profile to do this so hopefully they will appear.
    No problem, they probably were reset when the move to the new forum was made ;) (Your specs are accessible underneath your username in the forum -> System Specs)

    I have also attached screenshots of my PS++ config settings. I have a single seat setup so my client settings are taken from the server setup. Yes i do sometimes get server unreachable errors and I've no idea why, I've just lived with it thinking it was normal behaviour.

    Last night's suspend was successful but the suspend after EPG update failed. Once rebooted it all works again. Perhaps the problem stems from the server being unreachable. Why would that happen?

    Good question, but it seems to be the cause of your problem. You could double check if your MySQL & TvService are both running, and automatically started by windows, but i assume those are good since it's a random error as you said. Maybe the 'force standby' option of PS++ does something to the TvService after resume. You could try to tick the option 'Reinitialize service on wakeup'. Maybe it helps.
     
    Last edited:

    MusicMan62

    Portal Pro
    November 2, 2010
    53
    6
    Frome, UK
    Home Country
    United Kingdom United Kingdom
    Thanks for your suggestions HomeY. I made a couple of changes and haven't had any problems all week. For anyone suffering similar sleep/resume issues I did the following:
    1. Enabled 'Reinitialise Controller' in PS++
    2. Uninstalled World Weather plugin and replaced it with BBC Weather (running with Infoservice)
    The World weather plugin was giving me connection errors and blank info which is why I removed it. I no longer get any errors of ANY kind... just the way MP should be!
     

    Users who are viewing this thread

    Top Bottom