Score:1

Execute script after returning from power saving black screen

kz flag

I've a issue with my external monitor losing the signal in Ubuntu 20.04. It doesn't happen using Windows 10.

I found a workaround here thanks to @user10489 So, I configured Ubuntu to execute xset dpms force off; xset dpms force on when pressing CTRL + ALT + R.

But I'd like to execute it automatically after returning from power saving black screen, just by moving the mouse or pressing any key.

Is there any way to handle this event, and add this behaviour using Ubuntu 20.04?

nobody avatar
gh flag
Hm, not sure maybe a user systemd.service can handle this.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.