LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2012, 08:07 AM   #1
natrix
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Detect if a connected HDMI monitor is displaying content


Hi,
I'm working on a system where video output errors should be reported .
The scenarios I'm thinking of are:
1- how to detect a monitor turn off.
2- how to detect if a monitor is reading content from my HDMI input port and not another port.

any ideas about that ?

my software will be Linux based.
 
Old 11-27-2012, 08:31 AM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You may want to look at the command xrandr. From its output, you can grep for your particular device (e.g. HDMI1, VGA1, etc). If that device does not appear in the output, well then it is not connected.
 
Old 11-27-2012, 08:38 AM   #3
natrix
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dwhitney67 View Post
You may want to look at the command xrandr. From its output, you can grep for your particular device (e.g. HDMI1, VGA1, etc). If that device does not appear in the output, well then it is not connected.
This is a simple way to do it. that doesn't work in all cases.
For example if the device has multi input sources and it is set to anything rather than my HDMI output it will not display my video.
I'm looking for something related to HDMI spec
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] displaying content on the current terminal abhinav4 Linux - Newbie 3 09-11-2012 05:55 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
Connected my Revo using HDMI and no sound john999 Linux - Newbie 1 05-06-2012 02:26 PM
Detect connected (or turned on) monitor stringZ Linux - Software 3 05-07-2009 09:30 PM
eMachine, Fedora 3, Windows Content not displaying woofburgerjr Linux - Newbie 1 04-10-2005 05:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration