Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sleep unRAID when HTPC goes offline

Featured Replies

Hi,

 

I currently have my unRAID setup to enter S3 sleep shortly after the disks have spun down. It wakes when I boot up my HTPC (sends a WOL command as part of the startup tasks).

 

I was wondering if there was any way I could set it all up so that my unRAID sleeps when the HTPC goes offline?

 

Thanks in advance for any ideas.

you could setup a cronjob, running a script every 30 min (or even more often). this script would check, if your htpc is available (ping) and if not, tell it to go to sleep.

  • Author

Ok so I'm pretty new to all this, I don't actually know what a cronjob is!! I used a sleep script (written by someone else on the forums) on unraid 4.7 but this stopped working when I upgraded to 5.0 rc8a so I know use the sleep features built into simple features. Would I need to go back to using a script again?

ah, ok. your first post made me think, you'd currently have some custom scripts running for this :)

 

i don't know of any plugins, that would do this at the moment. so if you'd want to put your unraid to sleep as soon as your htpc goes down, i don't think there is any other way...

 

well, since you've set your unraid to go to sleep after the disks have spun down, you could reduce the time they take to spin down.

  • Author

Don't get me wrong, I'm willing to learn! I just need pointing in the right direction and I might have a few questions along the way!!

The sleep function provided in SimpleFeatures allows you to do what you want.

 

In the setting Wait for device inactivity (address) put the IP address of your HTPC.

 

 

This will the sleep script check if your HTPC is online, as soon as it isn't your unRAID goes to sleep as well.

 

 

  • Author

Thanks, I missed that one in the settings!! Will try it out when I get home.

 

Edit

Ok so that worked, a short while after turning off my HTPC the unraid box went to sleep. I did have some problems waking the machine up this morning however, the WOL appeared to work in that the machine spun up the disks and the network light on my ethernet switch box came back on, but the device shares were not available, the web gui could not be accessed and telnet would not connect. I had to hold the power switch down to force a reset.

 

I'm going to mark this thread as solved as my original question was answered, thanks again for that. I'll run some more tests over the next week or so and post back on a new thread if I continue to get a frozen machine on wakeup.

  • 2 months later...
  • Author

Hope its ok to resurrect this thread....

The solution given to me previously works perfectly; I was just wondering if there was a way to make my unraid box scan for more than one IP before sleeping itself? Ideally I'd now like it to wait for 3 machines to be offline before it sleeps. Can I enter more than one IP maybe separated by a comma or colon/semi colon or some other character?

 

Thanks in advance for any help with this upadated request!!

Hope its ok to resurrect this thread....

The solution given to me previously works perfectly; I was just wondering if there was a way to make my unraid box scan for more than one IP before sleeping itself? Ideally I'd now like it to wait for 3 machines to be offline before it sleeps. Can I enter more than one IP maybe separated by a comma or colon/semi colon or some other character?

 

Thanks in advance for any help with this upadated request!!

Yes, more than one IP address can be entered (use a space for separation).

  • Author

Excellent thanks for the quick reply!!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.