Turn off HDMI output with command line

More
11 months 1 week ago - 11 months 4 days ago #4425 by Philnye
I did a quick forum search and couldn't find any threads on disabling the HDMI output from the myServer 6 Pi device not permanently.  I would like to either have a timeout to disable the HDMI output after some amount of unused time or commands to temporarily turn off and then back on the HDMI output.  I have the HDMI out connected to the secondary input on a shared HDMI monitor to manage/access the myServer console when needed but since the HDMI out is always turned on, my monitor cannot go to sleep and instead stays on all the time with the myServer video input.  The issue is that my monitor input selection button is on the back of the monitor (unfortunate) and to get back to my primary video signal, I have to get behind the monitor every time.  I'd like to use either a command line or script command to turn on or off the output (preferably without having to reboot the Pi every time).

Can xWindows commands work with the Allonis setup?

xrandr --display :0 --output HDMI-1 --off

or using xset with the flavor of Pi in myServer?

xset s blank / xset s noblank (enables/disables screen video out blanking)
or
xset s on / xset s off (turns on/off xserver screen saver)
or
xset dpms / xset -dpms (enables/disables display power management)

Thanks for any feedback or suggestions on this,

Phil Kosarek 
philnye
 
Last edit: 11 months 4 days ago by Philnye.

Please Log in to join the conversation.

More
11 months 6 days ago #4426 by aa6vh
Replied by aa6vh on topic Turn off HDMI output with command line
I don't have a direct answer to your question, but I solved it for me by using a KVM HDMI switch between the Pi and my Windows computer. The switch also switches the keyboard and mouse. I generally leave the switch connected to the Windows system, so no worry about having the monitor go to sleep.
The following user(s) said Thank You: Philnye

Please Log in to join the conversation.

More
11 months 4 days ago #4427 by Philnye
Replied by Philnye on topic Turn off HDMI output with command line
Thanks for the suggestion, using a KVM is not a bad idea if I can't figure out an alternate way to make it work.  I was also thinking I could also put any HDMI switch between the myServer Pi and the display as well and switch to a dead input when not needed as another option.  This I could script or command line as a simple AV switch action as well.

Thanks again,
Phil
 

Please Log in to join the conversation.

Time to create page: 0.165 seconds