You are not logged in.
I have been struggling to get my laptop to resume from a suspended to RAM state by typing on my USB keyboard, or by doing anything but pushing the power button for that matter. I understand that this should be possible by using a command such as
echo USB0 > /proc/acpi/wakeupas described here, but doing so has no effect on the wakeup file. I thought maybe the problem had something to do with systemd, so I tried the suggestion regarding the wakeup file described here. Still no effect.
Does anybody know what the problem could be?
Offline
Are you sure you need to be activating USB0? I mean, did you dump the contents of 'wakeup' to see what options are specific to your system? Do you even know what port your keyboard is plugged in to?
Offline
Nope. I was wrong about that. USBx does not appear to apply to me because no entries of the sort exist in /proc/acpi/wakeup. Here are the contents of the file.
Device S-state Status Sysfs node
PB5 S4 *disabled pci:0000:00:05.0
OHC0 S3 *enabled pci:0000:00:12.0
OHC1 S3 *enabled pci:0000:00:12.1
P2P S5 *disabled pci:0000:00:14.4
LID S3 *enabledI followed the suggestions made here to do some investigating on the devices in wakeup. OHC0 and OHC1 look to represent my USB devices. Here's what dmesg has to say about them.
$ dmesg | grep 0000:00:12.0
[ 0.235235] pci 0000:00:12.0: [1002:4397] type 00 class 0x0c0310
[ 0.235235] pci 0000:00:12.0: reg 10: [mem 0xd0604000-0xd0604fff]
[ 0.557340] ohci_hcd 0000:00:12.0: OHCI Host Controller
[ 0.557353] ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 3
[ 0.557399] ohci_hcd 0000:00:12.0: irq 16, io mem 0xd0604000
$ dmesg | grep 0000:00:12.1
[ 0.235235] pci 0000:00:12.1: [1002:4398] type 00 class 0x0c0310
[ 0.235235] pci 0000:00:12.1: reg 10: [mem 0xd0605000-0xd0605fff]
[ 0.614555] ohci_hcd 0000:00:12.1: OHCI Host Controller
[ 0.614567] ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 4
[ 0.614597] ohci_hcd 0000:00:12.1: irq 16, io mem 0xd0605000So, I enabled them in the wakeup file, but it had no effect. Still can't wakeup the system from a USB devicee.
Last edited by zcal (2012-10-23 03:18:48)
Offline
I gave up on this for a while but have been revisiting it today. There still doesn't appear to be anything I can do with /proc/acpi/wakeup to get my laptop to resume from a USB keyboard. I did make a little progress by using pieces of this guide, though. I used the udev resume script shown on that page and configured a rule for my keyboard under /etc/udev/rules.d. However, now when I suspend the system it immediately wakes itself up again.
Offline