[fixed] Singleseat not going to Standby (1 Viewer)

OnkelChris

Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    Hey guys,

    I have a strange behaviour in some singleseat HTPCs. The specs are:


    Intel Atom 330
    NVIDIA ION
    2GB RAM
    Windows 7 (all updates)
    MP + TVServer 28018
    DVB-C / DVB-S
    PowerScheduler in Server and MP configured


    Configured to go to standby when Powerbutton is pressed. Sometimes this works all fine. But sometimes screen gets black and HTPC stays on. Pressing a remotebutton brings back the display, but system sound is muted. Till now, I never got some details, hints or errors in log...

    SOLVED:
    This one is solved! If someone is interested I will create a patch...


    TVServer error.log:
    Code:
    [2011-07-08 13:37:20,702] [466983 ] [PowerEventThread] [DEBUG] - TV service PowerEventThread 275
    [2011-07-08 13:37:21,101] [467382 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler: lastUserTime: 13:34:02.5710 , False
    [2011-07-08 13:37:21,105] [467386 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:GenericStandbyHandler DisAllowShutdown:False
    [2011-07-08 13:37:21,106] [467387 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ActiveStreamsHandler DisAllowShutdown:False
    [2011-07-08 13:37:21,115] [467396 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ControllerActiveHandler DisAllowShutdown:False
    [2011-07-08 13:37:21,123] [467404 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ProcessActiveHandler: DisAllowShutdown:False
    [2011-07-08 13:37:21,126] [467407 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:NetworkMonitorHandler DisAllowShutdown:False
    [2011-07-08 13:37:21,129] [467410 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ActiveSharesHandler DisAllowShutdown:False
    [2011-07-08 13:37:21,131] [467412 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.NextWakeupTime: inspecting IWakeupHandler:GenericWakeupHandler time:12/31/9999 23:59:59
    [2011-07-08 13:37:21,133] [467414 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.NextWakeupTime: inspecting IWakeupHandler:ScheduledRecordingsHandler time:12/31/9999 23:59:59
    [2011-07-08 13:37:21,136] [467417 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.NextWakeupTime: inspecting IWakeupHandler:XmlTvImportWakeupHandler time:12/31/9999 23:59:59
    [2011-07-08 13:37:21,138] [467419 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler: lastUserTime: 13:34:02.5710 , False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler: lastUserTime: 13:34:02.5710 , False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:GenericStandbyHandler DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ActiveStreamsHandler DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ControllerActiveHandler DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ProcessActiveHandler: DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:NetworkMonitorHandler DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.DisAllowShutdown: inspecting handler:ActiveSharesHandler DisAllowShutdown:False
    [2011-07-08 13:37:22,143] [468424 ] [PowerScheduler poll thread] [DEBUG] - PowerScheduler.NextWakeupTime: inspecting IWakeupHandler:GenericWakeupHandler time:12/31/9999 23:59:59
    [2011-07-08 13:37:22,845] [469126 ] [PowerScheduler poll thread] [ERROR] - Exception   :Error: StatementErrorUnclassified
    Gentle.Common.GentleException: select id_Schedule, idChannel, idParentSchedule, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard, series from Schedule; ---> System.Data.SqlClient.SqlException: Fehler auf Übertragungsebene beim Senden der Anforderung an den Server. (provider: Shared Memory-Provider, error: 0 - Kein Prozess ist am anderen Ende der Pipe.)
       bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       bei System.Data.SqlClient.TdsParserStateObject.WriteSni()
       bei System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
       bei System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
       bei System.Data.SqlClient.TdsParser.TdsExecuteSQLBatch(String text, Int32 timeout, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       bei System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       bei System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       bei System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
       bei Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
       bei Gentle.Framework.PersistenceBroker.RetrieveList[T](Key key, IList`1 result, IDbConnection conn, IDbTransaction tr)
       bei Gentle.Framework.PersistenceBroker.RetrieveList[T](Key key, IList`1 result)
       bei Gentle.Framework.Broker.RetrieveList[T](Key key, IList`1 result)
       bei Gentle.Framework.Broker.RetrieveList[T]()
       bei TvDatabase.Schedule.ListAll()
       bei TvEngine.PowerScheduler.Handlers.ScheduledRecordingsHandler.GetNextWakeupTime(DateTime earliestWakeupTime)
       bei TvEngine.PowerScheduler.PowerScheduler.NextWakeupTime(Boolean refresh)
       bei TvEngine.PowerScheduler.PowerScheduler.DisAllowShutdown(Boolean refresh)
       bei TvEngine.PowerScheduler.PowerScheduler.CheckForStandby(Boolean refresh)
       bei TvEngine.PowerScheduler.PowerScheduler.PollThread()System.Data.SqlClient.SqlException: Fehler auf Übertragungsebene beim Senden der Anforderung an den Server. (provider: Shared Memory-Provider, error: 0 - Kein Prozess ist am anderen Ende der Pipe.)
       bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       bei System.Data.SqlClient.TdsParserStateObject.WriteSni()
       bei System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
       bei System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
       bei System.Data.SqlClient.TdsParser.TdsExecuteSQLBatch(String text, Int32 timeout, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       bei System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       bei System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       bei System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       bei System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
       bei Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)


    As this is not happening on a 20channel DVB-T, I would say, that there is something with the SQL "performance"... Cause this is the first hint for this problem, I'm currently starting my Visual Studio and will then look in this topic...

    More infos?

    will report back later this day
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Singleseat not going to Standby

    ok... I don't get this one... :mad:

    Found the sections for shutting down everything and sending windows to standby... but i don't get the right order of things... i would like to "delay" the message for standby and log all the things happening on standby...

    could someone please point me to the right direction (especially the section for the sql statement execution for nextwakeuptime)?!
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Singleseat not going to Standby

    i got something... just hace to test if this is right...

    i inserted a "try{}catch{}" in the TVServer-PowerScheduler "NextWakeupTime(bool refresh)"... will report back, if i got it right...
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Singleseat not going to Standby

    damn... this drives me crazy... :mad:

    problem occurs only when tv is running... DVB-C tuner is a "Terratec Cinergy H5" and DVB-S is a "TeVii S660" (not in one MP htpc, 2 seperate htpc)... tuners are configured to "stop" not to "pause" on channel switch. running as "generic"...

    tried disabling epg -> same
    nothing in logs... just that standby is requested -> display blanks -> seems as it forgets to do sth -> nothing in logs -> pressing a button on remote brings display back / pressing no button on remote let the system running endlessly in a "between sleep and on"-state

    i am wondering why i am the only one with this problem?!

    this is what i made till now: :( - :confused: - :mad: - :mad: - :mad:
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    This sounds a lot like the windows 7 away mode. Away mode is the same as turned on, but muted sound & video. Powerscheduler++ uses it when a recording is on and you request it to go to sleep.

    You can set Away mode in the windows power settings (somewhere).

    Additionally I remember some people having the "Muted sound when awaking from Away mode" problem.
     

    mtjoernelund

    Portal Pro
    April 28, 2008
    102
    3
    Home Country
    Denmark Denmark
    Have the same issue, though with powerscheduler++

    Seriously annoying when rushing out the door in the morning not being able to shut down. Strange thing is, using Couchpotato on my iPhone to enter standby I do not have the problem. Have not been able to generate useful logs.
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Singleseat not going to Standby

    ok the first error i posted... damn... it was one, but not the one i was looking for...

    i found a german thread about this (thank god, i am not the only one...)

    i now found some code in powerscheduler and powerscheduler client, which is causing this (for me) annoying behaviour! i hope i can get into this... it is this really annyoing away mode!?

    now i just have to get to disable this in MP... will report back...
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Singleseat not going to Standby

    did it... :cool:

    this is damn crazy... have a testing version for me now... seems to work... for now it's just hacking... but i will provide a working version as soon as possible!

    :D to all responses
     

    Users who are viewing this thread

    Top Bottom