Waking Your Pc From Sleep Mode Using Plex

how to wake pc up from sleep with plex

Plex is a server application that can be set up to allow Wake On Lan (WoL) to remotely wake a PC from sleep. This can be achieved by using a separate device with the Wake-on-LAN feature to power up the server, or by using a program such as Plex DVR Waker, which is a command-line tool that integrates with the Windows Task Scheduler to wake up the computer before the next scheduled recording. Additionally, some routers can send a WoL/magic packet to wake up the PC via an Android app.

Characteristics and Values Table

Characteristics Values
Remotely wake PC Use Wake-on-LAN (WoL) or Wake on Lan
Wake PC from another room Use Wake-on-LAN
Remotely wake Windows 10 PC Use Plex Remote Server and Wake-on-LAN
Remotely wake PC and put it to sleep Use Plex and Wake-on-LAN
Remotely wake PC and put it to sleep after a period of inactivity Use Plex and Wake-on-LAN
Remotely wake PC and put it to sleep after 20 minutes of inactivity Use Plex and Wake-on-LAN
Remotely wake PC and put it to sleep after 30 minutes of inactivity Use Plex and Wake-on-LAN
Remotely wake PC for scheduled recordings Use Plex DVR Waker, a command-line tool
Remotely wake PC for scheduled recordings and maintenance Use Plex DVR Waker, a command-line tool
Remotely wake PC for scheduled recordings and maintenance with a custom time Use Plex DVR Waker, a command-line tool with --offset=SECONDS option
Remotely wake PC with a device on the same network Use another device on the network to send a WoL/magic packet
Remotely wake PC with a router on the same network Use a router on the same network to send a WoL/magic packet
Remotely wake PC with an Android app Use an Android app to send a WoL/magic packet
Remotely wake PC with a Mikrotik router Use a Mikrotik router to send a WoL/magic packet
Remotely wake PC with Bonjour Sleep Proxy Use Bonjour Sleep Proxy to advertise the server to the network when the server is asleep

shunsleep

Using Wake-on-LAN

Plex can be set up to allow Wake-on-LAN (WoL) to remotely wake your PC and then let it sleep after a period of inactivity. This can be done by setting up WoL on your PC and using another device on the same network to send a WoL/magic packet to your PC.

To set up WoL on your PC, you need to enable it in your BIOS/motherboard settings. You can then use a mobile app or another device on your network, such as a router, to send a WoL/magic packet to your PC, which will wake it up.

It is important to note that Plex does not have a built-in WoL module to send magic packets. However, you can use webhooks to trigger a script that sends a magic packet if you are technically inclined. Alternatively, you can use tools like Bonjour Sleep Proxy, which advertise your server to the network even when it is asleep.

Once WoL is set up, you can configure your Plex server to work with Wake-on-LAN. This includes ensuring Plex remote access is working smoothly and configuring remote access, sleeping patterns, and update timers. You can then test if your setup is working by using a phone or tablet with 3/4G enabled and wifi disabled to attempt to wake your PC.

With Wake-on-LAN and Plex configured correctly, your PC will be able to automatically wake from sleep when someone uses the Plex app, providing a seamless experience for local and remote users.

shunsleep

Plex DVR Waker

The Plex DVR Waker tool works by creating a Windows Task Scheduler task that can sync with and/or monitor the Plex library database. It then schedules a task to wake up the computer before the next scheduled recording. The wake-up task can be set to wake up the computer from sleep a specified number of seconds (default 15 seconds) before the next scheduled recording time or Plex maintenance time.

To use Plex DVR Waker, you need to have a compatible tuner and antenna connected to your Plex Media Server to tune over-the-air broadcasts. Additionally, the ability to record broadcasts (DVR) is a premium feature that requires an active Plex Pass subscription.

It is worth noting that Plex can also be set up to allow Wake-on-LAN (WoL) to remotely wake a PC and then let it sleep after a period of inactivity. This can be done through the Plex Remote Server and requires setting up remote access.

shunsleep

Bonjour Sleep Proxy

Apple's Bonjour Sleep Proxy service is an open-source component of zero-configuration networking. It is designed to reduce the power consumption of networked electronic devices. The service allows a device providing services, such as file sharing, printer sharing, or remote log-in, to enter a low-power mode while its services remain available. This is achieved by registering with a sleep proxy server on the local network.

