I’m using a wireless Logitech Keyboard with a Logitech Unifying Receiver plugged into a KVM switch. I created a systemd suspend shortcut to suspend the laptop, a Lenovo IdeaPad. The laptop’s lid is always closed. I’m unable to wake the Lenovo from suspend unless I lift the laptop’s lid. Once the lid is lifted, the laptop wakes. I want to be able to wake the laptop without having to lift the lid. I’m not sure how to do this.
I tried two things, neither worked. First, I enabled the wakeup file for the Logitech Unifying Receiver (proc/acpi/wakeup). It did indeed wake the laptop when I used the keyboard. The problem was that the laptop woke within about five minutes without any input from me. No activity from the keyboard or anything else. Second, I tried the fix described at How do I get a wireless USB keyboard to to wake Ubuntu 13.10 from suspend?
Same problem as the first — the laptop wakes at unpredictable times, seemingly on its own.
When I look at devices using lsinput, I can see the Logitech keyboard. It’s given the physical address usb-0000:00:14.0-3.1.1:1. When I look at proc/acpi/wakeup, I see pci:0000:00:14.0. There is no 3.1.1 extension. If I look at /sys/bus/usb/devices/1-3.1.1, I see it’s the Logitech Unifying Receiver.
How do I put all this together to wake with keyboard input, but to suppress other wake events?