Friday, August 7, 2009

Rotate just one monitor with Ubuntu/Nvidia

8 comments:

  1. Just FYI, while this does indeed work, at the moment the fancy Compiz desktop effects won't work with Xinerama enabled until Nvidia comes out with new drivers to support this.
    http://ubuntuforums.org/showthread.php?t=803314

    However, eventually we may see a workaround produced by the efforts of the posters on this thread, which is still active to this day:
    http://newyork.ubuntuforums.org/showthread.php?t=884161

    ReplyDelete
  2. Great!

    I want to setup the same configuration. You blog helped a lot.

    Thanks

    ReplyDelete
  3. We restarted X using "sudo /etc/init.d/gdm restart" and because we wanted the second monitor inverted, we used "inverted" as the "Rotate" option.

    The x server didn't reset properly the second time, so we hard reset the machine, and when it booted - nvidia logo - login screen, rotated bliss.

    After changing the configuration file we can no longer use the nvidia config gui tool, but command line ftw.

    Thanks for your page

    ReplyDelete
  4. Excellent, this worked. To calculate the offset if you want your monitors in a horizontal T-shape, just use (longest dimension of the vertical screen minus shortest dimension of the horizontal screen) / 2. For example, for two 1920x1200 screens, it's (1920-1200)/2 = 360 pixels offset for the horizontal screen.

    ReplyDelete
  5. Oh man, this used to work for me, but apparently I installed an update of Xorg and now it doesn't work. :-( Second monitor does not want to rotate. I do hope I can figure out a solution...

    ReplyDelete
  6. (Disregard my previous post from a few minutes ago.) It seems that the new version of the Nvidia driver still supports rotating a second screen, but you have to use a different syntax. For me, the following line did the trick:

    Option "metamodes" "CRT: nvidia-auto-select { Rotation=left } +0+0"

    This is in fact a small alteration of one of the "Screen" sections in the xorg.conf file generated by nvidia-settings.

    If anyone happens to have any other problems, be sure to look at the Nvidia readme file. On Ubuntu 11.10 oneiric, this file might be located at /usr/share/doc/nvidia-current/README.txt. Enjoy!

    ReplyDelete
  7. i, too, got nvidia rotation to work with the beta nvidia driver ("installer version: 304.22").

    my line is:
    Option "MetaModes" "DFP-0: nvidia-auto-select, DFP-1: nvidia-auto-select { Rotation=left }"

    full screen glxgears runs at 60fps on both screens (locked to vsync).

    ReplyDelete
  8. Gnome 3 and the aforementioned line

    Option "MetaModes" "DFP-0: nvidia-auto-select, DFP-1: nvidia-auto-select { Rotation=left }"

    works for me too:) no Xinerama and seperate Xscreens necessary!

    ReplyDelete