Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

How do I find my monitor type and model?

by markseger (Beadle)
on Jul 07, 2010 at 16:04 UTC ( #848497=perlquestion: print w/ replies, xml ) Need Help??
markseger has asked for the wisdom of the Perl Monks concerning the following question:

OK, let's try again. I don't want to run system-config-display because it's not on my system, which is redhat. The reason I mention it is the fact this script can get to the data that says I'm using an HP LP2465 monitor, for example, must be available somewhere and I'd just like to know how to find that same information via perl. Does that clarify? -mark

Comment on How do I find my monitor type and model?
Re: How do I find my monitor type and model?
by Corion (Pope) on Jul 07, 2010 at 16:07 UTC
    my @information = `system-config-display`; print "Info: $_" for @information;

    Other than that, it's kinda hard to help you further, because you don't give us much to work with.

    If you tell us what operating system, what desktop environment and potentially what information you actually need, maybe we can help you further.

Re: How do I find my monitor type and model?
by Fletch (Chancellor) on Jul 07, 2010 at 16:39 UTC
    print "Look at the front of your monitor and enter the type and model +number:\n"; my $type_and_model = <STDIN>;

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: How do I find my monitor type and model?
by ahmad (Hermit) on Jul 07, 2010 at 16:39 UTC

    The way you wrote your question makes me think you've updated your original post, Please do not delete the old content ... just add a new section & call it update.

    You may be able to get your monitor configuration by parsing xorg.conf file (Most of the times you'll find it in /etc/X11/xorg.conf ).

      sorry about overriding original request, which asked how to get the terminal type/model. When I look at display/hardware settings via the desktop GUI, I clearly see HP LP2465 but if a do a recursive grep of everything in /etc/X11 there's nothing to be found so the data is obviously being pulled from somewhere else. -mark
        I think I've found at least an alternative mechanism. When Xorg runs, it logs this info to /var/log/Xorg.X.log where X is the display number. Perhaps the next step is to look t the source and see how it gets the info it's reporting

        See and especially the links at the end of

        Without DDC, you can not identify the monitor. This happens for ancient monitors, and for monitor cables that do not connect the required pins. On my desktops at home and at work, the CRT monitors are connected via five BNC jacks, just RGB and H-Sync/V-Sync, no DDC pins. No software running on the PCs can identify the monitors.

        How much information you get from the monitor depends on the DDC version implemented by the monitor.

        And as a last detail, the graphics card has to be able to talk DDC with the monitor. Ancient VGAs can't do that.


        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://848497]
Approved by ahmad
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-08-22 04:31 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (146 votes), past polls