How do I list connected displays using the command line?
Solution 1:
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.
Solution 2:
For most machines with the proprietary driver loaded, /usr/lib/nvidia-current/bin/nvidia-xconfig --query-gpu-info --nvidia-cfg-path=/usr/lib/nvidia-current
works. Note that I said "with the proprietary driver loaded". For instance, it does not work if the driver is unloaded or nouveau is loaded. Therefore, when using Bumblebee, run optirun /usr/lib/nvidia-current/bin/nvidia-xconfig --query-gpu-info
. The --nvidia-cfg-path
part is not needed here as optirun
sets the correct library path.
See also the discussion on https://github.com/Bumblebee-Project/Bumblebee/issues/21
/var/log/Xorg.0.log
(where 0 is the display number) may also contain valuable information about available screens. For Optimus laptops, this log contains only details on the Intel screen, so replace 0
by 8
to find out the log from the X server started by Bumblebee.