XBMCBuntu Wake-On-Lan not working from S3 Suspend - 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: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: XBMCBuntu Wake-On-Lan not working from S3 Suspend (/showthread.php?tid=192778) |
XBMCBuntu Wake-On-Lan not working from S3 Suspend - praet0ri4n - 2014-04-21 Hi all, long story short. I switched from a regular Ubuntu 12.04 to XBMCbuntu because.... Everything seems to work fine or even better. But I am struggling to get the Wake-on-Lan working together with Suspend to RAM (S3). WOL is working fine after shutdown (S5) and system gets back on after receiving magic packet. On Ubuntu 12.04 it is working with suspend flawlessly. All I have to do in Ubuntu 12.04 is: Code: echo SLAN > /proc/acpi/wakeup Code: ethtool -s eth0 wol g For some reason XMBCBuntu is already pre-equiped with ethtool and ethtool eth0 reports "g" without any further script of my own. As mentioned, if I do sudo poweroff, magic packet works. But it won't work after pm-suspend (LAN leds still blinking). I know how to set up WOL on Ubuntu but I don't know what is the difference in XBMCBuntu distro and why it won't work there. Is it managing suspending actions differently? Is it maybe some script overriding the ethtool wol setting? Do I have to unload network before suspend somehow? I have already tried all the suggested ways like adding STOP, WHITELIST, etc.. entries in Code: /etc/default/acpi-support Code: service network stop Code: ifconfig eth0 down Code: /usr/lib/pm-utils/... Here are the outputs: Code: iqon@iqon-MS-7387:~$ cat /proc/acpi/wakeup Code: iqon@iqon-MS-7387:~$ for i in /sys/bus/pci/devices/*/power/wakeup; do echo $i && cat $i; done Code: iqon@iqon-MS-7387:~$ cat /sys/class/net/eth0/device/power/wakeup Code: iqon@iqon-MS-7387:~$ uname -a Code: iqon@iqon-MS-7387:~$ sudo lshw -C network Code: iqon@iqon-MS-7387:~$ sudo ethtool eth0 Thanks alot! RE: XBMCBuntu Wake-On-Lan not working from S3 Suspend - praet0ri4n - 2014-04-22 ...just found another thread that could have to do with it. http://forum.xbmc.org/showthread.php?tid=159514 This led me to do a little research. I booted into my previous Ubuntu 12.04, istalled xbmc and tried the WOL functionality from Suspend: When calling Code: pm-suspend But when I suspend from XBMC with its build in XBMC.Suspend() command, it somehow disables and brings down the networking (i guess). Can this be worked around? This seems like a dead end RE: XBMCBuntu Wake-On-Lan not working from S3 Suspend - praet0ri4n - 2014-04-23 Maybe the questions should only be: What method does XBMC.Suspend() use to suspend the system? I think it is not "pm-suspend".. Can that function be overriden? Can I assign another command to this function? I think this would involve rewriting the source and compiling, which I am not a friend of What about using the XBMC.System.Exec together with the pm-suspend? I have come up with something like XBMC.System.Exec("sudo pm-suspend"), added my user to sudoers to not to prompt for password, but it is not suspending.. Can the bringing down of network be set up by some XBMC settings (GUI or console), or is it hardcoded? I just need to do ONLY pm-suspend, as with this command the WOL is working. Any respond is much appreciated! |