If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Prevent Drives from Sleeping if Plex is Running?

GG7GG7 Posts: 186Members Plex Pass
Many drives and RAID sleep if you pause playback in Plex
Although I love my OWC 12TB four disk RAID that I use on my Plex Mac Mini Server, I do have some issues with it sleeping on me after pausing video playback. Like many external drives, this RAID hardware system does not seem to pay attention to the Energy Saver settings in System Prefs and will spin down the RAID within a few minutes of inactivity even if the NO SLEEP option is ticked in the E saver prefs. The problem with a multi-disk array like my Qx2 is that the amount of time it takes for the drives to spin back up is rather long and causes Plex to behave strangely if you leave your video paused long enough for the drives to sleep.

What happens on my system after a long pause is that after resuming playback, there is a long pause with no change to the video behavior followed by Plex resuming playback for a few seconds as it appears to be playing through a buffer, but when this buffer runs out the video freezes and plays a couple of glitchy frames followed by a return to the movie or TV show start page. The "Resume From" is then lost as if I never played the movie or episode before. I have to manually scan through the file to get back to the same location I was paused at before this happened. The workaround I first used was to HIT STOP instead of PAUSE and back out of the movie instead. This gets around the loss of the RESUME FROM location, but I would prefer to have a feature in Plex that was designed to keep the playback drive awake as long as it is being used with Plex.

There are some third party software out there that can keep drives awake, and even a program called Disksomina that keeps drives running Final Cut awake as long as Final Cut is running, but none of the other solutions are application specific. I wrote to the author of Disksomnia and asked if they would consider adding Plex support to their free app, but they said they had no plans to expand beyond Final Cut right now. That got me to wondering if perhaps the Plex developers couldn't take a look at Disksomnia and whip up something similar for Plex users that accomplishes the same thing. Basically, keeping your external media drive or RAID spinning as long as Plex is running, and turning off this feature if you quit Plex.

Right now I am using Keep Drive Spinning to prevent the RAID from sleeping, but since I am not using my HTPC constantly during the day, I would prefer to not have this large RAID left spinning all day long when when I am not using Plex.

Anyone got any other solutions for this problem that they have come up with? Ideally, a new feature in Plex to address this problem would be preferable.

I would LOVE to hear from the Plex development team on this request! I am sure that I am not alone in my desire for a Plex specific solution to the sleeping media drive issue.

Cheers.
||Media Server:  iMac Core i5 2.8 GHz w 4 cores 27" 2560x display & 4 GB Ram • RAID: OWC Mercury Elite-AL Pro Qx2 12.0TB • Burner: OWC Mercury Pro 12X Blu-Ray Pioneer BDR-206 External DVD reader/burner • HDTV: Sony Bravia XBR 55" HDTV • Primary Players: Apple TV rev. 4 - Fire TV - Xbox One - PS4 • AVR: SONY STR-DN 1040 • Speaker System: Klipsch R-280 Dolby Atmos 5.1.4 ||

