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.

How to put Unraid to sleep with a remote command from Windows?

Featured Replies

I'm already using a bat file for powering down and it works fine. It has the following code:

plink.exe  -ssh  -pw  yourpassword  root@yourIP  powerdown

How to do the same to send a suspend/sleep command?

 

Windows 10 and Unraid 6.6.2

  • Author

Bump

  • Author

Surprised by the silence in this forum with so knowledgeable people. Although I've already searched about this around the internet and couldn't find any clear info. Perhaps it is just not possible (yet)?

Try this one instead of the "powerdown"

echo -n mem > /sys/power/state

If it's not working, use it to search this forum and you'll find a couple of answers.

  • Author
2 hours ago, Fireball3 said:

Try this one instead of the "powerdown"


echo -n mem > /sys/power/state

If it's not working, use it to search this forum and you'll find a couple of answers.

Yes it's working when I type in a local terminal but how to send it through a batch file from Windows? I tried with plink and it doesn't work, but maybe the syntax is incorrect:

plink.exe  -ssh  -pw  yourpassword  root@yourIP  echo -n mem > /sys/power/state

Maybe something like

plink.exe  -ssh  -pw  yourpassword  root@yourIP  "echo -n mem > /sys/power/state"

You have to ensure that the whole expression is parsed.

 

Edit:

Another possibility is pasting the expression into a file, making it +x and calling the file with plink.

Edited by Fireball3

  • Author

Thanks it works, both ways.

Nice!
By the way, do you know the s3sleep plugin?

  • Author
11 hours ago, Fireball3 said:

Nice!
By the way, do you know the s3sleep plugin?

Yes I'm using it for automatic suspension after a specific amount of array inactivity. But I also like to be able to do it manually with a single double click. I don't like the fact that the root password is exposed like that in the Bat file (of course it's just in a home environment).

Edited by nid

On ‎10‎/‎24‎/‎2018 at 10:40 PM, nid said:

I don't like the fact that the root password is exposed like that in the Bat file (of course it's just in a home environment).

It is possible to work with public/private keys.

Of course, setting up is a bit of work. I'm sure there are also some how-to's in this forum.

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.