INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: PC won't wake from sleep to record TV  (Read 11362 times)

dorsetjon

  • Recent member
  • *
  • Posts: 39
PC won't wake from sleep to record TV
« on: January 13, 2014, 11:59:05 am »

Hi,

Windows 8.1 & MC 19.103.

I want my PC to be able to sleep and "wake" when it is time to record TV. I am running the Media Server, which I believe is required for this. I have also checked that "Allow wake timers" is enabled in the power options. However, once the PC is in sleep mode it never wakes.

According to another topic (http://yabb.jriver.com/interact/index.php?topic=72318.msg489395#msg489395) the MC log file should include something like "Set wake from standby timer" when going in to sleep mode if a recording is scheduled, but that does not appear in my log. An extract of the log from before an after the sleep is included below.

Can anyone help me enable the ability to wake from sleep?

0648953: 4200: General: CMCResourceHelper::GetIsModalPopupShowing: Message box showing
0656422: 4232: Sharing Plugins: CUDPSocketReader::Accept: Canceled.
0656422: 4232: Sharing Plugins: CUDPSocketReader::Accept: Deleting socket
0656422: 4232: Sharing Plugins: CUDPSocketReader::Accept: Finish (28719 ms)
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Start
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Event: 18
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Finish (0 ms)
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Start
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Resuming from standby
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Clearing any pending wake timers
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Updating loader

Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: PC won't wake from sleep to record TV
« Reply #1 on: January 15, 2014, 07:34:22 pm »

I tried it again this evening and it worked for me.  It must be some settings.  What are the power options on your system?  I am using Windows 7 though.  It could be a Windows 8 thing.


I want my PC to be able to sleep and "wake" when it is time to record TV. I am running the Media Server, which I believe is required for this.

You need to have Media Server or Media Center itself running.

Quote

0925563: 4200: General: CMainFrame::OnPowerBroadcast: Start
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Event: 18
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Finish (0 ms)
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Start
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Resuming from standby
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Clearing any pending wake timers
0925563: 4200: General: CMainFrame::OnPowerBroadcast: Updating loader

These log lines appear to be logged when you manually wake up the computer.
Logged
Yaobing Deng, JRiver Media Center

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: PC won't wake from sleep to record TV
« Reply #2 on: January 15, 2014, 07:40:01 pm »

Tell MC to run Media Server on Windows Startup.  It's in the options under Startup.
http://wiki.jriver.com/index.php/Media_Server
Logged

Mikkel

  • Galactic Citizen
  • ****
  • Posts: 321
Re: PC won't wake from sleep to record TV
« Reply #3 on: January 19, 2014, 01:21:30 pm »

I experience the same problem. Can't tell you whether it happened with an update or not. Will provide you with a log file one of the following days. Let me know if you need any other info than contained in the log.

(MC Server is running).


Best regards,
Mikkel
Logged

Mikkel

  • Galactic Citizen
  • ****
  • Posts: 321
Re: PC won't wake from sleep to record TV
« Reply #4 on: February 08, 2014, 07:38:40 am »

Here is the log-file (I think "previous log" is the correct file): https://www.dropbox.com/s/ih3a9udhceaw6mc/JRiver%20Log%202014-02-08%2014-24-32.zip

Procedure:
1) Scheduled a recording
2) Entered sleep-mode
3) Waited until recording was due [PC did not wake]
4) Woke the PC manually

In power Management wake calls are activated. Server and Client is running.


Best regards,
Mikkel
Logged

Mikkel

  • Galactic Citizen
  • ****
  • Posts: 321
Re: PC won't wake from sleep to record TV
« Reply #5 on: February 17, 2014, 08:13:15 am »

UPDATE:

Scheduled TV recording works ONLY if the computer goes to sleep by itself (not when I ask it to).


Best regards,
Mikkel
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: PC won't wake from sleep to record TV
« Reply #6 on: February 17, 2014, 09:31:39 am »

UPDATE:

Scheduled TV recording works ONLY if the computer goes to sleep by itself (not when I ask it to).


Best regards,
Mikkel

Thanks for the update.  This likely will help.
Logged
Yaobing Deng, JRiver Media Center

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: PC won't wake from sleep to record TV
« Reply #7 on: February 17, 2014, 11:02:11 am »

