Unraid's Sleep And Wake Cycle: Understanding The Basics

does unraid sleep and wake up

Unraid is a software that allows users to set up a home media server/NAS. One of the features that users may be interested in is the ability to put the server to sleep and wake it up when needed. This can be achieved through various methods such as using the Dynamix Sleep plugin, User Scripts, or third-party tools like LunaSea and Woow. However, some users have reported issues with the server not waking up properly, requiring a physical reset. To avoid this issue, some users prefer to simply shut down and power up the server when needed.

Characteristics of 'Does Unraid Sleep and Wake Up'

Characteristics Values
Sleep Settings S3 sleep plugin, Dynamix sleep plugin, User scripts
Wake-up Settings Magic Packet, LunaSea, iOS app Wolow, Keyboard, Task scheduler, WOL packet
Issues Server doesn't wake up, Server wakes up but can't log in
Solutions Review BIOS settings, Set 'ACPI Suspend Type' to S1 or S3 sleep state, Set 'Wake-on' to 'g'

shunsleep

Unraid sleep settings

  • Review your BIOS settings: Check the BIOS settings on your Unraid server to determine the allowable sleep states. For example, on some motherboards, the setting may be "ACPI Suspend Type", offering the option to suspend to S1 or S3 sleep state.
  • Install the S3 sleep plugin: Install the Dynamix S3 sleep plugin to enable sleep functionality. This plugin allows you to put your Unraid server to sleep and wake it up using "excluded hours".
  • Select desired sleep hours: Choose the specific hours when you want your server to sleep. For instance, if you want it to sleep between 12 am and 8 am, you would select 0800 to 2400 as the desired hours.
  • Exclude cache: You can set your server to sleep only when the array is inactive (not serving files). Even if the cache is active, the server can still sleep since the cache is often active when dockers are running.
  • Set extra delay after array inactivity: You can set an extra delay, such as 10 minutes, after array inactivity. This means the array must be inactive for the specified duration during the excluded hours for the server to sleep.
  • Wait for network and device inactivity: Decide whether you want to enable waiting for network inactivity. Additionally, you can specify a device IP address, so the server will only sleep if there is inactivity on that particular device.
  • Generate a sleep script: Create a sleep script to automate the sleep process. You can find sample sleep scripts on Unraid forums, which you can download and modify to suit your needs.
  • Save the sleep script: Save the sleep script onto a flash drive in the specified location. For example, you can title the script s3.sh and save it in the /boot/custom/bin directory. Ensure you do not create another "boot" directory within the flash device's root directory, as this will cause Unraid to lose track of your configuration.
  • Enable Wake on LAN: Make sure to enable the appropriate Wake on LAN setting in your BIOS. This will allow your server to wake up from sleep.
  • Test the sleep and wake-up process: Before finalizing the settings, test the sleep and wake-up functionality to ensure everything works correctly. Some users have reported issues with the second or later sleep attempts, so thorough testing is recommended.

Additionally, you can use external tools to control the sleep and wake-up of your Unraid server. For example, you can use the iOS/Android App ControlR or simply push the power button if the server is within reach. Alternatively, you can set up a cron job to shut down the server at a specific time.

shunsleep

Waking up an unraid server

To set up WoL on your unRAID server, you'll need to confirm the BIOS settings. Look for the “ACPI Suspend Type” setting, which should provide the option to suspend to S3 sleep state. Additionally, use the Terminal on the WebUI to confirm that the "Wake-on" setting includes 'g', which indicates support for Wake on Magic Packet.

Another method for waking up an unRAID server involves using a script. You can find an OMV sleep script on the Unraid forum, which can be copied and edited to suit your specific setup. This script includes pre-sleep and post-sleep activities, such as forcing the NIC into gigabit mode and renewing DHCP.

It's worth noting that different motherboards have different capabilities and driver concerns, so you may need to refer to specific motherboard documentation or forums for detailed instructions. Additionally, the procedure may vary depending on the operating system of the device accessing the unRAID server.

Morning Blues: Why Can't I Wake Up?

You may want to see also

shunsleep

Dynamix Sleep plugin

The Dynamix Sleep plugin is a tool that allows users to put their Unraid server into a sleep state when not in use and wake it up when needed. It is designed to work with the Unraid operating system and requires a Wake-on-LAN (WoL) packet from an external device to wake the server from sleep.

