User:Markg85/Suspend and resume guide

From ArchWiki

Suspend

TO BE FILLED IN

Resume

TO BE FILLED IN

How do i wake on lan, keyboard, mouse etc?

First you need to open your favorite console. Now type:

cat /proc/acpi/wakeup

which should result in some list like this:

Device	S-state	  Status   Sysfs node
P0P2	  S4	 disabled  pci:0000:00:01.0
P0P1	  S4	 disabled  pci:0000:00:1e.0
UAR1	  S4	 disabled  pnp:00:0a
PS2K	  S4	 disabled  pnp:00:0c
EUSB	  S4	 disabled  pci:0000:00:1d.7
USBE	  S4	 disabled  pci:0000:00:1a.7
P0P5	  S4	 disabled  
P0P6	  S4	 disabled  
P0P7	  S4	 disabled  
P0P8	  S4	 disabled  pci:0000:00:1c.4
P0P9	  S4	 disabled  pci:0000:00:1c.5
USB0	  S4	 disabled  pci:0000:00:1d.0
USB1	  S4	 disabled  pci:0000:00:1d.1
USB2	  S4	 disabled  pci:0000:00:1d.2
USB3	  S4	 disabled  
USB4	  S4	 disabled  pci:0000:00:1a.0
USB5	  S4	 disabled  pci:0000:00:1a.1
USB6	  S4	 disabled  pci:0000:00:1a.2
P0P4	  S4	 disabled  pci:0000:00:1c.0

Now to explain a few of those "Device" names: USB# is one of your USB ports. All the USB# together should be all the USB ports you have on your pc. PS2k is the PS2 Keyboard port.

I don't know the rest.

Lets say you have a connected USB keyboard and you want be able to wake your pc up by for example pressing the space bar on your keyboard. To do this you need to have one of those USB#. I haven't figured out yet how i can trace one of those back to the actual connected device so i have done this in my case:

echo USB0 > /proc/acpi/wakeup
echo USB1 > /proc/acpi/wakeup
echo USB2 > /proc/acpi/wakeup
echo USB3 > /proc/acpi/wakeup
echo USB4 > /proc/acpi/wakeup
echo USB5 > /proc/acpi/wakeup
echo USB6 > /proc/acpi/wakeup

If you run the following line again:

cat /proc/acpi/wakeup

you should see some enabled tags like so:

Device	S-state	  Status   Sysfs node
P0P2	  S4	 disabled  pci:0000:00:01.0
P0P1	  S4	 disabled  pci:0000:00:1e.0
UAR1	  S4	 disabled  pnp:00:0a
PS2K	  S4	 disabled  pnp:00:0c
EUSB	  S4	 disabled  pci:0000:00:1d.7
USBE	  S4	 disabled  pci:0000:00:1a.7
P0P5	  S4	 disabled  
P0P6	  S4	 disabled  
P0P7	  S4	 disabled  
P0P8	  S4	 disabled  pci:0000:00:1c.4
P0P9	  S4	 disabled  pci:0000:00:1c.5
USB0	  S4	 enabled   pci:0000:00:1d.0
USB1	  S4	 enabled   pci:0000:00:1d.1
USB2	  S4	 enabled   pci:0000:00:1d.2
USB3	  S4	 enabled   
USB4	  S4	 enabled   pci:0000:00:1a.0
USB5	  S4	 enabled   pci:0000:00:1a.1
USB6	  S4	 enabled   pci:0000:00:1a.2
P0P4	  S4	 disabled  pci:0000:00:1c.0

And that did it for me. When my pc is in suspension mode i can just press space bar to get it back. Because i enabled all the USB ports to wake me up from suspension (or hibernation) a added side effect is that any connected usb device with buttons can now wake my pc up. My mouse for example.