The sleep proxy server advertises the services on the local network on behalf of the sleep host and listens for incoming connections. When any device attempts to use any proxied service, the proxy server wakes the sleeping device, and the service works as if the sleeping device had remained fully powered. For example, a host supporting the sleep proxy service, which offers file services, may go to sleep as needed. When someone needs to access shared files, the host will wake up automatically.

Any device that can act as a sleep proxy server advertises this on all LANs of which it is a part. Computers running Mac OS X Snow Leopard act as Bonjour sleep proxy servers when Internet sharing is enabled. The service uses the Wake on Demand feature, first offered in Mac OS X Snow Leopard. When a sleep proxy service accepts a request to proxy, it takes over the IP addresses of proxied servers by announcing this through the Address Resolution Protocol (ARP) and Neighbor Discovery Protocol (NDP).

To reduce unnecessary wake-ups, the Sleep Proxy will wake a sleeping machine only when the proxy sees an incoming IP UDP packet or incoming IP TCP connection request for a Bonjour-advertised service on the sleeping machine.

shunsleep

Remote access

Plex can be set up to allow Wake On LAN to remotely wake a PC and then let it sleep. This can be done by following the steps outlined in a guide on the Plex Forums. The guide provides detailed instructions on how to configure a Windows 10 PC and Plex Media Server to sleep properly and also covers how to address issues related to remote access and Windows sleeping patterns.

To enable remote wake-up of a PC using Plex, it is recommended to have Plex remote access functioning smoothly. This ensures that the setup works effectively. It is suggested to use a phone or another device with 3G or 4G enabled and wifi disabled to test if the PC wakes up after configuration. Alternatively, a Plex remote user friend can attempt to connect and load the server via their Plex app.

Additionally, having a NIC (Network Interface Card) set up is considered beneficial for remote wake-up functionality. When someone tries to select the server, the Plex website checks the availability, and the NIC detects inbound traffic, triggering the server to wake up.

It is worth noting that some users have reported issues with the Wake on LAN feature, especially after Windows updates. In such cases, it is advised to check network settings and ensure that the magic packet is enabled to wake the computer.

shunsleep

Windows Task Scheduler

Plex Media Server for Windows requires the ".NET Core Runtime" installer. The setting for "Allow wake timers" must be "Enabled" for the computer to respond to the Windows Task Scheduler's wakeup calls.

For Windows 10/11, this can be found under "Settings > System > Power & sleep > Additional power settings > Change plan settings > Change advanced power settings > Sleep > Allow wake timers". For Windows 7/8/10/11, this can be found under "Control Panel > System and Security > Power Options > Change plan settings > Change advanced power settings > Sleep > Allow wake timers".

Plex DVR Waker is a command-line tool that can be used to wake up a computer from sleep. It works by creating a Windows Task Scheduler task that can sync with and/or monitor the Plex library database and then schedule another task to wake up the computer before the next scheduled recording. The wakeup task will wake up the computer from sleep the specified number of seconds (default 15 seconds, use the --offset=SECONDS option to adjust) before the next scheduled recording time or Plex maintenance time.

You can add/run this task manually, but typically you would let either the sync or monitor task create/update the wakeup task for you. The sync task will poll the Plex library database at a specified interval (default every 15 minutes) and create/update the wakeup task for you automatically. This is a nice lightweight solution, however, it could theoretically miss something if, for example, you schedule a recording to start in fewer than 15 minutes and then immediately put your computer to sleep.

Frequently asked questions

You can use Wake-on-LAN to remotely wake your PC. You can also use Plex DVR Waker, a simple command-line tool for waking the computer before the next scheduled recording.

You can set up Wake-on-LAN by enabling "Allow wake timers" in your Windows Power Plan/Profile settings. You can also use a separate device that can use the "wake on lan" feature to power up the server and set up scheduled tasks on the device.

You can use Bonjour Sleep Proxy, which allows a supported device on your network that operates in low power mode to advertise your server to the network even when your server is asleep. When your Plex client tries to connect to the server, the proxy sends a "wake up" packet.

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

Leave a comment