I have Ubuntu 16.04 on my Acer Aspire 7750G laptop connected to an external monitor with the built-in screen disabled. I also have an external keyboard and mouse connected to the laptop.
When I suspend the laptop with the laptop lid open I am able to wake the laptop by pressing the external keyboard.
However, if I suspend the laptop while the lid is closed, I am unable to wake it using the external keyboard. The same is true if I suspend the laptop with the lid open and then close the lid. The same is also true if I suspend the laptop with the lid open, close the lid, open the lid and try to wake it.
To summarize: I am unable to wake the laptop using the external keyboard if the lid has been close any time during hibernation. I am therefore unable to have my laptop lid constantly closed.
I’ve tried enabling all /sys/bus/usb/devices/usb*/power/wakeup
I’ve tried setting HandleLidSwitch=ignore in /etc/systemd/logind.conf
I’ve tried setting IgnoreLid=true in /etc/UPower/UPower.conf
How can I wake my laptop while the lid is closed?
This might be good to know. Even though I am unable to wake the laptop with the lid closed, something is happening when I press a key on the keyboard. If I, while suspended with the lid closed, press a key on the kayboard, the LEDs on the laptop flash once and I can hear the fans winding up. After about 0.5 sec it stops. If I press a key again, nothing happens. If I then open the lid and wake the laptop by pressing ESC on the built-in keyboard, I can see that there is a stored character in the password field on the login screen. This means that there actually is a connection to the keyboard and that the key press registers while the laptop is suspended with the lid closed, but it does not wake the laptop.