INTERACT FORUM

Please login or register.

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

Author Topic: MC 18 and HTPC/Server sleep after streaming  (Read 5466 times)

drewgarth

  • Recent member
  • *
  • Posts: 10
MC 18 and HTPC/Server sleep after streaming
« on: June 27, 2013, 09:59:27 pm »

Hi Guys,
I've got a slight variation of the "my PC wont sleep" problems, at least in so far as what i have read.

My HTPC running windows 8, sleeps very reliably. I have dealt with the SRVNET issue and requestsoverride in the past.

I have MC18 installed and set up as a server to stream audio/video/live TV.
If i reboot the HTPC and watch files locally, then shut MC18 everything works fine. The HTPC sleeps as expected.

However, if i connect remotely either via an IPAD using a DLNA streaming client or via a remote MC18 client, then from that point on the HTPC/server wont sleep. Despite the remote connection being closed (PC and IPAD physically switched off).

Powercfg - requests shows the MC18 executable under both PROCESS and AWAYMODE.

Any suggestions or further diagnostics would be appreciated.

cheers
Andrew
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #1 on: June 27, 2013, 10:06:58 pm »

If you look at the 'Media Network' view, are any requests rolling in?

Only important requests, like serving a file, should keep the system awake.

It might be interesting to watch with powercfg and see when the away mode gets set as you browse.  I'd expect it to happen when you play the first file.  But I'd also expect stopping to close the socket and for it to clear the away mode.
Logged
Matt Ashland, JRiver Media Center

csimon

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1686
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #2 on: June 28, 2013, 09:39:54 am »

I've had sort of similar issues - it was difficult to pin down what circumstances would cause "lack of sleep" and it seemed to vary, but I suspected somewhere on the line that previous network activity (from MC connecting to a NAS, or connecting to MC remotely from an iPad) had an effect.

But the way I've solved my issue (touch wood) is with the most recent Intel NIC driver.  The WOL options in the driver now are:

Wake on Magic Packet
Wake on Magic Packet from power off state
Wake on Link Settings
Wake on Pattern Match

The Pattern Match is a new thing and apparently is OS-specific. This is disabled and now my PC is consistently staying in sleep.

If you have an Intel NIC (or a Realtek one, I believe it has the same Pattern option) then try this. I don't know though if you mean the PC is waking up immediately after putting it to sleep or whether it won't sleep in the first place.
Logged

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #3 on: June 28, 2013, 04:04:00 pm »

Matt,
thanks for the reply, i have narrowed it down.
This occurs when i stream TV from a separate PC client.

Doing as you said watching the server processes and Powercfg on the HTPC/server
 if i open a saved video, i see the file being served in the media server logs , and the processes appear on the powercfg request. When i click on stop on the remote PC, i see the served data stop in the media server logs and the two MC18 processes disappear from powercfg.

However if i open a live TV stream on the remote PC, Then i see the processes start on in powercfg, but when i stop playing the TV, the processes remain in powercfg until i reboot the htpc/server.
There are no file serving processes still active in the media network logs.

Hopefully that helps narrow this down.

Csimon, thanks for your reply. though this isn't Wol related as im using a dlink wireless card that doesn't support wol, and the problem is my htpc/server not going to sleep as opposed to waking.

cheers
Andrew
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #4 on: June 28, 2013, 04:20:25 pm »

Nice detective work.

Is it only when watching live TV, or will watching a recording also cause it?

I'm guessing it's live TV only, because I test the recording part all the time at home and haven't ever seen this.
Logged
Matt Ashland, JRiver Media Center

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #5 on: June 28, 2013, 05:35:45 pm »

Hi Matt,
thanks, you are correct. I just tested this.
To be sure, on the HTPC itself i started a live stream and stopped a live stream.
The processes appear and disappear as expected.

I stopped MC18 then went to my laptop.
On my laptop I played a recorded show (from the HTPC/server) and the processes on the HTPC/server started and stopped as intended
I then played a live TV stream, stopped it, exited from MC18

On the HTPC/server i now have MC18 as both a system process and an awaymode process in Powercfg.

Again, rebooting obviously resets things.

Let me know if i can test anything else to try to figure out what the fix is :)

cheers
Andrew
Logged

Daveyravey

  • Galactic Citizen
  • ****
  • Posts: 443
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #6 on: June 30, 2013, 06:38:37 am »

I have just noticed this as well although this event also happens on my machine when woken by a timer event on the guide and then refuses to go back to sleep after the recording.
If you look at powercfg it states Jriver18.exe in away mode

Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #7 on: July 01, 2013, 10:59:15 am »

After the client is stopped, check MC on the server, go to Drives & Devices > Television, and click "TV Options...".  On the options window, click Advanced > Show Status.  What are the status of each tuner?  Is there any one that is still "Serving clients"?
Logged
Yaobing Deng, JRiver Media Center

Daveyravey

  • Galactic Citizen
  • ****
  • Posts: 443
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #8 on: July 01, 2013, 11:44:23 am »

all tuners say idle after disconnecting from the server but machine still will not sleep. The only way around this is to reboot.
Logged

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #9 on: July 01, 2013, 05:29:32 pm »

Hi Guys,
same result on my system as Daveyravey,

if i check the status on the htpc/server prior to TV playback on remote client all four tuners say idle.
If i check during playback, then 1 tuner is in use
as soon as i click stop on the remote client and then check the status on the htpc/server the status is back to idle.

then the reboot is required to clear the mc18 process(s) in Powercfg

cheers
Andrew
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #10 on: July 08, 2013, 02:23:43 pm »

Yaobing got this fixed.

In a coming build:
Fixed: Server computer would not go to sleep after serving live television to clients.

Thanks for your detective work :)
Logged
Matt Ashland, JRiver Media Center

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #11 on: July 08, 2013, 03:06:12 pm »

Thanks Matt,
thats great news :)

Logged

Daveyravey

  • Galactic Citizen
  • ****
  • Posts: 443
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #12 on: July 08, 2013, 04:15:22 pm »

Excellent news ....
Logged

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #13 on: July 23, 2013, 04:02:29 pm »

Davey, Matt, im just wondering if the sleep fix worked too well.

Twice now when i have been watching recorded TV on the MC client, the MC Server machine has gone to sleep mid stream.
Am i correct in assuming that if streaming recorded TV content, it should keep the server awake?

any thoughts would be appreciated.

cheers
Andrew
Logged

drewgarth

  • Recent member
  • *
  • Posts: 10
Re: MC 18 and HTPC/Server sleep after streaming
« Reply #14 on: August 27, 2013, 04:57:29 pm »

Hi guys,
this still seems to be a problem. Is anyone else finding the same?
Where previously watching TV on a remote client, the TV tuner would stop the server PC from sleeping,
Matt fixed this which was much appreciated.

However, after the fix, the server seems to sleep when a remote client is streaming anything, TV, or other media.

Does anyone have any ideas?

cheers
Andrew
Logged
Pages: [1]   Go Up