linuxgtkx11gdkedid

Get screen vendor and serial number under Linux


I have an instance of Gdk::Screen which represents a monitor connected to my computer. How can I read that monitor's vendor ID and/or serial number?

Getting the Vendor ID and Serial Number from an XScreen would also suffice.

Reading the EDID of the Monitor would also suffice.

Any ideas? Thanks!


Solution

  • The EDID information usually is not passed on entirely by X11, but only those parts that matter for graphics renering, i.e. resolution, physical dimensions, stuff like that. It was possible to implement a X11 extension for this, but ATM there is no such one.

    So you'll have to query the EDID information otherwise. Doing it remotely is impossible, but for reading local machine information there are tools like read-edid. Also there may be graphics driver vendor specific extensions, to do this, for example NV-CONTROL of NVidia.