PowerScheduler++ test versions (3 Viewers)

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: Re: [New Plugin] PowerScheduler++ (New Version 1.1.0.2)

Jay_UK wrote:
Is there any specific reason you kill off MePo (as opposed to just blanking the screen/muting the sound)? Would it be possible to keep MePo running (while in "away mode") or get MePo to launch when returning from "away mode"?
Well, I do not kill the MP client, I only stop the player. Could you please send me the client logs (debug level/extensive logging) to check what is happening with your system?

Michael

helge
Ich versuch's, wenn ich etwas Zeit finde...;-)

matejdro
There are two ways to suspend a MP system: either the system suspends alone when it is idle(windows power settings) or the system is forced to suspend by PowerScheduler, that decides it is idle. This is the meaning of the checkbox on the Suspend/Wakeup tab; the time you can set here determines the idle timeout for Powerscheduler.

Michael

Wbunaarf
Your client log looks like you didn't activate "extensive logging" for PSClientPlugin. Could you please send new logs (no complete logs needed - mediaportal.log and tv.log are enough) and make sure that they cover the same time span (when you try to suspend the system).

Michael
 

Wbunaarf

Portal Pro
December 9, 2005
534
103
Sweden
Home Country
Sweden Sweden
Re: AW: Re: [New Plugin] PowerScheduler++ (New Version 1.1.0.2)

@Wbunaarf
Your client log looks like you didn't activate "extensive logging" for PSClientPlugin. Could you please send new logs (no complete logs needed - mediaportal.log and tv.log are enough) and make sure that they cover the same time span (when you try to suspend the system).

OK, here are mediaportal.log and tv.log using ps++. I cleaned out the logs, restarted MP and waited 40 minutes. This time I've triple checked that extensive logging is active.

//Johannes
 

Attachments

  • ps++conf.png
    ps++conf.png
    423.3 KB

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: [New Plugin] PowerScheduler++ (New Version 1.1.0.2)

:DThank you for your new logs. It is obvious now that the client plugin thinks your MP client is not on home window and therefore prevents standby. I have to reproduce this at home.

Michael

Update:
I could reproduce it and fixed the bug. New version (1.1.1.5) is on server for download.

Michael
 

Haraldpeter

Portal Pro
March 16, 2010
352
10
Home Country
Germany Germany
Re: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

Hi,
Since I installed this Plugin I got the message under Error logs:


2010-10-16 09:04:16.168400 [Powerscheduler Timer(15)]: Powerscheduler: Error in OnTimerElapsed(): The database backend (provider MySQL) could not be reached.
Check the connection string: Server=Haraldpeter-PC;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;

What does this mean ?

best regards
Harald
 

matejdro

Portal Pro
May 28, 2010
361
16
Home Country
Slovenia Slovenia
Re: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

There is a problem with this plugin: When playing radio from WebStream card, it will send computer to sleep regardless that radio is still playing.

@matejdro
There are two ways to suspend a MP system: either the system suspends alone when it is idle(windows power settings) or the system is forced to suspend by PowerScheduler, that decides it is idle. This is the meaning of the checkbox on the Suspend/Wakeup tab; the time you can set here determines the idle timeout for Powerscheduler.

Yes, but then where should i set timeout? On windows or PowerScheduler++?
 

Wbunaarf

Portal Pro
December 9, 2005
534
103
Sweden
Home Country
Sweden Sweden
Re: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

With 1.1.1.5 suspend when idle on home screen is now working and I have instead tried the away mode. It's very nice to see that pressing the power button while the system is recording doesn't shut the system down! Unfortunately the system won't suspend even when the recording is done. The attached logs begin when I start mp. I then start recording a show, wait a while, press the power button, notice that video is turned of and then wait. When nothing had happened for quite a while I pressed a key to resume video, and as soon MPs gui came up the machine went to sleep.

After having resumed the machine I went upstairs to my client, started and entered epg where I left it idle. After a few minutes I heard the server shut down ignoring the active client. Also, on the client the settings for pre-wakeup, pre-no-shutdown and check interval aren't shadowed. Do you need logs from the client as well?

