detection of unplugged cable

O

Oguz Yarimtepe

Hi,

I am tring to develeop a gui with pyqt. I need to detect whether the
the cable to vga, dmi or s-video outputs are plugged or unplugged.
After detection i need to run a process. How can i do this?
 
D

Diez B. Roggisch

Oguz said:
Hi,

I am tring to develeop a gui with pyqt. I need to detect whether the
the cable to vga, dmi or s-video outputs are plugged or unplugged.
After detection i need to run a process. How can i do this?


Not with python as is. This is OS-specific, and you should see what your
OS supports regarding DDC support & how much of that is exposed to the user.

And it might not be to reliable. You are not *forced* to use a DDC monitor.

Diez
 
O

Oguz Yarimtepe

Ok here is the exact problem. I have both S-Video, HDMI and VGA out at
my machine. I tried to clone the LCD display to HDMI out but it worked
only when i disable the LCD and send the display to HDMI. So when the
HDMI cable is unplugged i want to revert the process and enable the
LCD. I need to detect this signal or whatever it is.

I tried with xrandr by thinking that when i used the --output LMDS
--off i will see "LMDS disconnect" at the output but it was not true.
So i should find a better way. Any idea?

I am using Ubuntu Hardy with an Intel VGA card.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top