LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 07-19-2010, 06:10 PM   #1
BorrajaX
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Get model of monitors plugged to the computer


Hello everyone!

I am currently developing an small program in Python and at a certain point, I need to do some “stuff” depending on the monitors that are connected to the computer. I have an intel vga card with two outputs. I want to do “something” if one of the screens connected to the output is a “Dell”, another “something” if one of the monitors is a “Nec” and another “something” if both monitors are connected.

So the question is: Is there any way to get the vendor/model of the monitors currently connected to the computer?

I did a little bit testing. I plugged both screens to my vga card (the Nec to the HDMI output and the Dell to the DVI output), and the gnome-display-properties tool properly detected the model, size, resolution... of both screens connected. I would like to know if I can use a command on bash (or a library in python) to get the same information.

The /var/log/Xorg.0.log also shows properly:

(II) intel(0): EDID vendor "NEC", prod id 26345
(II) intel(0): I2C device "HDMIDDC_C:E-EDID segment register" registered at address 0x60.
(II) intel(0): I2C device "HDMIDDC_C:ddc2" registered at address 0xA0.
(II) intel(0): EDID vendor "DEL", prod id 41027

I could always parse that file, but it is not the best solution...

I also tried the ddprobe command, but for some reason, it only detects one of the screens (the Dell, connected to a DVI cable)

I am currently using Ubuntu 9.04 and Python2.4 (just in case it's relevant)

Thank you very much in advance!
 
Old 07-20-2010, 12:26 PM   #2
BorrajaX
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Re: Get model of monitors plugged to the computer

I am going to reply to myself...

The command xrandr seems to work fine and provides me the EDID of the screens

 
  


Reply

Tags
model, monitor, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lost computer login password for computer model d250-1958, S.O.S.teenager Linux - Newbie 5 01-05-2010 08:55 PM
Resolution issue with older of two same model monitors Odyssey1942 Linux - Newbie 7 08-19-2008 01:41 AM
High-pitch noises coming from computer when different USB peripherals are plugged in monstermunch Linux - Hardware 4 07-03-2008 04:09 PM
Can ear buds, plugged in computer, shock you with electricity? General Linux - Hardware 1 03-29-2007 06:13 AM
Computer crashes when network plugged/unplugged qscomputing Linux - General 1 05-01-2006 02:20 AM


All times are GMT -5. The time now is 01:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration