INTERACT FORUM

Please login or register.

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

Author Topic: Prevent Sleep on Server while Serving ?  (Read 10591 times)

bunglemebaby

  • Galactic Citizen
  • ****
  • Posts: 469
Prevent Sleep on Server while Serving ?
« on: February 13, 2012, 09:11:29 pm »

Is there an option to prevent a media server system from going to sleep while a client is playing back media from it? This seems like a basic feature so I'm guessing that it exists, but I can't find it in the options anywhere.
-Jon
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Prevent Sleep on Server while Serving ?
« Reply #1 on: February 13, 2012, 09:28:10 pm »

I believe only television recording wakes and/or keeps the computer awake, not file serving.

The challenge is that there's a lot of network chatter, so I'm not certain what transactions should be considered stay-awake-worthy.

One approach would be to always keep the machine awake when any server is running, but this would sort of defeat the purpose of auto-sleep on the machine.
Logged
Matt Ashland, JRiver Media Center

bunglemebaby

  • Galactic Citizen
  • ****
  • Posts: 469
Re: Prevent Sleep on Server while Serving ?
« Reply #2 on: February 14, 2012, 06:11:49 am »

That makes sense (not wanting to keep the machine always on), and without understanding what's going on behind the scenes I may not have much in the way of suggestions. Doesn't the server know that a non-local zone has an active playing now though (in order to do a "Link Zones" command, et al)?
From a user's perspective though, I definitely want the media server to stay on while I'm playing music (or watching video, etc) from a client. It is really frustrating to have to go turn the server back on midway through an album. I'm a little bit surprised that I haven't seen anything else about this as it's a very important issue in my book.
What have others done to deal with this?
-Jon
Logged

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: Prevent Sleep on Server while Serving ?
« Reply #3 on: February 15, 2012, 05:55:23 am »

Obvious answer - left my server on  ;D

Seriously though, I would have thought ANY activity would have kept the server running.

If you're looking to save power (as I am), I've set my server to close down at 12:00 midnight each night and wake up at 7:00am each day. No one streams media in my house during those hours, so little point in having the server on...

I run ubuntu server on an old PC with SMB shares so it's really just like turning my PC on and off every day. The shutdown is a cron, the startup is via alarm in the bios.

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2007
Re: Prevent Sleep on Server while Serving ?
« Reply #4 on: February 15, 2012, 12:12:07 pm »

From a user's perspective though, I definitely want the media server to stay on while I'm playing music (or watching video, etc) from a client. It is really frustrating to have to go turn the server back on midway through an album. I'm a little bit surprised that I haven't seen anything else about this as it's a very important issue in my book. What have others done to deal with this?

Exactly what kind of server do you have that would even be allowed to sleep? Or are you using a workstation OS but calling it a server?

Bottom line: Just leave it on - that's what servers are designed for. And trust me  I have done plenty of electrical analysis and all sorts of costing over a 6 month period using Windows Home Server here and in the end - I think was about 8 bucks more to keep the thing on all the time. 8 bucks is more than worth it to avoid all hassle factor :)

VP
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Prevent Sleep on Server while Serving ?
« Reply #5 on: February 15, 2012, 12:17:23 pm »

I put my Library Server machine (which is also my main computer) to sleep manually most nights.

Gizmo, Media Center, and television recording in Media Center all wake it up automatically if needed.

It's about $1 per-watt-per-year in the US.  My server machine draws 100W at idle, so if it can sleep 1/3 of the time, it saves a little over $30 a year.
Logged
Matt Ashland, JRiver Media Center

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2007
Re: Prevent Sleep on Server while Serving ?
« Reply #6 on: February 15, 2012, 01:07:21 pm »

I put my Library Server machine (which is also my main computer) to sleep manually most nights.
Gizmo, Media Center, and television recording in Media Center all wake it up automatically if needed. It's about $1 per-watt-per-year in the US.  My server machine draws 100W at idle, so if it can sleep 1/3 of the time, it saves a little over $30 a year.

Yes - as do I - but that's a desktop OS (as I assume yours is). I was referring to the "server" where the media files are actually located. And over here that's a WHS 2011 (Windows Server 2008) box that's running 24x7x365 and it never goes to sleep.

VP
Logged

bunglemebaby

  • Galactic Citizen
  • ****
  • Posts: 469
Re: Prevent Sleep on Server while Serving ?
« Reply #7 on: February 15, 2012, 08:06:00 pm »

Quote
Exactly what kind of server do you have that would even be allowed to sleep? Or are you using a workstation OS but calling it a server?
The latter, because it stores my media and serves it to other devices. (Pseudo-) Server by function, if not by form.
I was under the impression that a media server is often expected to sleep/wake as needed by client devices (hence features like WoL). Setting the system up to turn on each morning would be easy enough, but guessing a safe shutdown time is near impossible, so that will take some tinkering to avoid shutdown/sleep when the system is actively being used. Maybe a manual shutdown is fine.

I still think that preventing sleep while serving media would be a reasonable feature. I'd guess that there are others that occasionally stream from their laptop when an odd situation calls for it (that's the only streaming I'd done prior to setting up the new system). I suppose I get why it's not a higher priority feature now though.

Thanks for the thoughts and advice. -Jon
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Prevent Sleep on Server while Serving ?
« Reply #8 on: March 18, 2012, 11:27:23 am »

Any updates on this? I'd love to prevent sleep/hibernation while Library Server is running...
Logged

wibblefish

  • Recent member
  • *
  • Posts: 32
Re: Prevent Sleep on Server while Serving ?
« Reply #9 on: November 10, 2012, 06:54:44 pm »

Medic!

resurrecting this old thread as I have to keep getting off the sofa to wake up my media sever which keeps going to sleep whilst I am listening to music on MC on my laptop.

Can jrmc not issue some kind of "keep alive" instruction whilst serving music? I am fairly sure this this possible (at least) within the windows API.

FWIW, viewers might be interested in this utility. (I have not tried it out myself) http://dennisbabkin.com/toff/
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Prevent Sleep on Server while Serving ?
« Reply #10 on: December 18, 2012, 04:54:13 am »

I'd really like to see this tacked.

My server isn't a real server.  It's my desktop computer which most of the time I want to go to sleep after 30 minutes of non use.  However I sometimes work on my laptop computer - playing media off of my desktop.
Having it go to sleep every 30 minutes is quite frustrating!

csimon

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1686
Re: Prevent Sleep on Server while Serving ?
« Reply #11 on: December 19, 2012, 04:40:55 am »

Windows 7 at least has a parameter in the power options that specifies a minimum processor activity required to stay awake, at least that's how I interpret it. It works for me anyway - I have my main PC set to sleep after 10 minutes but simply using MC on it to serve a DLNA renderer keeps it awake the whole time. Althought, I'm using JRemote as a controller and I know that sends WOL packets to wake the server up.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Prevent Sleep on Server while Serving ?
« Reply #12 on: December 19, 2012, 06:04:23 am »

Windows 7 at least has a parameter in the power options that specifies a minimum processor activity required to stay awake, at least that's how I interpret it. It works for me anyway - I have my main PC set to sleep after 10 minutes but simply using MC on it to serve a DLNA renderer keeps it awake the whole time. Althought, I'm using JRemote as a controller and I know that sends WOL packets to wake the server up.

If we're looking at the same parameter I think what it actually does is vary the clock rate on the cpu to save battery juice?
Pages: [1]   Go Up