Power Scheduler (1 Viewer)

Ausdigital

Portal Pro
September 17, 2008
122
5
Home Country
MediaPortal Version: 1.1 RC1
MediaPortal Skin: Blue3
Windows Version: XP SP3
CPU Type: AMD Athlon 2.8
HDD: SATA 1 TB
Memory: 2 GB DDR3
Motherboard: MSI
Video Card: NVIDIA GeForce 5500
Video Card Driver:
Sound Card: Onboard
Sound Card AC3: Onboard
Sound Card Driver:
1. TV Card: Winfast
1. TV Card Type: HD
1. TV Card Driver:
2. TV Card: AverMedia
2. TV Card Type: HD
2. TV Card Driver:
3. TV Card: AverMedia
3. TV Card Type: HD
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:


I have tried to setup the power scheduler as described in this documentation but have had absolutely no success in making it work.

Does the windows power option for hibernation need to be selected? I have tried it with and without it. Nothing happens.

Am looking for more configurations to set to make it turn off if nothing is happening and resume or wake from sleep to record as required.

I have set it up for 15 minutes of no activity on the home screen and nothing happens.
 

craigparris1

Portal Pro
May 20, 2008
189
15
Home Country
Mate, a little bit more info would probably be handy. Do you have a single-seat installation, or are you trying to configure the server or client in a multi-seat setup? Is your BIOS configured to allow S3 (standby) or S4 (hibernate) sleep? Can you manually put the PC into standby or hibernate?

Also, if you look through your Mediaportal logs (there are TV-Server and client log files) you will likely find Powerscheduler entries that will tell you what it's trying to do, and what may be stopping it from shutting down the PC. The Windows event logs can also have events in there relating to shutdown/standby requests. If you're not sure what to look for, you could attach your logs to the thread and someone should be able to review them for you.

Cheers,
Craig
 

Ausdigital

Portal Pro
September 17, 2008
122
5
Home Country
Thanks Craig. I recall disabling bios features for S3 and S4 last year when changing motherboards. Will investigate further settings.

My setup is one tv server and 5 clients. The sever is setup as a multi-seat master with a multitude of programs and applications so that I can use it as a pc when other computers are not available. For the most part, it is my master television.

I will check logs, perhaps changing the ethernet packet count will also help.

------------------------------------------

Bios settings ok for suspend.

this is the log report

2010-03-26 16:35:19.390625 [Info.][MPMain(1)]: Unable to start plugin:MediaPortal.Plugins.Process.PowerSchedulerClientPlugin exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:31457

What exactly does this mean? is the port blocked preventing the power scheduler from accessing the local host? The windows firewall has been disabled on my tv server.
 

craigparris1

Portal Pro
May 20, 2008
189
15
Home Country
Not sure on that one .... I would have thought that if it's just a client machine, and the TV-Server is running on a different machine, then the PowerScheduler client should be trying to talk to the TV-Server machine, not the localhost ....? I only have a single-seat setup, so I can't really help you with a multi-seat setup. From memory, there's no particular spot in the PS Client config to tell it the server name/IP, so my guess would have been that it picked up from the general MP config.

Sorry, mate, not much help - perhaps someone with a working PS setup in a multi-seat environment will be able to help out. You could also try a search of the forums ... I'm sure someone would have asked the same sort of questions in the past.

Cheers,
Craig
 

ArnoldGoat

