How to know if the hdmi monitor is off or on trough terminal

Everything about X, Gnome, KDE, ... and everything running on it

How to know if the hdmi monitor is off or on trough terminal

Postby matteoraggi » 2017-05-27 12:12

How to know if the hdmi monitor is off or on trough terminal commands?
matteoraggi
 
Posts: 1
Joined: 2016-12-07 00:48

Re: How to know if the hdmi monitor is off or on trough term

Postby phenest » 2017-05-27 15:13

NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How to know if the hdmi monitor is off or on trough term

Postby dasein » 2017-05-27 16:52

I don't have HDMI, so I can't vouch that this will work, but
Code: Select all
xset -q |grep Monitor
is certainly worth a try.
User avatar
dasein
 
Posts: 7514
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to know if the hdmi monitor is off or on trough term

Postby reinob » 2017-05-27 19:03

with xrandr:

Code: Select all
$ xrandr | grep HDMI
HDMI1 disconnected (normal left inverted right x axis y axis)
reinob
 
Posts: 495
Joined: 2014-06-30 11:42


Return to Desktop & Multimedia

Who is online

Users browsing this forum: rick71, VentGrey and 5 guests

fashionable