MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » General Forums » Newcomers Forum


Newcomers Forum The newcomers forum is for members who may be: new to forums; intimidated by our size; or just learning about some of the many topics being discussed on the MediaPortal Forum.

Reply
 
Thread Tools Display Modes
Old 2008-02-18, 23:29   #21 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 6,616
Thanks: 129
Thanked 233 Times in 207 Posts

Country:

My System

Default

Quote:
Sure that playback was not running? (i.e. the user input log was triggered by mouse/keyboard moves)
Yep, closed MP at 1935, checked in taskmanager not running, also then left untouched for 15 minutes after stay awake test and standby was achieved ok, so it looks like powerscheduler is fine with XP.

I am running Vista as administrator account only, no user and UAC disabled.

Possibly looking in the wrong place for keyboard\mouse being active.

Be aware, i am using a mce remote keyboard (ehome driver) and a Logitech wireless mouse, althought this should not make a difference, if you need me to use a standard keyboard will do.

Cheers
Paranoid Delusion is online now   Reply With Quote
Old 2008-02-19, 08:52   #22 (permalink)
Retired Team Member
 
Join Date: Jan 2007
Posts: 72
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

Yes, please, use a standard keyboard to check if input is recognized on that.

Alas (or thanks good ), I have no Vista, so I can't debug the code on Vista...

Regards

dero
dero is offline   Reply With Quote
Old 2008-02-19, 21:18   #23 (permalink)
Portal Member
 
Join Date: Jun 2006
Posts: 20
Thanks: 8
Thanked 1 Time in 1 Post

My System

Default

Quote:
Originally Posted by dero View Post
@ Shoey Peachew:

Please restart TV3, MP, play around with your mouse for 5 minutes and then post the logs.

Please post TV3 and MP logs, and post your PS-settings for both TV3 and MP.


I have Windows power settings set to diasble.

- TV Server Power scheduler: Set to suspend . Shutdown server after 20mins is checked as is wakeup server. Enable forced extensive logging is checked. EPG set to grab data every Sun and Thur at 6:02am. Processes preventing standby are SetupTv, Configuration.

- PowerSchedule client plugin: Only allow standy when in home window. Enable extensive logging checked. Shutdown mode suspend. Shutdown after 20mins. Pre wakeup = 30secs. Pre-no-shutdown time = 120secs.

After setting everything I rebooted and ran the Test tool and played with my mouse for 5mins in MP and posted the logs.
Attached Files
File Type: zip MediaPortalLogs.zip (66.7 KB, 4 views)

Last edited by Shoey Peachew; 2008-02-19 at 21:20.
Shoey Peachew is offline   Reply With Quote
Old 2008-02-21, 15:24   #24 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 6,616
Thanks: 129
Thanked 233 Times in 207 Posts

Country:

My System

Default

Hi dero

USB keyboard makes no difference, still no user input detected.
Paranoid Delusion is online now   Reply With Quote
Old 2008-02-21, 15:31   #25 (permalink)
Retired Team Member
 
Join Date: Jan 2007
Posts: 72
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

As I said, we need someone with Vista to step thru the code...

Regards

dero
dero is offline   Reply With Quote
Old 2008-02-21, 22:31   #26 (permalink)
Portal Member
 
wortelsoft's Avatar
 
Join Date: May 2005
Location: Rotterdam, The Netherlands
Age: 32
Posts: 374
Thanks: 1
Thanked 1 Time in 1 Post


Default

Where can I find the code snipped in the mp code.
Just installed c# and downloaded svn code but I'm not able to find the code.
wortelsoft is offline   Reply With Quote
Old 2008-02-22, 08:55   #27 (permalink)
Retired Team Member
 
Join Date: Jan 2007
Posts: 72
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

@ wortel:

It's part of the PowerSchedulerPlugin in TV3-Engine.

But, you can just try the little snipplet I posted above, which I extracted from the code.

Regards

dero
dero is offline   Reply With Quote
Old 2008-02-23, 11:24   #28 (permalink)
Portal Member
 
wortelsoft's Avatar
 
Join Date: May 2005
Location: Rotterdam, The Netherlands
Age: 32
Posts: 374
Thanks: 1
Thanked 1 Time in 1 Post


Default

As that's why dont' have the TV3-engine.

I couldn't get the code snipped to run. I tried to add the code to a forms application and the to run it trough a button click, but got all kind of errors. I also used express editon 2008 maybe should use 2005 edition.
wortelsoft is offline   Reply With Quote
Old 2008-02-26, 13:34   #29 (permalink)
Portal Member
 
Join Date: Nov 2007
Location: Hamburg
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts

Country:

My System

Default

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
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
..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

Last edited by justinteract; 2008-02-27 at 11:02.
justinteract is offline   Reply With Quote
Old 2008-02-29, 13:53   #30 (permalink)
Retired Team Member
 
Join Date: Jan 2007
Posts: 72
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

Quote:
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.
TV3 is running as a service. It could be that Vista isolates input from services?? Meaning that GetLastInputTime does not work reliable from within a service.

Can you create a service that logs the result of the function and then play around?

Quote:
Originally Posted by justinteract
BTW how do I set the TVServer log level.
Somewhere in the TVServerSetup.

Quote:
Originally Posted by justinteract
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,
Exactly. It informs the TVS of MP activity.


Quote:
Originally Posted by justinteract
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 ?
For multiseat.

Quote:
Originally Posted by justinteract
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
<snip>
Something wants to prevent standby. On XP, you're system would not be allowed to go to standby. However, Vista does not allow TVS to prevent standby when user is doing it manually.

TVS has the builit-in logic to wakeup the PC within one minute in such a case.


Quote:
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
..where is this wakup event coming from... its not a scheduled recording.
I guess the question is what are the "various" makeup events ?
PowerSchedulerClientPlugin is responsible for gatherng events from MP. I think we had a bug in the MusicDBReorganizer making kind of what you tell me happen. Since MusicDBReorg is scheduled to work every time, but didn't for some reason, it's always due, preventing ClientPlugin to allow standby.

Dero
dero is offline   Reply With Quote
Reply

Bookmarks

Tags
client, inactivity, mouse, powerscheduler

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor shuts down after 10 minutes of inactivity benrjunk MediaPortal 1 Talk 59 2008-10-17 07:51
Powerscheduler with Server/Client system frenchi38 General Talk 24 2008-03-10 23:21
PowerScheduler Client Plugin eating 20% of CPU xurr pre 1.0 RC1 2 2007-05-02 18:06
PowerScheduler plugin and client. Juppe General Talk 5 2007-03-15 21:24
Mouse wheel support (Gyro Mouse) htpcman Improvement Suggestions 1 2004-09-25 10:30


All times are GMT +1. The time now is 00:36.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden