Wake from deep sleep (Ubuntu 21.04)

Is there a way to set up the laptop and/or Ubuntu 21.04 to support being able to wake from deep sleep on keyboard press or mouse movement?

I often keep the framework “docked” and use external monitors, and when it goes to sleep I have to pull it out of the dock to press the power button to wake it up and then put it back in “dock mode”.

Is there some way I can get it so that if I hit a keyboard button (external USB) it wakes up?

I don’t think this is possible, since “deep sleep” (I presume you mean hibernation?) turns off the computer, and most computers won’t react to USB devices while turned off.

I’m not sure that “deep sleep” is the same as hibernation. With other sleep types, that aren’t hibernation, does touching a key or moving a mouse work to “wake” it up?

1 Like

Yes, you’re right, I found out recently that deep sleep is different from hibernation!

According to this kernel documentation, I suspect that the set of devices that can wake up the system depends on your UEFI/BIOS in terms of what doesn’t lose power.

If you have it docked all the time, you might want to look into leaving certain USB devices powered will in standby. Obviously once mobile you would probably want to disable that again.

Not entirely sure how to do that on Linux, but if my plans to downsize my workstation to the Framework and eGPU work out, I’ll be interested in something like this also.

I wonder if having the keyboard/touchpad in “USB” mode rather than PS/2 mode would make a difference to whether they can wake the system from sleep or not.