My co-sysadmin Dana Jansens eventually figured this one out. The file /proc/acpi/wakeup contains a list of hardware devices that are allowed to wake the computer. It looks like this:
morin@laplace:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
VBTN S4 *enabled
PCI0 S5 disabled no-bus:pci0000:00
PCI2 S5 disabled pci:0000:00:02.0
PCI3 S5 disabled pci:0000:01:00.0
PCIF S5 disabled pci:0000:02:00.0
PCI5 S5 disabled pci:0000:01:00.3
PCI6 S5 disabled pci:0000:00:03.0
PCI7 S5 disabled pci:0000:00:04.0
PCI8 S5 enabled pci:0000:00:1c.0
PCI9 S5 disabled pci:0000:00:1e.0
KBD S3 disabled pnp:00:06
USB0 S3 disabled pci:0000:00:1d.0
USB1 S3 disabled pci:0000:00:1d.1
USB2 S3 disabled pci:0000:00:1d.2
USB3 S3 disabled pci:0000:00:1d.3
Notice that PCI8 is enabled. PCI8 is the PCI bridge to which the network adapter in this machine is attached. You enable this device to wake the machine with the command
echo PCI8 > /proc/acpi/wakeup
.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
. It may take some trial and error, though.As a bonus, you can turn on resume from suspend from any of the other devices. For example the keyboard (KBD, above) or the mouse (USB0 above).
No comments:
Post a Comment