Turn off HDMI output with command line

Philnye's Avatar Topic Author
User User
  • Posts: 9
  • Thanks: 0

Turn off HDMI output with command line

1 year 3 weeks ago - 1 year 2 weeks ago
#4425
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: 1 year 2 weeks ago by Philnye.

Please Log in or Create an account to join the conversation.

aa6vh's Avatar
User User
  • Posts: 111
  • Thanks: 7

Re: Turn off HDMI output with command line

1 year 3 weeks ago
#4426
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 or Create an account to join the conversation.

Philnye's Avatar Topic Author
User User
  • Posts: 9
  • Thanks: 0

Re: Turn off HDMI output with command line

1 year 2 weeks ago
#4427
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 or Create an account to join the conversation.

Time to create page: 0.251 seconds