0

My Ubuntu 22.04 by default wakes from "Sleep" mode with any key or mouse move or click (both wired and wireless devices). I would prefer it to wake if only a key sequence was entered and not by accidental mouse movement or keypress.

It is a desktop with B550M Aorus Pro-P motherboard.

How could I do this?

EDIT: In this question, uglic's answer and the script written by Bart van Oort helped me disable waking via all my input devices but a single keyboard. The question remaining is how can I prevent turning on the PC by accidental key presses.

John
  • 723

1 Answers1

1

How to wake my Ubuntu from sleep with a keyboard key sequence (not a single key press)?

Impossible from within the operating system. Wake on Keyboard is done by hardware (motherboard, ACPI) so You are limited to what your BIOS offers. Check your BIOS for the possible options but it is likely 1 key (any key on the keyboard, or just the spacebar, or ESC (maybe that one is a option? it is more difficult to hit).

If not you need to find another solution. For instance: do not use suspend but hibernate. Hibernate needs the 'power on' button to wake up. Or put the keyboard at a location the cat can't get to it: there are desks where you put the keyboard under the desk and slide it in and out.

Rinzwind
  • 309,379