Edit: Waking up today i found the server on. It seems as if woken up by WOL from a client ps++ somehow ignores when the client is shut down and sleep is again allowed.

//Johannes
 

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
AW: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

Haraldpeter:
It seems that your tvservice cannot connct to the database; but I can't imagine why. I would recommend you doing a reboot. If your problem still exists please send me logs (see instructions below).

matejdro:
There is a problem with this plugin: When playing radio from WebStream card, it will send computer to sleep regardless that radio is still playing.
I need logs (see below) to have an idea what is happening on your system.
Yes, but then where should i set timeout? On windows or PowerScheduler++?
Well, I see I have to write a user manual for PS++. For now only some short explanations: If you want to use your PC not only for MP but also for other tasks, then you should uncheck the checkbox on the Suspend/Wakeup tab in PS++ server config and leave windows the decision when to suspend. In this case you have to set your desired idle timeout in power options in windows or suspend your system manually.
If you have a dedicated HTPC used only for MP then you should check the checkbox. This will enable PS++ to suspend the system actively whenever it thinks the system is idle which is more stable in some cases (i.e. bad tv card drivers preventing suspend even after tv activity has finished). In this case you have to set the idle timeout time in PS++ server config.

Wbunaarf:
Unfortunately the system won't suspend even when the recording is done. The attached logs begin when I start mp.
In the log I can see that PS++ client is not suspending because it thinks you are not in home window. Well, I thought that was fixed...:confused:
After a few minutes I heard the server shut down ignoring the active client.
To be able to tell you more I would need both the client and the server logs.

Logfiles for debugging:
I need both the server logfile (tv.log) and the client log file (mediaportal.log) covering the same time span. Before make sure that MP client is configured for "Debug" log level and that "Extensive logging" is enabled in the PowerScheduler++ client and server configuration ("Advanced" tab). Then you should stop MP client and MP tvservice, delete tv.log and start tvservice and MP client again to reproduce the problem. Then take both log files and upload them or send them to me.


Michael
 

matejdro

Portal Pro
May 28, 2010
361
16
Home Country
Slovenia Slovenia
Re: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

Ah, thanks for explanation!

I found radio problem is not connected with this plugin. For some reason radio randomly stops playing and when it's not playing, it shuts it down like it supposed to.
 

mameo

MP Donator
  • Premium Supporter
  • August 8, 2006
    74
    0
    Perugia
    Home Country
    Italy Italy
    Re: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

    Hi folk!
    Does this plugin allow to complete power off (not standby or hibernation) the computer? I'm searching a way to complete shutdown pc using powerscheduler plugin or something.. thx
     

    Wbunaarf

    Portal Pro
    December 9, 2005
    534
    103
    Sweden
    Home Country
    Sweden Sweden
    Re: AW: [New Plugin] PowerScheduler++ (New Version 1.1.1.5)

    To be able to tell you more I would need both the client and the server logs.

    Here are four sets of logs.

    1. Logs are cleaned, the server is restarted and suspends after 5 minutes. The client is then started and wakes the server up, I enter EPG on the client but don't do anything else.

    Result: The server suspends.
    Expected result: The server should stay alive since the client is active


    2. Logs are cleaned, the server is restarted and suspends after five minutes. The client is started and wakes the server up, I chose a channel and watch for more than 5 minutes before I suspend the client.

    Result: The server isn't suspended
    Expected result: The server should be suspended since there's no client activity.


    3. Logs are cleaned and the server is restarted. I enter EPG and start recording a show. I wait for a while and then press the power button.

    Result: The server seems to go to away mode, but after the show is over the machines just sits there.
    Expected result: After the recording is done the machine should suspend.


    4. As a side effect of my testing I noticed that (at least) the 'extended logging' option is changed to not set every time I enter the plugin configuration. It is however saved if I enter config, set it and then exit and save. Also, on the client, the pre- and check-variables are available.


    //Johannes
     

    Users who are viewing this thread

    Top Bottom