Score:0

Monitor Standby Script on 23.04 - ASROCK N100

co flag

I'm using a N100 as home server. The server has two Displays attached to function as general purpouse information display. My goal is to turn it off if noone is present. I'm currently looking into methods to send both displays to standby, however i did not succeed.

My approach was to find and test commands over remote ssh.

First i looked into cec, however it seems not to be working with Ubuntu. (same issue below) Why ubuntu doesn't support HDMI CEC?

Then I looked into xset, however that does not work as well.

export DISPLAY=":0" // or export DISPLAY="0"
sudo xset dpms off
Authorization required, but no authorization protocol specified
xset:  unable to open display ":0"

I could not figure out how to fix permissions :/

I also tried xrandr with similar issues

sudo xrandr -display :0 --output DP1 --off
Authorization required, but no authorization protocol specified

Can't open display :0

I also tested the commands locally on the machine without success.

I'm using the default configuratation for X (no custom xorg.conf) so i guess display 0 should work.

I'm guessing this could be a permission issue but I have no clue on how to give permission to the respective tools.

Anny help / hints on how to fix this much appreciated.

Score:0
co flag

Disable Wayland in /etc/gdm/custom.conf

Now DPMS can be used to manage monitor power state like

xset -display :0  dpms force off

xset -display :0  dpms force on
I sit in a Tesla and translated this thread with Ai:

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.