You are not logged in.

#1 2023-12-22 18:02:39

MS1
Member
Registered: 2018-02-02
Posts: 95

Shut off HDMI monitor from tty without any DE

I have an Arch without any DE connected to a monitor and want to know how to turn on and off the signal to it to make it go to sleep. Everything I find from google is needing xrandr or setterm or xset. None of them work due to not finding a display. Is this possible?

$ xset dpms force standby
xset:  unable to open display ""

$ DISPLAY=:0.0 xset dpms force standby
xset:  unable to open display ":0.0"

Offline

#2 2023-12-22 18:23:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: Shut off HDMI monitor from tty without any DE

setterm certainly doesn't require an X display or anything related to xorg.  Though I also am not sure it would meet your needs.

Do you have a /sys/class/cec directory?

Last edited by Trilby (2023-12-22 18:28:23)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB