Wake from suspend on power or external monitor plugged in

by g3blv   Last Updated May 02, 2018 18:02 PM

I have a HP Spectre x360 running Ubuntu 16.04 with Gnome 3. Suspend works fine but I would like to have the computer to wake up from suspend either when the external power cable is connected or when an external monitor is connected. Is this possible? I can't find any of these setting in Gnome Tweaks or in Settings

Related Questions

how to hide top bar in Ubuntu 18.04

Updated April 29, 2018 22:02 PM

Error when turning on user-themes extension

Updated March 15, 2017 16:02 PM

Why is Shell theme disabled in Gnome Tweak Tool?

Updated July 10, 2017 16:02 PM

Set a different icon pack for gnome shell

Updated May 17, 2018 16:02 PM