PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4 (3 Viewers)

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
The PC is set to sleep after 15mins but I went out at 15:00 and came back around 15:35 and it was still on.

The only thing PS++ server config shows me is srvnet but as you can see below, I've set an override for that, so could you take a look at the logs for me please? I don't even have the RPi connected at the moment, so there were no other devices accessing media on the PC.

powercfg -requests
DISPLAY:
None.

SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.

AWAYMODE:
None.


powercfg -requestsoverride
[SERVICE]

[PROCESS]

[DRIVER]
\FileSystem\srvnet SYSTEM
 

CGT

Portal Pro
January 8, 2012
240
6
@doveman: I had trouble with standby and srvnet as well. Override didnt help. The only way that worked for me was to let PS++ handle the standby...
 
Last edited:

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
@doveman: I had trouble with standby and srvnet as well. Override didnt help. The only way that worked for me was to let PS++ handle the standby...

Thanks but that really isn't suitable for me as Mediaportal is only a small part (actually will only be used for recording TV at the moment) of what this PC is used for.

I've had no problem overriding srvnet on my other PCs anyway.
 

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
Thanks for the links CGT.

I've already got srvnet ignored/overridden by powercfg, so that shouldn't be an issue and the Media Sharing service is disabled.

Anyway, I rebooted and it's been going to standby OK now, so maybe it was just a glitch and hopefully it will behave itself now. The other day, I ran into an issue I've had before where my Power Options get swapped (turn off monitor 0mins, standby 15mins becomes turn off monitor 15mins, standby 0mins and request password on wake goes from disabled to enabled) which is really annoying and I'm not sure how I managed to fix it before but it's been OK for a couple of days now so hopefully that was just a one-off glitch as well :rolleyes:
 

revs

MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    Home Country
    Wales Wales
    HI :)

    I've just updated from 1.2 to 1.4 and reinstalled Powerscheduler++

    Is there a way to make the TVServer stay awake as long as a client machine is also awake? I'm sure I had this configured in 1.2, but cant remember how.
    I have my music on a different server to the TVServer, and when its playing I end up getting the annoying 'Connection to TV Server lost'. So id like to just keep the TV Server awake as long as the client is on.

    Any ideas?

    Thanks!
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    I'm having trouble getting the right settings for my Nova-T 500.

    After waking from standby, the tuner isn't available until after I stop and restart TVService. I've set the Delay for TV Card Detection to 20s and tried the PS++ "Reinitalise TV controller on wakeup" option but that didn't work, so now I'm trying "Run Command on System Power State change"instead, with it set to run the following batch file. This isn't doing anything though, neither shutting down MP before standby or restarting TVService after wake.

    Code:
    if "%1" == "suspend" goto OnSuspend
    if "%1" == "wakeup" goto OnWakeUp
    goto Done
     
    :OnSuspend
    taskkill /IM “MediaPortal.exe” /F
    goto Done
     
    :OnWakeUp
    taskkill /IM “TVService.exe” /F
    net start TVService
     
    goto Done
     
    :Done

    I got this card working previously, presumably with this batch but it's been a while since I used it so I'm not sure exactly what I had to do.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I have started getting some issues with standby recently with the machine simply not waking, sleeping or being dead on resume. This has been working for a while without issue so I guess this might be hardware related.

    This morning when I turned on the PC it was working but MP was unresponsive and needed to be killed.

    I have setup PS++ to grab EPG (well run an xmltv grabber via a script) at 5am each day.

    Today it woke but did not work. Logs show it woke up OK
    Code:
    [2013-08-08 04:59:00,493] [Log	] [PowerEventThread] [DEBUG] - TV service PowerEventThread 30
    [2013-08-08 04:59:01,047] [Log	] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: ResumeAutomatic
    [2013-08-08 04:59:01,047] [Log	] [PowerEventThread] [DEBUG] - OnPowerEventHandler: PowerStatus: ResumeAutomatic
    [2013-08-08 04:59:01,047] [Log	] [PowerEventThread] [INFO ] - TvController.OnResume()
    but it looks like the grabber script did not get kicked off and the machine just went back to sleep
    Code:
    [2013-08-08 04:59:09,860] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting XmlTvImport: 
    [2013-08-08 04:59:09,860] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting EPG Grabbing: 08/08/2013 05:00:00
    [2013-08-08 05:03:23,019] [Log	] [PowerEventThread] [DEBUG] - TV service PowerEventThread 30
    [2013-08-08 05:03:23,018] [Log	] [PowerEventThread] [DEBUG] - TV service PowerEventThread 30
    [2013-08-08 05:03:23,017] [Log	] [PowerEventThread] [DEBUG] - TV service PowerEventThread 30
    [2013-08-08 05:05:48,507] [Log	] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: Suspend
    [2013-08-08 05:05:48,507] [Log	] [PowerEventThread] [DEBUG] - OnPowerEventHandler: PowerStatus: Suspend
    [2013-08-08 05:05:48,507] [Log	] [PowerEventThread] [INFO ] - TvController.OnSuspend()

    I then woke the machine but it did not appear to go through the normal resume code and it talks about <dead#2> ?? It also talks about waking the machine up in 1 minute

    Code:
    [2013-08-08 05:05:48,554] [Log	] [PowerEventThread] [INFO ] - dvb:StopGraph filterstate already stopped, returning.
    [2013-08-08 06:18:36,769] [Log	] [PS StandbyWakeup] [DEBUG] - LocalClientWakeupHandler: The underlying connection was closed: An unexpected error occurred on a receive.
    [2013-08-08 06:18:36,769] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting <dead#2>: 
    [2013-08-08 06:18:36,769] [Log	] [13	   ] [DEBUG] - PS: RegisterRemote tag: 2, uris: http://localhost:31458/6aad7d01_ad67_4140_96be_ccf26ad6d3da/c6j9qblbtjr8agywgkidd3rc_41.rem, http://localhost:31458/6aad7d01_ad67_4140_96be_ccf26ad6d3da/c6j9qblbtjr8agywgkidd3rc_41.rem
    [2013-08-08 06:18:36,769] [Log	] [5		] [DEBUG] - PS: RegisterRemote tag: 2, uris: http://localhost:31458/6aad7d01_ad67_4140_96be_ccf26ad6d3da/c6j9qblbtjr8agywgkidd3rc_41.rem, http://localhost:31458/6aad7d01_ad67_4140_96be_ccf26ad6d3da/c6j9qblbtjr8agywgkidd3rc_41.rem
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: SUSPEND
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: System is going to suspend
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: Signal "Suspend" to StandbyWakeupThread
    [2013-08-08 06:18:36,769] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Set wakeup timer to wakeup system at 08/08/2013 06:19:36
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: Stop EPG grabbing and TV controller
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: Run external command
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - PS: Send "EnteringStandby" event
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - OnPowerEvent: PowerStatus: ResumeSuspend
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [DEBUG] - OnPowerEventHandler: PowerStatus: ResumeSuspend
    [2013-08-08 06:18:36,769] [Log	] [PowerEventThread] [INFO ] - TvController.OnResume()

    and finally it then kicks in with the xmltv script that was due at 5am :confused:
    Code:
    [2013-08-08 06:18:55,927] [Log	] [PS StandbyWakeup] [DEBUG] - PS: StandbyWakeupThread triggered by check interval
    [2013-08-08 06:18:55,927] [Log	] [PS StandbyWakeup] [DEBUG] - PS: LoadSettings()
    [2013-08-08 06:18:55,942] [Log	] [EPG Grabbing Handler] [DEBUG] - EpgGrabbingHandler: EPG schedule 05:00 is due
    [2013-08-08 06:18:55,942] [Log	] [PS StandbyWakeup] [DEBUG] - PS: SetWakeupTimer()
    [2013-08-08 06:18:55,942] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting PowerController: 
    [2013-08-08 06:18:55,942] [Log	] [EPG Grabbing Handler] [DEBUG] - EpgGrabbingHandler: Starting external command: C:\ProgramData\Team MediaPortal\xmltv.bat epg
    [2013-08-08 06:18:56,067] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting Scheduled Recordings: 09/08/2013 20:58:00
    [2013-08-08 06:18:56,067] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting XmlTvImport: 
    [2013-08-08 06:18:56,067] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting EPG Grabbing: 09/08/2013 05:00:00
    [2013-08-08 06:18:56,067] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Inspecting <dead#2>: 
    [2013-08-08 06:18:56,067] [Log	] [PS StandbyWakeup] [DEBUG] - PS: New next wakeup time 09/08/2013 05:00:00 found by EPG Grabbing
    [2013-08-08 06:18:56,083] [Log	] [PS StandbyWakeup] [DEBUG] - PS: Set wakeup timer to wakeup system at 09/08/2013 04:59:00

    Any ideas?
     

    Users who are viewing this thread

    Top Bottom