Ubuntu – Display monitor info via command line

monitor

Is there a way to query monitor information from command line? For example, get monitor model, similar to e.g. what lspci does for graphic card info, or whether it's currently on or off, things like that.

If possible, what kinds of basic information such as the above can be easily gathered? For example, is it possible to determine if monitor is in portrait or landscape position? Or if it has built-in speakers or not?

Command line is the preference, but if there's a GUI method, I'd like to hear about it, too.

Best Answer

  • $ grep "NVIDIA(GPU-0)" /var/log/Xorg.0.log |head -17| cut -d\: -f2
     Display (Samsung SA300/SA350 (DFP-0)) does not support NVIDIA
         3D Vision stereo.
     The EDID for Samsung SA300/SA350 (DFP-0) contradicts itself
         mode "1920x1080" is specified in the EDID; however, the
         EDID's valid VertRefresh range (56.000-75.000 Hz) would
         exclude this mode's VertRefresh (50.0 Hz); ignoring
         VertRefresh check for mode "1920x1080".
     The EDID for Samsung SA300/SA350 (DFP-0) contradicts itself
         mode "1280x720" is specified in the EDID; however, the
         EDID's valid VertRefresh range (56.000-75.000 Hz) would
         exclude this mode's VertRefresh (50.0 Hz); ignoring
         VertRefresh check for mode "1280x720".
     The EDID for Samsung SA300/SA350 (DFP-0) contradicts itself
         mode "720x576" is specified in the EDID; however, the
         EDID's valid VertRefresh range (56.000-75.000 Hz) would
         exclude this mode's VertRefresh (50.0 Hz); ignoring
         VertRefresh check for mode "720x576".