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
General Forums
Newcomers Forum
PowerScheduler client and mouse inactivity
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="justinteract" data-source="post: 238927" data-attributes="member: 59831"><p>Hi dero,</p><p></p><p>I tested your snipped code as a simple consol app under Visual 2008 under Vista 32bit Ultimate and it works fine. </p><p>The console app calls your GetLastInputTime() method and prints out the DateTime every second.</p><p>I have tested it with an USB cable mouse, a logitech wireless mouse and a logitech wireless keyboard. </p><p>All variants work fine and the time prited out is always correct.</p><p></p><p>This code is not the problem. </p><p></p><p>[EDIT]</p><p>In the logs of my TVServer installation I never saw the mentioned line of "User input detected at ". </p><p>How often is that suppose to be written to the log and to which file, to "tv.log" or is there a separate log file where the extensive logging goes ? ... ok I saw in the source code that its using Log.Debug... </p><p>[/EDIT]</p><p>meanwhile I got the extensive logging... dont know why I didnt see it in the first place. </p><p>Now I see the "User input detected.." lines every 25 seconds.. BUT only if the PS ClientPlugin is enabled and the media portal client is running. Looking at a "future" multiseat scenario this makes sense, that the human interaction with the client counts for preventing the server machine going to sleep. However in a single seat setup if MP client is not running "the machine" which is only one, goes to sleep after that time independend of the user interaction. </p><p></p><p></p><p>BTW how do I set the TVServer log level. </p><p></p><p></p><p>To me its not clear yet how this PowerScheduler is working. It is my understanding that the it is the server that wakes up and goes to suspend, right. This is done via the PS plugin in the TVServer that sets the next timer event when the server goes to standby. Why do I need a client plugin. I assume only to let the server PS plugin know that MP in on the home page and nobody is actively using it, but if that is the case what are the "duplicated" settings "Shutdown mode", "pre-wakeup time" and "pre no shutdown time" in the client plugin for ?</p><p></p><p>Also... As soon as I check "Wakeup server for various events" my machine somtimes wakes up every minute, meaning when you put it to sleep it wakes up one minute later. In the log it says </p><p></p><p>[CODE]</p><p>2008-02-26 19:13:53.870000 [7]: OnPowerEvent: PowerStatus: Suspend</p><p>2008-02-26 19:13:53.871000 [7]: PowerScheduler: System is going to standby</p><p>2008-02-26 19:13:53.872000 [7]: Controller: epg stop</p><p>2008-02-26 19:13:53.873000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59</p><p>2008-02-26 19:13:54.774000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:ScheduledRecordingsHandler time:26.02.2008 22:29:00</p><p>2008-02-26 19:13:55.888000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:27.02.2008 00:00:00</p><p>2008-02-26 19:13:55.895000 [7]: PowerScheduler.DisAllowShutdown: handler PowerSchedulerClientPlugin wants to prevent standby</p><p>2008-02-26 19:13:55.896000 [7]: PowerScheduler: Set wakeup timer to wakeup system in 1 minutes</p><p>[/CODE]</p><p></p><p>For whatever reason the PS plugin thinks the server needs to be woken up again in minute. </p><p>This does not happen all the time. May be only if there is no scheduled recording in the near future .. i have to further investigate on this</p><p></p><p></p><p>[EDIT]</p><p>from looking at the code, I can see that if one handler prevents the shutdown (DisAllowShutdown returns true), then it does exactly this... it goes to sleep for one minute and then wakes up again.</p><p>My question is, why does the ClientPlugin would disallow the shutdown</p><p>Also I now see </p><p>[CODE]</p><p>PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:28.02.2008 00:00:00</p><p>[/CODE]</p><p>..where is this wakup event coming from... its not a scheduled recording.</p><p>I guess the question is what are the "various" makeup events ?</p><p>[/EDIT]</p><p></p><p></p><p>Cheers</p><p>justinteractive</p></blockquote><p></p>
[QUOTE="justinteract, post: 238927, member: 59831"] Hi dero, I tested your snipped code as a simple consol app under Visual 2008 under Vista 32bit Ultimate and it works fine. The console app calls your GetLastInputTime() method and prints out the DateTime every second. I have tested it with an USB cable mouse, a logitech wireless mouse and a logitech wireless keyboard. All variants work fine and the time prited out is always correct. This code is not the problem. [EDIT] In the logs of my TVServer installation I never saw the mentioned line of "User input detected at ". How often is that suppose to be written to the log and to which file, to "tv.log" or is there a separate log file where the extensive logging goes ? ... ok I saw in the source code that its using Log.Debug... [/EDIT] meanwhile I got the extensive logging... dont know why I didnt see it in the first place. Now I see the "User input detected.." lines every 25 seconds.. BUT only if the PS ClientPlugin is enabled and the media portal client is running. Looking at a "future" multiseat scenario this makes sense, that the human interaction with the client counts for preventing the server machine going to sleep. However in a single seat setup if MP client is not running "the machine" which is only one, goes to sleep after that time independend of the user interaction. BTW how do I set the TVServer log level. To me its not clear yet how this PowerScheduler is working. It is my understanding that the it is the server that wakes up and goes to suspend, right. This is done via the PS plugin in the TVServer that sets the next timer event when the server goes to standby. Why do I need a client plugin. I assume only to let the server PS plugin know that MP in on the home page and nobody is actively using it, but if that is the case what are the "duplicated" settings "Shutdown mode", "pre-wakeup time" and "pre no shutdown time" in the client plugin for ? Also... As soon as I check "Wakeup server for various events" my machine somtimes wakes up every minute, meaning when you put it to sleep it wakes up one minute later. In the log it says [CODE] 2008-02-26 19:13:53.870000 [7]: OnPowerEvent: PowerStatus: Suspend 2008-02-26 19:13:53.871000 [7]: PowerScheduler: System is going to standby 2008-02-26 19:13:53.872000 [7]: Controller: epg stop 2008-02-26 19:13:53.873000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:GenericWakeupHandler time:31.12.9999 23:59:59 2008-02-26 19:13:54.774000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:ScheduledRecordingsHandler time:26.02.2008 22:29:00 2008-02-26 19:13:55.888000 [7]: PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:27.02.2008 00:00:00 2008-02-26 19:13:55.895000 [7]: PowerScheduler.DisAllowShutdown: handler PowerSchedulerClientPlugin wants to prevent standby 2008-02-26 19:13:55.896000 [7]: PowerScheduler: Set wakeup timer to wakeup system in 1 minutes [/CODE] For whatever reason the PS plugin thinks the server needs to be woken up again in minute. This does not happen all the time. May be only if there is no scheduled recording in the near future .. i have to further investigate on this [EDIT] from looking at the code, I can see that if one handler prevents the shutdown (DisAllowShutdown returns true), then it does exactly this... it goes to sleep for one minute and then wakes up again. My question is, why does the ClientPlugin would disallow the shutdown Also I now see [CODE] PowerScheduler.NextWakeupTime: inspecting handler:PowerSchedulerClientPlugin time:28.02.2008 00:00:00 [/CODE] ..where is this wakup event coming from... its not a scheduled recording. I guess the question is what are the "various" makeup events ? [/EDIT] Cheers justinteractive[COLOR="black"][/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
Newcomers Forum
PowerScheduler client and mouse inactivity
Contact us
RSS
Top
Bottom