@adevhasnoname You probably could do it with an extension to repowerd, to write a new plugin that will wakeup the scren or shut it down. repowerd is the main arbiter when it comes to power-related events.