According to your log, we are not receiving notification from the system that it is suspending operation.  That is why it would not wake up to record, as we would not set a timer without knowing that the system is going to sleep.

Still do not know why there is a difference between manually putting the system to sleep and the system goes to sleep automatically.
Logged
Yaobing Deng, JRiver Media Center

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: PC won't wake from sleep to record TV
« Reply #8 on: February 17, 2014, 12:43:25 pm »

UPDATE:

Scheduled TV recording works ONLY if the computer goes to sleep by itself (not when I ask it to).


Best regards,
Mikkel

How do you achieve getting the system to sleep (Windows menu, hardware Sleep button, etc.)  and did you set the system to Sleep or to Hibernate?
Logged
Yaobing Deng, JRiver Media Center

Mikkel

  • Galactic Citizen
  • ****
  • Posts: 321
Re: PC won't wake from sleep to record TV
« Reply #9 on: February 17, 2014, 01:09:21 pm »

I just pressed sleep in the Theatre View . I haven't tried pressing sleep in the windows menu. But I would suspect that

Theatre View sleep = Windows button sleep = automatic sleep mode.
I can try and enable logging, schedule a recording and let the PC go to sleep automatically. The log may tell you something. Will send it tomorrow (I hope).

Best regards,
Mikkel
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: PC won't wake from sleep to record TV
« Reply #10 on: February 17, 2014, 05:40:18 pm »

I think I have found the problem, but not the solution yet.  Stay tuned...
Logged
Yaobing Deng, JRiver Media Center

astromo

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2251
Re: PC won't wake from sleep to record TV
« Reply #11 on: February 21, 2014, 03:15:26 pm »

Has this been fixed?

http://yabb.jriver.com/interact/index.php?topic=82804.0

Quote
19.0.118 (2/18/2014)
10. Fixed: MC would not wake up to do television recordings if the computer was put to sleep through Theater view's "System Sleep, Shutdown, & More..." menu.
Logged
MC33, Win10 x64, HD-Plex H5 Gen2 Case, HD-Plex 400W Hi-Fi DC-ATX / AC-DC PSU, Gigabyte Z370 ULTRA Gaming 2.0 MoBo, Intel Core i7 8700 CPU, 4x8GB GSkill DDR4 RAM, Schiit Modi Multibit DAC, Freya Pre, Nelson Pass Aleph J DIY Clone, Ascension Timberwolf 8893BSRTL Speakers, BJC 5T00UP cables, DVB-T Tuner HDHR5-4DT

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: PC won't wake from sleep to record TV
« Reply #12 on: February 21, 2014, 04:24:52 pm »

That link is about something else.
Logged

yinmeout

  • Junior Woodchuck
  • **
  • Posts: 52
Re: PC won't wake from sleep to record TV
« Reply #13 on: May 16, 2014, 10:51:39 pm »

+1 for this issue.

If I do:

Powercfg -waketimers

I do not see any of the programs I have scheduled to record listed as events to wake the system. So, it does not wake and does not record.
I think a better way (he said treading lightly) might be, to set an event to record the programs and make that wakeable.
That way it doesn't matter under what circumstances sleep is entered, the wake will trigger.
I believe this is what MS does for it's Media Center - below is the scheduled task to do it.
The TV service just sets this to the next program time, once the previous one has done it's thing.

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Source>Microsoft Corporation</Source>
    <Date>1982-01-15T16:30:00-08:00</Date>
    <Version>1.2</Version>
    <URI>Microsoft\Windows\Media Center\StartRecording</URI>
  </RegistrationInfo>
  <Triggers />
  <Principals>
    <Principal id="NetworkService">
      <UserId>S-1-5-20</UserId>
      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <Duration>PT10M</Duration>
      <WaitTimeout>PT1H</WaitTimeout>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
    <WakeToRun>true</WakeToRun>
    <ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="NetworkService">
    <Exec>
      <Command>%SystemRoot%\ehome\ehrec</Command>
      <Arguments>/StartRecording</Arguments>
    </Exec>
  </Actions>
</Task>

My system is put to sleep via Lights-Out which is a server side program developed for Server Essentials 2012 r2 and other home server flavours.
Logged
Pages: [1]   Go Up