INTERACT FORUM

Please login or register.

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

Author Topic: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)  (Read 1066 times)

gtp600

  • Recent member
  • *
  • Posts: 48

Windows 10 PC with MC26.0.22. (This same problem was reported on MC25...see related posts in that area if interested.

Simply connect to MC Library sever, and select a playlist that's longer in duration than the serving PC sleep timer. (I've used both JRemote/Ipad and MCxx/Linux clients).

Using MC reporter to view events, you can see that the expiration time of the event "Serving (disable automatic sleep, disable deep sleep)" gets set differently between releases:
- MC26/MC25 sets the expiration of this parameter to just a few seconds whenever a new track is requested.
- MC24 sets the expiration of this parameter to around 20 minutes whenever a new track is requested, and I've never seen the serving PC go to sleep.

As virtually every track in my music library is longer than a few seconds, the serving MC26/MC25 PC is guaranteed to sleep because the
"Serving (disable automatic sleep, disable deep sleep)" parameter won't be active.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)
« Reply #1 on: February 27, 2020, 05:56:51 pm »

I believe the timer goes away once MC finishes serving.  Maybe your device reads the whole file at once?  Set the computer sleep time to be longer if it's a problem.
Logged
Matt Ashland, JRiver Media Center

gtp600

  • Recent member
  • *
  • Posts: 48
Re: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)
« Reply #2 on: February 28, 2020, 11:59:17 am »

Quote
I believe the timer goes away once MC finishes serving.

Yes, and that's exactly the problem. How does this make any sense when the client is processing a lengthy playlist?
And it's different behavior than in MC24 (which actually does prevent sleep as the parameter/event name would suggest).

Why was this functionality changed in MC25/MC26?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)
« Reply #3 on: February 28, 2020, 12:04:48 pm »

It was this change from January 2019:
Changed: Sleeping after serving a file will be allowed after 5 seconds instead of 20 minutes.

Before that the system would prevent sleep for a long time after serving and I didn't like that.
Logged
Matt Ashland, JRiver Media Center

gtp600

  • Recent member
  • *
  • Posts: 48
Re: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)
« Reply #4 on: February 28, 2020, 01:05:02 pm »

Well, from this customers perspective, you guys deleted a very useful feature which only made media networking more robust, with no real negative side affects.

Why you would choose to do this, and then tell customers to implement a workaround is very confusing to me.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: PC goes to Sleep while serving audio files on MC26.0.22 (and MC25)
« Reply #5 on: February 28, 2020, 05:28:25 pm »

That would be fine Matt, if all clients and remotes woke the MC Server again (reliably, in a timely manner) when they needed the next track in a Playlist. They don't. In fact, most don't.

It wouldn't matter so much if the Windows Sleep Timer is reset when MC serves another file. But it appears that may not be happening (not sure), and if so when the cumulative time since the first track was served exceeds the Windows Sleep Timer setting, the Windows PC will sleep. I tested a bunch back here: https://yabb.jriver.com/interact/index.php/topic,123034.msg854575.html#msg854575, but I was using a Windows Sleep Timer of 1 minute for that. Maybe if I set the Windows Sleep Timer to more than the longest track in a Playlist, which is usually the case on my HTPC, the PC wouldn't go to sleep. But note also my steps 1 to 12, that eventually Gizmo stopped waking the HTPC, even though it should have kept doing that.

So there is an issue. WOL requests work for a number of times from Gizmo, and then stop working. I have no idea why that happens, and it is a separate issue to the Windows Sleep Timer setting.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner
Pages: [1]   Go Up