Ubuntu – How to list connected displays using the command line

command linedisplayhardwaremonitormultiple-monitors

Is there a command that will list displays connected to the computer?

Specifically, I'm looking to find out how my external monitor is being detected by the system when connected by HDMI cable and what it's (not sure of the correct term here) hardware address is (eg. "CRT-0" or "DFP-1").

This is just a general question, but for reference, I'm using:

  • Asus UL30JT laptop – running Ubuntu 12.04 beta and 11.10
  • Asus PA238 23" monitor
  • HDMI 1.4 cable
  • Optimus graphics (Intel + nVidia GeForce 310M) – running with Bumblebee

Best Answer

Try this:

xrandr --query

This lists the display names and detected available resolutions. You can also reconfigure your displays using xrandr.

Note that this might not work if you're using the NVidia or ATI drivers; I'm not sure.

Related Question