RobertF1 Posted January 14, 2019 Share Posted January 14, 2019 Can anyone suggest a command line command that would return the status of the connected HDMI monitor? Whether it is on standby or not or something that might help to determine if the display is active or not. I'm currently using Armbian Xenial on a H3 Orange Pi Zero Plus 2. Thanks Link to comment Share on other sites More sharing options...
Tido Posted January 14, 2019 Share Posted January 14, 2019 HDMI-CEC... and Google // sent from mobile phone // Link to comment Share on other sites More sharing options...
RobertF1 Posted January 14, 2019 Author Share Posted January 14, 2019 Thanks Tido, but I'm writing to the forum because CEC has proven too slow to return the status information mailny because it has to setup a CEC connection first that takes a few seconds. I am looking for a faster way to get the status of the monitor and was hoping for a non-cec method similar to the method availble to raspberry pi where one can query /sys/class/amhdmitx/amhdmitx0/hpd_state which equals 0 when the TV is off. Is there something similar that can be queried on a H3 device? Link to comment Share on other sites More sharing options...
RobertF1 Posted January 15, 2019 Author Share Posted January 15, 2019 Is there any command to query ANY info from the display? even if it's live resolution information, it might help to use that to determine status? I notice that there's h3disp but I assume this is just for setting configuration not for querying? Link to comment Share on other sites More sharing options...
ning Posted January 16, 2019 Share Posted January 16, 2019 try xrandr ? or if you know how to use libdrm, you can write your own cmd. Link to comment Share on other sites More sharing options...
ning Posted January 16, 2019 Share Posted January 16, 2019 or if display driver is using DRM, maybe /sys/class/drm/ could help you. if display driver is framebuffer, no much info from /sys/class/graphics/ Link to comment Share on other sites More sharing options...
Recommended Posts