To use the Dynamix Sleep plugin, users need to install it on their Unraid server and configure the sleep and wake settings according to their preferences. The plugin provides options to select specific days and hours when the server should not go to sleep, allowing users to customize the schedule based on their usage patterns.

One important consideration when using the Dynamix Sleep plugin is that the server will require a WoL packet to wake up. This means that users need to have another device, such as a smartphone, Raspberry Pi, or router, that can send the magic packet to the server to wake it up. The server cannot wake itself up from within the Unraid operating system.

The Dynamix Sleep plugin has gone through several updates and versions, with the latest version supporting Unraid 6.9 and later. It is recommended to check for updates and ensure compatibility with the specific version of Unraid being used. Additionally, different motherboards may have different capabilities and driver concerns, so it is important to review the BIOS settings on the Unraid server to ensure the desired sleep states are allowable.

Overall, the Dynamix Sleep plugin provides a convenient way for Unraid users to save power and reduce resource usage by putting their servers to sleep when not in use. By customizing the sleep schedule and using external devices to send WoL packets, users can have greater control over their server's activity and power consumption.

shunsleep

Wake-on-LAN (WOL)

The basis for the Wake-on-LAN industry-standard mechanism was created around 1994 by AMD in cooperation with Hewlett-Packard, who co-developed AMD's Magic Packet Technology. It enabled a remote network device to be woken up through the underlying "power management circuitry" by sending it a standard Ethernet frame. Wake-on-LAN saw wide adoption starting in October 1996 when IBM formed the Advanced Manageability Alliance (AMA) with Intel.

To enable Wake-on-LAN on your devices, there are a few important steps to follow. Firstly, to check if you have the Wake-on-LAN software feature available on your Windows computer, click the Start button, type "device manager", and open it. In the Device Manager console, you will see all your drivers. Expand the Network Adapter Driver and right-click your network adapter. Click Properties and select the Advanced tab. Here, you should be able to find Wake on Magic Packet and Wake on Pattern Match.

shunsleep

Troubleshooting unraid sleep issues

If you are experiencing issues with your Unraid server going to sleep and not waking up, there are several troubleshooting steps you can try. Here are some detailed instructions to help you resolve the problem:

  • Check your motherboard settings: Different motherboards have different capabilities and driver concerns. Review your BIOS settings to ensure that your motherboard supports sleep and wake functions. Look for the "ACPI Suspend Type" setting, which should provide the option to suspend to either S1 or S3 sleep state.
  • Install the Dynamix S3 Sleep plugin: The Dynamix S3 Sleep plugin allows you to force your machine into an S3 sleep state at specified times. However, note that this plugin does not address issues with waking up the server.
  • Use a Wake-on-LAN (WoL) feature: Enable the Wake-on-LAN feature on your Unraid server. This will allow you to wake up your server remotely by sending a "magic packet" to the server's MAC address. You can use a device like a Raspberry Pi or your phone to send these packets on a schedule.
  • Configure sleep settings: Properly configure your sleep settings to ensure your server goes to sleep when you want it to. Specify the days and hours you don't want your server to go to sleep. You can also set an extra delay after array inactivity to ensure the server only sleeps when not in use.
  • Check your flash drive: If you're experiencing issues with your Unraid server after waking it from sleep, it could be due to a failing flash drive. Try moving the flash drive to a new port to see if that resolves the issue.
  • Review logs: Check the logs to identify any specific errors or issues that might be causing the problem. For example, communication failures with the flash drive can lead to issues after waking the server from sleep.

By following these steps, you should be able to troubleshoot and resolve most common issues with your Unraid server sleeping and waking up.

Sleep-Wake Cycles: Fact or Fiction?

You may want to see also

Frequently asked questions

You can put your Unraid server to sleep by using the Dynamix Sleep plugin. You can also use the S3 sleep plugin to put your server to sleep when not in use and wake it up when a file is being transferred.

You can wake up your Unraid server by sending a Wake-on-LAN (WoL) packet from a device such as your phone or a Raspberry Pi. You can also use the iOS/Android app ControlR or press the power button.

There could be several reasons why your Unraid server is not waking up, including issues with the USB ports, network connectivity, or BIOS settings. Try resetting the BIOS, checking your network configuration, or using a different device to send the WoL packet.

To set up Sleep and WoL for your Unraid server, you need to configure the BIOS settings to enable WoL and set the allowable sleep states. You can also use a script to automate the process, such as the one provided in the Unraid forum post.

Written by
Reviewed by
Share this post
Print
Did this article help you?

Leave a comment