MP Donator
  • Premium Supporter
  • May 27, 2007
    110
    21
    78
    Lyttelton
    Home Country
    New Zealand New Zealand
    Have just upgraded to 1.1 RC5 and now have the same problem with standby. (It was OK with RC4). I have server & client on separate machines. In the client log (see below), it says 'detected a multiseat setup - using local methods' then 3 lines later
    it says 'shutdown locally set to false'. I looked on the server with TCPview, and it's not listening on port 31457.

    2010-07-07 20:00:12.020867 [Debug][MPMain(1)]: MPControlPlugin: Started
    2010-07-07 20:00:12.020867 [Info.][MPMain(1)]: Starting PowerScheduler client plugin...
    2010-07-07 20:00:12.036492 [Debug][MPMain(1)]: PSClientPlugin: IsLocal(): checking if KOKAKO is local...
    2010-07-07 20:00:12.036492 [Debug][MPMain(1)]: PSClientPlugin: Checking against localhost
    2010-07-07 20:00:12.036492 [Debug][MPMain(1)]: PSClientPlugin: Checking against 127.0.0.1
    2010-07-07 20:00:12.036492 [Debug][MPMain(1)]: PSClientPlugin: Checking against korora
    2010-07-07 20:00:12.052117 [Debug][MPMain(1)]: PSClientPlugin: Checking against 192.168.2.32
    2010-07-07 20:00:12.052117 [Info.][MPMain(1)]: PowerScheduler: detected a multiseat setup - using local methods to suspend/hibernate system
    2010-07-07 20:00:12.052117 [Info.][MPMain(1)]: PowerScheduler: set hostname to KOKAKO
    2010-07-07 20:00:12.052117 [Debug][MPMain(1)]: PSClientPlugin: Only allow standby when in home screen: True
    2010-07-07 20:00:12.052117 [Debug][MPMain(1)]: PSClientPlugin: shutdown enabled locally set to: False
    2010-07-07 20:00:12.052117 [Debug][MPMain(1)]: PSClientPlugin: idle timeout locally set to: 5 minutes
    2010-07-07 20:00:12.052117 [Debug][MPMain(1)]: PSClientPlugin: pre-wakeup time set to: 60 seconds
    2010-07-07 20:00:12.067741 [Debug][MPMain(1)]: PSClientPlugin: pre-shutdown time set to: 120 seconds
    2010-07-07 20:00:12.067741 [Debug][MPMain(1)]: PSClientPlugin: Check interval is set to 25 seconds
    2010-07-07 20:00:12.067741 [Debug][MPMain(1)]: PSClientPlugin: Shutdown mode set to Suspend
    2010-07-07 20:00:12.067741 [Info.][MPMain(1)]: GUIWindowManager: Could not find window 6666
    2010-07-07 20:00:12.067741 [Info.][MPMain(1)]: PSClientPlugin.UnattendedWindow.Init
    2010-07-07 20:00:12.083366 [Info.][MPMain(1)]: PowerScheduler client plugin started
    2010-07-07 20:00:12.083366 [Debug][MPMain(1)]: WindowsController: Setting ExitWindows to MediaPortal.Plugins.Process.PowerScheduler.Void SafeExitWindows(MediaPortal.Util.RestartOptions, Boolean, AfterExitWindowsHandler)
    2010-07-07 20:00:12.098991 [Debug][MPMain(1)]: d3dapp: ShowLastActiveModule active : False
    2010-07-07 20:00:12.114616 [Info.][MPMain(1)]: opening video database
    2010-07-07 20:00:12.130241 [Info.][MPMain(1)]: video database opened
    2010-07-07 20:00:12.161490 [Info.][FilterChecker(5)]: FilterChecker: Found TsReader.ax from 19/06/2010 located at C:\Program Files\Team MediaPortal\MediaPortal\TsReader.ax
    2010-07-07 20:00:13.661471 [Info.][FilterChecker(5)]: FilterChecker: Found quartz.dll from 5/02/2010 located at C:\WINDOWS\system32\quartz.dll
    2010-07-07 20:00:13.677096 [Info.][FilterChecker(5)]: FilterChecker: Version of installed quartz.dll: 6.5.2600.5933
    2010-07-07 20:00:37.083046 [Info.][(8)]: PowerScheduler: Keep server alive
    2010-07-07 20:00:40.942372 [Debug][(8)]: PSClientPlugin: Failed to connect to server:
    2010-07-07 20:00:40.942372 [Debug][(8)]: PSClientPlugin: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.2.9:31457
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---

    Server stack trace:
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)
    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at TvEngine.PowerScheduler.Interfaces.IPowerController.UserActivityDetected(DateTime when)
    at MediaPortal.Plugins.Process.PowerScheduler.OnTimerElapsed(Object sender, ElapsedEventArgs e)
    2010-07-07 20:01:05.942052 [Info.][(15)]: PowerScheduler: Keep server alive
    2010-07-07 20:01:07.895152 [Debug][(15)]: PSClientPlugin: Failed to connect to server:
    2010-07-07 20:01:07.895152 [Debug][(15)]: PSClientPlugin: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.2.9:31457
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---

    ****OK found it! You need to enable powerscheduler in the server, even if you don't want it to do anything. You can set it so the server stays on.
     

    Users who are viewing this thread

    Top Bottom