Comments

  • Frankie R.Frankie R. Posts: 12Members
    I'm going to agree with this request, even though I may tone it back a smidge in that I don't like the idea of plex stopping a drive from spinning down. I have a drobo connected to my mac mini with drives going to sleep after a couple hours. This all works fine and dandy, however since plex doesn't request a file from the external drive until you hit play there are times, when I first come back to my TV after a couple hours away or a day, that the file will not play. Its not that big of a deal because I just wait for it to time out and continue on my marry way like nothing bad happened. However, I do think this can be handled a little more gracefully.

    What I propose is that when there is a call to the plex media server for metadata part of the process in it is to send a heartbeat cheek to any drive that may house connected data. This can be done asynchronously, so it won't effect the loading time from plex media server. This should spin up the drives and make things work more smoothly. Also if plex goes to sleep while the user is in a media list when it comes back from sleep it should requery its media information. This will once again cause a heart beat to spin up any sleeping drives and move things along properly.

    This may seem like a bit much in the sense that you'll spin up a host of drives with every request, but you could also go another route. You can create a drive status daemon that is checking the state of all drives in a collection, made from all drives associated with that media server, when media is requested it will ask the daemon the state of the drive and put a lock in place waiting for the drive to wake up. Once the drive is awake it will release its lock and load the media.

    This is all really over the top in the sense that its a lot of work for a very small number of people, but hey, it doesn't hurt to ask does it?
  • boots2xboots2x IP Challenged Ninja Posts: 1,184Members, Plex Pass, Plex Ninja Plex Ninja
    GG7 wrote:

    even if the NO SLEEP option is ticked in the E saver prefs.

    I'd be speaking to OWC and asking them to fix their bug! It's a bit wrong-minded to 'fix' this at the application level. The unit should be tolerant of normal usage.

    James

    These resources are your friends! The Plex Help Center | The Plex Forums | Forum Search is DEFINITELY your friend!

    Check the Plex Media Preparation Guide! | Learn how to collect Log filesGet MediaInfo to analyse video files

    Plex Media Server: Mac OS X and ReadyNAS Pro 6 | Plex Clients: Mac Mini 2010 2.66Ghz, 2Gb RAM, AppleTV Gen 2, iPhone 3GS | LG 56" DLP-TV | Sherwood AV Amp | Storage: ReadyNAS Pro 6 with 6 x 2Gb Hitachi HDD for 8Tb storage | Network: Cat 6 cabled, 1000BaseT

  • kungfueinsteinkungfueinstein Posts: 1Members, Plex Pass Plex Pass
    edited December 2016

    Hi,
    sorry to comment on such an old post but I can't find anything that has been done to improve this situation since.
    Large but inexpensive disks suitable for storing a movie library will need to sleep to save energy and will likely have long spin up times to continue serving a movie which has been paused.
    What I would like to see is the ability to fully cache what is being watched/transcoded to a SSD which won't have the same wake time problems.
    If this is something that can be done in a config change or is in planned development, please let me know.

    Cameron

  • jsii69jsii69 Posts: 12Members, Plex Pass Plex Pass

    Jesus I can't get any love!!!
    I have a HP server that has worked fine for years running Plex. It runs a little slow when trying to push out my upcoming 4k setup so I recently purchased the Netgear X-10 router just for for the built in Plex functionality. I also purchased a OWC 12tb 2 drive raid system. It works fine except after about an hour of none use it goes to sleep and won't wake up! I have to unplug the drive and then it works but it messes up the metadata. Similar but another wrinkle is since its plugged directly into the router (which does not have any type of sleep control functionality) presents another issue. ANY help would be appreciated!!! I'm using Mac Sierra and Windows 10..

  • JuiceWSAJuiceWSA Posts: 6,398Members ✭✭✭✭✭

    If you can't keep your stuff awake how do you expect Plex to?

    I think it must be a fairly poor set of user controls that can't keep a drive from taking a nap through some forced power saver setting or other shortcoming in design.

    I'll freely admit that having Win 10 is an adventure in stupid, but I was able to find and disable all those defaults that shot tranquilizer darts at all my stuff I wanted to keep on. It was interesting finding them all, but I did eventually make it happen.

    Tony

    FileBot For Easy Plex File Naming: http://www.filebot.net/

    Automated Plex Naming With Filebot: https://forums.plex.tv/discussion/191687/plex-naming-schemes-for-filebot

    Plex Friendly Handbrake Guide - DVDs/BluRays: https://forums.plex.tv/discussion/comment/1335697/#Comment_1335697

    Plex Clients: AFTVs, Androids, PMP, Rokus (running RARflix: http://mkvxstream.blogspot.com/2014/09/roku-plex-setup-guide.html ) Link May Work - May Not

  • jsii69jsii69 Posts: 12Members, Plex Pass Plex Pass

    I spoke with OWC and the short answer it can't be done. The firmware in the RAID drive automatically put it to sleep. I think I'm just going to take the 2-6tb drives out and put them in a docking station.

Sign In or Register to comment.