Kodi Community Forum
Wake up from remote, then start XBMC? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Wake up from remote, then start XBMC? (/showthread.php?tid=129827)



Wake up from remote, then start XBMC? - NickSoapdish - 2012-04-24

I'm thinking of trying out XBMCbuntu, I'm currently using OpenELEC on an ASRock Ion 330Pro and having a few hiccups that I can't seem to overcome. I had previously been running Win 7 on this computer, but ran into some problems with a driver update that inspired me to give something else a try. I'm new to Linux and am wondering if I can recreate this sequence for waking/sleeping the computer.

When using Win7, I had EventGhost set up so that when the PC woke up (when I pressed the power button on my remote) XBMC would launch after a 5 second delay. This worked well for two reasons, it prevented the issue of stuttering video in XBMC resulting from Windows being put to sleep and woken up, and it also updated the library each time XBMC started. I think somewhere in the EventGhost event, XBMC was being shutdown right before the PC went to sleep.

Could I set up a similar chain of events using XBMCbuntu?

done watching TV so press power to put computer to sleep -> XBMC exits.
want to watch something so press power button on remote -> computer wakes up -> XBMC launches a few seconds later and library is updated.

I will be using a Harmony remote with the set up. Thanks for any help.



RE: Wake up from remote, then start XBMC? - digitalb0y - 2012-04-24

The thing is that XBMC doesn't exit when you suspend or hibernate the system. This is intentional behavior, because it speeds up boot time. If you don't want to suspend the active XBMC session, you have the option of doing a full shutdown, and you don't need an EventGhost equivalent at startup because when XBMCbuntu boots, it launches everything necessary for XBMC to run and then goes directly into XBMC instead of a desktop environment. No delay needed. Using shutdown instead of suspend would also trigger your library updates if you have them set to run at XBMC startup.

The problem is going to be that very few motherboards support wake on USB device from a completely powered off state, so in most cases you can't use an IR remote to boot an XBMCbuntu box from a complete shutdown. What I do is use 'suspend' as my shutdown command in the power saving options, so that I can wake it up with my remote, and then use the Library Auto Updater add-on to keep my library up-to-date. If your motherboard/BIOS supports it, you can also use Wake On LAN to start from a complete shutdown. It's a little more widely supported, and there are lots of ways to make use of it (etherwake in an ssh session from another Linux box, a WOL dashboard widget from a Mac, the Power button on the XBMC Remote Android app, etc.).

But in general, if I need to turn on/off my XBMCbuntu system with an IR remote, I use suspend (much quicker than a full shutdown/boot), and on the rare occasions when I need to restart XBMC, I use the reboot option in the shutdown menu or ssh to it and use 'killall -9 xbmc.bin'





RE: Wake up from remote, then start XBMC? - NickSoapdish - 2012-04-24

Thanks digitalb0y, this is very helpful. I think I'll be giving XBMCbuntu a try, hopefully this weekend. How long does it take to install?


RE: Wake up from remote, then start XBMC? - digitalb0y - 2012-04-24

I think it took about 20 minutes on my Zbox if I remember correctly.