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.

unraid server to send WOL magic packet to sleeping xbmc

Featured Replies

spent the last 2 hours trying to figure how to do this.

 

I have my xbmc-live HTPC set up to go into an S3 sleep state and wake. I have tested using my remote to power off / on the HTPC. I have configured it to the best of my knowledge but when running this command via telnet on the unraid sever I get this back

 

wakeonlan mac:address:here
-bash: wakeonlan: command not found

 

my unRaid server is up 24/7 downloading "material"  so it never sleeps, however my HTPC is only on when its being used. there are times where I need to wake it to preform maintenance on it remotely. how/ what do I need to get the unRaid server to send this "magic packet" to my htpc?

 

most everything I have found in my searches in tales putting the unRaid server to sleep and waking via WOL but I want to do the opposite.

-=Jason=-

  • Author

at home now, I have my bios configured properly, and my HTPC is all set up ready to be woken up if only I knew how to do it exactly

 

 

-=Jason=-

  • Author

Joe. thanks thats exactly what I needed it worked like a charm.

 

now I need to make a lil script with my mac address in it because i'll forget it for sure.

 

-=Jason=-

Joe. thanks thats exactly what I needed it worked like a charm.

 

now I need to make a lil script with my mac address in it because i'll forget it for sure.

 

-=Jason=-

You will need to re-install it every time you reboot.  Glad it worked.
  • Author

yeah I have added it to my go script already ;)  im researching now how I might be able to do a simple script that would execute that one line

 

-=Jason=-

 

edit:

 

call it xbmc.sh

#!/bin/sh
etherwake 00:01:2e:2c:cd:7a
echo "waking up xbmc now..."
exit 0
;;

 

execute it like  ./xbmc.sh

 

 

EDIT:

ZOMG.... my simple script worked

spent the last 2 hours trying to figure how to do this.

 

I have my xbmc-live HTPC set up to go into an S3 sleep state and wake. I have tested using my remote to power off / on the HTPC. I have configured it to the best of my knowledge but when running this command via telnet on the unraid sever I get this back

 

Slightly off topic - have you got any links or your own notes on how to set this up? Power control via the remote would be very useful...

 

 

  • Author

Boof, I can give you a rough idea, because every motherboard is different as is the linux kernel which plays a big role in it all.

 

my HTPC setup is as follows.

Mobo:Zotac Ionitx-LE

OS:Xbmcfreak Beta3(tailor made for the ion mobos)

remote:Monster AVL300-S RF Remote Control

IR receiver:MCE IR Receiver

 

 

if you OS is ubuntu or xbmc-live this is how I did it.

 

1.go into bios and make sure you sleep state is S3

2.add your USB port that your IR dongle is in to your /proc/acpi/wakeup list  I used this guide here http://wiki.xbmc.org/index.php?title=Enable_Wake-On-Device

3.setup your harmony remote as MCE using the software.

4.configure Lirc... xbmcfreak already does this for you so for me it was just plug in play.

 

-=Jason=-

 

I was about to ask you for links to all the stuff you mentioned then noticed you'd embedded them :)

 

Several steps ahead - thanks very much.

 

I'm also running an ION board, with an MS IR receiver so pretty similar. I'm no where near that bleeding edge of XBMC release though (mostly for fear of losing library info during an upgrade) but this is all very interesting.

 

Thank you!

  • Author

you still running the camelot build?  ditch it asap as Darha beta2 is pretty rock solid I've yet to have any problems with beta3.

 

just back up you library and import it and you don't loose anything. well I guess you loose watched status, but even then I think there is a way to save that.

 

I use ember media manger so all my movies have artwork and nfo's in their folders so importing my collection takes no time at all since its not scraping from the interwebs.

 

-=Jason=-

Thanks for all the info in this thread!  I'm still running Camelot also, and I'm perfectly happy with it.  Still, I'll look into XBMCfreak and Dharma.

 

The only thing my HTPC has been lacking is the ability to power on via the remote (power off works fine).  Looks like the links you've posted above should help me tackle that issue!  Thanks!

  • Author

Raj, there is a script that you might need to get it to power back on as well I had to use it with Beta2, but then again I had my install so messed up. im glad to have wiped and done a fresh install to get all my bugs worked out.

 

here is that other link which might help you

http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_Wake

 

-=Jason=-

you still running the camelot build?   ditch it asap as Darha beta2 is pretty rock solid I've yet to have any problems with beta3.

 

Yes - I'm keen to upgrade as I would like to back things off onto mysql on unraid, avoid library issues in the future...

 

I was waiting for the final first. I'm also not sure about updating the beta to the final.

 

I've done this previously, updating with apt from the ppa repos but I have *always* had problems. So I told myself to only upgrade at major revisions then leave well be.

 

The HTPC is quite a 'visible' thing in the house so when it's not working it's very apparent and annoys people. I find the only time it stops working is when I'm tinkering trying to upgrade it...

 

Perhaps this says more about me than anything else :)

 

just back up you library and import it and you don't loose anything. well I guess you loose watched status, but even then I think there is a way to save that.

 

The watched status is *the* thing I don't want to lose. I will avoid upgrading entirely for as long as I can if there is no way to preserve it.

 

I'm not fussed about rescraping as it's just background time.

i obviously cant guarantee it....lol

 

but im in the middle of getting my unraid server up and xbmc also

 

I inquired about which version to start with right now and a developer replied with this

 

"dharma beta3 live should fit the bill. while camelot works fine and perhaps is marginally more stable, it's missing quite a lot of goodies. as a bonus, updating that to dharma final should be just a simple apt-get update (no reason to reinstall the entire system)."

 

I don't know if they are all meant to easily update or not because im just getting started but thats the response i got

  • Author

I can confirm that I went from dharma beta1 to dharma beta2 by  doing a

 

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get upgrade

 

and Bam I had beta2..

 

now I had the svn ppa installed to get it.

 

-=Jason=-

Yep as I've said before that's the theory - but it doesn't always works, at least on the older versions.

 

Especially if I'm looking to go from a significantly older version.

 

I'd be interested in a :

 

* *full* library dump

 

* existing library -> mysql conversion from dump

 

* fresh install of the new release once final

 

* integration with mysql and the recently imported library

 

..path.

 

Which to me sounds fairly standard but the impression I've had previously is that upgrading between xbmc versions and taking libraries and settings with you is pretty low priority. Maybe they've changed that with the new one...but I still need to get there from where I am.

Well I tried an upgrade, doing the best to preserve the library (and an export and reimport *did* carry over the watched flag) but as ever there are still a bunch of issues all of which lead to just re-doing the library from scratch.

 

I'm going to post on the xbmc forums as I presume (/hope) there is a better way of doing it but it's stayed true to form so far.

 

On the plus side the mysql backend bits work with no issue.

  • 2 weeks later...
  • Author

question.. I created this script in /root/ but when I rebooted the server the script was no longer there is /root not a good place to put this?

 

-=Jason=-

question.. I created this script in /root/ but when I rebooted the server the script was no longer there is /root not a good place to put this?

 

-=Jason=-

 

I think JoeL already answer this in another place but I will echo it here.

 

/root is in RAM and is recreated on every boot.  You need to save anything that you want to be persistent to the /boot directory.

  • Author

thanks I'll remember that for all future creations

 

-=Jason=-

  • Author

good idea, any way to fancy this script up and have it ping the HTPC to find out if it actually woke up. it always does, but it would be kinda cool to add that into the script.

 

-=Jason=-

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.