Jump to content

How to prevent server computer from sleeping


leebo

Recommended Posts

I have my HTPC, which is currently running MB3 server, set to sleep after 45 mins. When using it for WMC, it does not go to sleep. I assume WMC somehow prevents it.

However, when I'm using my Roku, which is in another room, the computer DOES go to sleep, even while I'm watching a movie. Is there some setting in the server dashboard to prevent this?

Link to comment
Share on other sites

Not that I know of. I would think the communication with the server would be enough. It sounds like it isn't.

Link to comment
Share on other sites

Deihmos

The htpc going to sleep while looking at a movie means that you have it enabled to sleep even when sharing media. Change the setting in power options. I

Link to comment
Share on other sites

The htpc going to sleep while looking at a movie means that you have it enabled to sleep even when sharing media. Change the setting in power options. I

I think your right, but I wonder why it doesn't sleep when I'm using WMC? I think I had changed the sleep/media sharing setting because the computer was waking from sleep on it's own. I also think I eventually traced that issue to a wake from NIC setting and never changed back the media sharing setting.

 

I hope changing it back doesn't bring back that issue!

 

Anyway, thanks.

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

Deihmos

Go to device manager and check the power management settings for your network adapter. Make sure it is set to only wake by magic packets

Link to comment
Share on other sites

The htpc going to sleep while looking at a movie means that you have it enabled to sleep even when sharing media. Change the setting in power options. I

 

I just checked. "When sharing media" setting is already set to "Prevent idling to sleep". So that's not it. :(

Link to comment
Share on other sites

Deihmos

you can always check why your pc went to sleep in command prompt or event viewer. The roku isn't accessing your shared media so maybe that is why it still goes to sleep when idle. I will test it when on my roku. Maybe the PC is too fast and transcodes the video quickly.

 

command prompt commands

powercfg lastwake - reports the event that last woke the pc

powercfg /requests - reports what is keeping your pc from entering sleep

Edited by Deihmos
Link to comment
Share on other sites

powercfg lastwake - reports the event that last woke the pc

powercfg /requests - reports what is keeping your pc from entering sleep

 

Well, but, it IS going to sleep (while streaming a movie to the Roku), so I don't see how either of those will help in my situation.

Weird no one else seems to be having this issue. Maybe it's not so common to put your computer to sleep? I may have to change the sleep time to two hours. That'll waste electricity and wear on my hard drives though.

Link to comment
Share on other sites

Deihmos

He wants the pc to sleep. I have my server set to sleep after being idle for 30 minutes and the hard drives will sleep when not active for a specified time. If the pc goes to sleep while streaming to roku you should then check event viewer to see why the pc went to sleep. I don't understand why it would sleep while transcoding a video because the pc wouldn't be idle.

Edited by Deihmos
Link to comment
Share on other sites

^ This. Eventually I hope to build a true server that will run 24/7, but for the time being I have to use my HTPC which goes for long periods of not being used each day. Next time I stream a movie from it and it goes to sleep, I will check event viewer.

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

I see ServerWMC has an option for "Prevent computer from sleeping whenever a client is connected" (something to that effect), but it's only for XBMC clients.  :angry:

Link to comment
Share on other sites

Koleckai Silvestri

powercfg lastwake - reports the event that last woke the pc

powercfg /requests - reports what is keeping your pc from entering sleep

 

Well, but, it IS going to sleep (while streaming a movie to the Roku), so I don't see how either of those will help in my situation.

Weird no one else seems to be having this issue. Maybe it's not so common to put your computer to sleep? I may have to change the sleep time to two hours. That'll waste electricity and wear on my hard drives though.

 

 

Increase the sleep timer. The issue is that even with Transcoding, that doesn't occur over the entire video. In my experience the transcoding is done in 30% of the time it takes a video to play. After that the client is just reading .ts files off the server. So the system goes to sleep. 

 

Increasing your sleep timer to two or three hours would prevent this but your device won't sleep much. I actually don't sleep my server/workstation to avoid this problem.

 

The solution could be:

 

The Roku sends a magic packet every XXX seconds. It doesn't support this currently. Or...

 

The MB server tells the OS that it is busy every XXX seconds.

Edited by Wayne Luke
Link to comment
Share on other sites

The Roku sends a magic packet every XXX seconds. It doesn't support this currently. Or...

 

The MB server tells the OS that it is busy every XXX seconds.

I'd think it would be a server thing. I mean the Roku is communicating playback progress as it goes so it is in constant (well every 10 seconds) contact with the server. A magic packet to wake something should only be done at the startup of the channel.

Link to comment
Share on other sites

pd veeps

I'm having the same issue. This morning, my son wanted to watch a show and the roku or my iphone wouldn't wake the server. Usually or in the past it worked. So I manually turned on the pc. Then the pc went to sleep in the middle of him watching a 30 min show. Sleep is set at 30 min which is weird.

Link to comment
Share on other sites

  • 4 weeks later...
AdrianW

Bumping this old thread...

 

Yesterday I had my server running a "Chapter Image extraction" and after a while it went to sleep - seems strange as the CPU usage during that process is quite high.

Link to comment
Share on other sites

chipper

I have to agree with the server sleeping.

 

On my server I also have PLEX installed.  I can watch a movie in PLEX without any issues, but the computer will sleep while using MB3 even while watching a movie, playing music, etc.

Link to comment
Share on other sites

gcw07

At this point I think we need to see what the server guys can say about it. Cause yeah that would be annoying to have it sleep mid streaming.

 

@@Luke

Link to comment
Share on other sites

I have to agree with the server sleeping.

 

On my server I also have PLEX installed. I can watch a movie in PLEX without any issues, but the computer will sleep while using MB3 even while watching a movie, playing music, etc.

I guess that was the point I was trying to make. I have no idea how to write code, it just seems to me that there might be some way to put that into MB3. So many other media server programs do it.

 

I watched paranoia the other night, thank God for cetons my media center and it's wol feature. Had to use it three or four times.

 

Eventually I'll build a real server and let it run 24/7.

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

chipper

I'm sorry you watched Paranoia - just recently saw it....

 

I installed a ROKU app that will wake up the server by sending the magic packet.  Very easy to use.

Link to comment
Share on other sites

I'm sorry you watched Paranoia - just recently saw it....

 

I installed a ROKU app that will wake up the server by sending the magic packet. Very easy to use.

Ha ha! It was ok. Rented it on a 2 for 1 Redbox special, so ...

 

I have the Ceton app that does the same thing. Still, since I have my computer set to sleep at 30 mins, it's very annoying to have to keep waking it!

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...