Multiple rotated monitors on NVidia under X

May 2010


I've got two HP monitors, an LP2065 and and L1940T, both of which are connected to a single NVidia card. Both can also be rotated, but one turns only left, while the other turns only right. So if I use one virtual screen and rotate it, one will be displaying correctly, the other upside down. I found good documentation on TwinView on gentoo-wiki and on xrandr at ThinkWiki, but decided against it, and instead did this:

  1. sudo rm -rf /etc/X11/xorg.conf

  2. sudo apt-get install nvidia-glx nvidia-kernel-2.6-amd64 nvidia-kernel-2.6.26-2-amd64 nvidia-kernel-common nvidia-settings nvidia-xconfig

  3. sudo nvidia-xconfig

  4. startx


  5.     sudo nvidia-settings
      

    ... and enable both screens, putting one left of the other

  6. In /etc/X11/xorg.conf, put a line

      Option "Rotate" "left"
    	  

    in the monitor section of one monitor, and

      Option "Rotate" "right"
    	  

    in the monitor section of the other.

  7. Restart the X server