I want to gather the Edid information of the monitor. I can get it from the xorg.0.log file when I run X with the -logverbose option.

But the problem is that If I switch the monitor (unplug the current monitor and then plug-in another monitor), then there is no way to get this information.

Is there any way to get the EDID dynamically (at runtime)? Or any utility/tool which will inform me as soon as monitor is connected and disconnected?

I am using the LFS-6.4.

2 Answers 2


There is a tool called read-edid doing exactly what its name suggests.

  • yeah but it did not give it runtime. or to rephrase the Question "Is there any utility/tool to get the serial ID of monitor?"
    – SHW
    Feb 18, 2011 at 12:02
  • It seems to depend on the driver of the card and on the monitor itself ... I have found this discussion (the /sys investigation is the lowest you can get usually) and the Wikipedia entry about EDID is really interesting.
    – jon_d
    Feb 18, 2011 at 12:31
  • get-edid from read-edid couldn't read my EDID info (perhaps get-edid is outdated?), but as Fussy Salsify mentions, the info is also exposed through /sys. And edid-decode from the same package still works fine. I documented how to access and decode the info at superuser.com/a/628042/20768 Aug 5, 2013 at 11:26

Try xrandr --verbose. It shows the RAW edid information and lots of other useful information for all monitors connected to your computer.

Example output, with only the EDID section:

$ xrandr --verbose

With regards to your last question, udev can inform you and let you run commands when a monitor is connected. It's really easy to write bash scripts for udev events.

I'm not sure what you're trying to do here, but I find xrandr very useful for automatically setting the monitor layout that I want whenever I plug or unplug external monitors at work or at home. You don't need monitor serial for this. The simplified output name works fine. Run xrandr to see the outputs (monitors) available.

I run this script to set my preferred layout:

xrandr --output LVDS1 --auto
xrandr --output DP2 --auto --right-of LVDS1

LVDS1 being the name of the notebook monitor, DPS2 the external one.

  • @Yvus, The answer you are giving is the other face of what I told earlier ( Xorg --logverbose 6 ). And, as far as, UDEV is concerned, UDEV do not recognized the current status of monitor ( I checked it on Debian lenny ). If you have rules for the same, please share it. Thanks.
    – SHW
    Mar 21, 2011 at 6:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .