turn hdmi port off

Post Reply
Indranil Sarkar
Posts: 43
Joined: Tue Apr 24, 2018 1:14 pm
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 1 time
Contact:

turn hdmi port off

Unread post by Indranil Sarkar » Mon Aug 26, 2019 7:52 pm

in Systemd target (graphical) -
xrandr --output HDMI-1 --off is turning off the hdmi and the monitor is showing no signal detected, its working perfectly

in target(multi-user) -
xrandr --output HDMI-1 --off is showing cantopen display, which is no suprise , given xserver is not running.

I want to ask that is there any method via sys or anything else to turn off the hdmi output in systemd target (multi-user)?
These users thanked the author Indranil Sarkar for the post:
wcairns (Tue Aug 27, 2019 1:03 am)

joy
Posts: 878
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 10 times
Been thanked: 46 times
Contact:

Re: turn hdmi port off

Unread post by joy » Tue Aug 27, 2019 10:17 am

Indranil Sarkar wrote:
Mon Aug 26, 2019 7:52 pm
in target(multi-user) -
xrandr --output HDMI-1 --off is showing cantopen display, which is no suprise , given xserver is not running.

I want to ask that is there any method via sys or anything else to turn off the hdmi output in systemd target (multi-user)?
Hi Indranil Sarkar,
I use the following method to control display using xrandr via serial console.

First, log in with user id "odroid"

Code: Select all

$ xrandr
Can't open display 

$ export DISPLAY=:0

$ xrandr
Screen 0: minimum 320 x 200, current 320 x 200, maximum 4096 x 4096
HDMI-1 connected primary
   1920x1080     60.00    50.00  
   1920x1080i    60.00    50.00  
.....
.....

$ xrandr --output HDMI-1 --off

(then, my hdmi monitor turns off)
I tried to find another solution using sysfs nodes on XU4 but so far, I couldn't find it. :(

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 0 guests