My laptop cannot wake from sleep. I know this means that I need to enable some things in /proc/acpi/wakeup. But I have several problems. First, the entire content of the file is:
Device S-state Status Sysfs node
There is nothing for me to enable.
In case it's important, I'm using Kubuntu 20.04.
So first, I need to figure out how to refer to some devices that I can use to wake up my computer. The power button, the lid, the keyboard, the touchpad, whatever. I can use commands like lsinput or lsdev, but I'm not sure what information is what. What should go in the Device column? The S-state? etc.
Once I have that sorted out, I need to make my modifications to the wakeup file permanent. I know that the file gets reset each session, so I need to write a script that runs on startup to modify the wakeup file. There are related questions on stackexchange, but they mostly deal with A) non-empty wakeup files and B) usb devices, so I haven't figured out how to go about modifying the wakeup file in the proper way.
I realize that there are some adjacent questions on this site, but I haven't been able to piece together a solution.
Here's the output for lsdev:
Device DMA IRQ I/O Ports
0 ACPI:Event 0
2 ACPI:Event 0
7 ELAN1206:00 13
0000:03:00.0 0000-0000
14 ACPI:Event 14
22 ACPI EC 22
44 ACPI:Event 44
58 ACPI:Event 58
59 ACPI:Event 59
61 ACPI:Event 61
ACPI 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
ahci[0000:04:00.0] 36
AMD-Vi 0
amdgpu 45
AMDI0010:01 2
cascade 4
ccp-1 47
dma 0000-0000
dma1 0000-0000
dma2 0000-0000
EC 0000-0000 0000-0000
fpu 0000-0000
i8042 4
iwlwifi 49
keyboard 0000-0000 0000-0000
nvme0q0 34
nvme0q1 37
nvme0q2 38
nvme0q3 39
nvme0q4 40
nvme0q5 41
nvme0q6 42
nvme0q7 43
PCI 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
PCIe PME 11 12
PCIe PME, aerdrv 0 10
pic1 0000-0000
pic2 0000-0000
piix4_smbus 0000-0000 0000-0000
pinctrl_amd 1
pnp 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
PNP0800:00 0000-0000
PNP0C09:00 0000-0000 0000-0000
rtc0 0000-0000
snd_hda_intel:card0 51
snd_hda_intel:card1 52
timer0 0000-0000
timer1 0000-0000
xhci_hcd 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32
And here's the output for lsinput:
/dev/input/event0
bustype : BUS_HOST
vendor : 0x0
product : 0x5
version : 0
name : "Lid Switch"
phys : "PNP0C0D/button/input0"
bits ev : (null) (null)
/dev/input/event1
bustype : BUS_HOST
vendor : 0x0
product : 0x1
version : 0
name : "Power Button"
phys : "PNP0C0C/button/input0"
bits ev : (null) (null)
/dev/input/event2
bustype : BUS_I8042
vendor : 0x1
product : 0x1
version : 43907
name : "AT Translated Set 2 keyboard"
phys : "isa0060/serio0/input0"
bits ev : (null) (null) (null) (null) (null)
/dev/input/event3
bustype : BUS_HOST
vendor : 0x0
product : 0x6
version : 0
name : "Video Bus"
phys : "LNXVIDEO/video/input0"
bits ev : (null) (null)
/dev/input/event4
bustype : BUS_USB
vendor : 0x13d3
product : 0x56cb
version : 6498
name : "USB2.0 HD IR UVC WebCam: USB2.0"
phys : "usb-0000:03:00.4-2/button"
bits ev : (null) (null)
/dev/input/event5
bustype : BUS_USB
vendor : 0x13d3
product : 0x56cb
version : 6498
name : "USB2.0 HD IR UVC WebCam: USB2.0"
phys : "usb-0000:03:00.4-2/button"
bits ev : (null) (null)
/dev/input/event6
bustype : BUS_HOST
vendor : 0x0
product : 0x0
version : 0
name : "Asus WMI hotkeys"
phys : "asus-nb-wmi/input0"
bits ev : (null) (null) (null) (null)
/dev/input/event7
bustype : BUS_I2C
vendor : 0x4f3
product : 0x30f1
version : 256
name : "ELAN1206:00 04F3:30F1 Mouse"
phys : "i2c-ELAN1206:00"
uniq : ""
bits ev : (null) (null) (null) (null)
/dev/input/event8
bustype : BUS_I2C
vendor : 0x4f3
product : 0x30f1
version : 256
name : "ELAN1206:00 04F3:30F1 Touchpad"
phys : "i2c-ELAN1206:00"
uniq : ""
bits ev : (null) (null) (null) (null)
/dev/input/event9
bustype : (null)
vendor : 0x0
product : 0x0
version : 0
name : "HD-Audio Generic HDMI/DP,pcm=3"
phys : "ALSA"
bits ev : (null) (null)
/dev/input/event10
bustype : (null)
vendor : 0x0
product : 0x0
version : 0
name : "HD-Audio Generic Headset Mic"
phys : "ALSA"
bits ev : (null) (null)
/dev/input/event11
bustype : (null)
vendor : 0x0
product : 0x0
version : 0
name : "HD-Audio Generic Headphone"
phys : "ALSA"
bits ev : (null) (null)