![]() For example the keyboard (KBD, above) or the mouse (USB0 above). It may take some trial and error, though.Īs a bonus, you can turn on resume from suspend from any of the other devices. How did Dana know that PCI8 was the right thing to enable? You can use dmesg and lspci to view your PCI devices to look for something plausible and then match what you find with the right column of /proc/acpi/wakeup. You enable this device to wake the machine with the command echo PCI8 > /proc/acpi/wakeup. PCI8 is the PCI bridge to which the network adapter in this machine is attached. The file /proc/acpi/wakeup contains a list of hardware devices that are allowed to wake the computer. This workaround works fine for me and now I am able to wake up the T21 from suspend over LAN. If it is nor working try sudo pci-config -B 0 -5 -S sudo pci-config -B 0 -5 -W before sending the machine to suspend. My co-sysadmin Dana Jansens eventually figured this one out. sudo pm-suspend and try to wake up your T21 with Wake On Lan from a different machine. The bios settings were correct, and sending a magic packet would wake a machine that was turned off, but it wouldn't wake it up from the S3 (suspend) state. Notice the “Info” which says “Info: don’t support pm_turn_off yet.I struggled for quite a while to get wakeonlan to work in the lab. PM: noirq suspend of devices complete after 7.256 msecsĮven though the CPUs are up, the system remains in frozen state and the tasks are not restarted. PM: late suspend of devices complete after 0.699 msecs PM: suspend of devices complete after 83.021 msecs Wake on UART worked perfectly.įor wake on lan, please see the terminal output below (after sending the magic packet): ethtool -s eth0 wol echo enabled > echo mem>/sys/power/state ata1: SATA link down (SStatus 0 SControl 300) PM: resume of devices complete after 179.727 msecs PM: early resume of devices complete after 0.547 msecs PM: noirq resume of devices complete after 0.494 msecs On my system, this is /usr/sbin/pm-suspend. First, get the full path: which pm-suspend. Machine B) on LAN, first install the wakeonlan utility (on Machine B). Here is it pm-suspend, use poweroff to turn off the computer. Suppose A’s MAC address is 11:aa:22:bb:33:cc and the hostname is machine-a, and you want to wake it up from other machines (e.g. The target station address is 0:14:2d:4b:16:3. On the target, we need to let the hass user execute the program needed to suspend/shut down the target computer. Sending magic-packet using ‘etherwake’: $ sudo etherwake -i enp12s0 -D 00:14:2D:4B:16:03 PM: noirq suspend of devices complete after 0.838 msecs PM: late suspend of devices complete after 0.638 msecs PM: suspend of devices complete after 158.399 msecs To enable the eth0 as wakeup source: # echo enabled > /sys/class/net/eth0/power/wakeup a/arch/arm/boot/dts/im圆qdl-apalis.dtsiĪlso by default in userspace the wake-on-lan is disabled, to enable the wake-on-lan run: # ethtool -s eth0 wol g You can try enabling wake-on-lan support, changes required to enable wake-on-lan: diff -git a/arch/arm/boot/dts/im圆qdl-apalis.dtsi b/arch/arm/boot/dts/im圆qdl-apalis.dtsi ![]() Have a look at the device tree bindings documentation here. I am using the wakeonlan utility from Ubuntu host to send the magic packet to the eval board.īy default wake-on-lan is not enabled, one will need to enable it in device tree. ![]() To enable wakeup via UART port: # echo enabled > /sys/class/tty/ttymxc0/power/wakeupĪlso, I was not able to find any info on how to configure the ethernet to detect a wake-on-lan (magic packet) signal. Have a look at this article for information on available tty ports on Apalis iMX6. Please note that the article you are refering to is not applicable for Apalis iMX6. However, I was not able to configure the UART for wake up as the following path does not exist in the rootfs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |