Artificial intelligent assistant

How do I hibernate my PC when I press the power button Is there any way to make my PC hibernate when I press the power button? Obviously when I press this button somewhere some signal is sent. Can it be intercepted to enable my PC to hibernate?

You probably (could) use `acpid` (check via `ps aux | grep acpid`). Then have a look at this article in the ArchWiki explaining how to use `pm-utils` to extend `acpid` to easily achieve whatever effect you'd like when some hardware button is pressed.

If, however, you use GNOME, there other (also GUI) ways, see this comprehensive thread on `askubuntu.com`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy d6bbdd810ce0f670203f4b6f6687233e