I am running Ubuntu 16.04 64-bit and have an NVIDIA GeForce 940M graphics card (proprietary NVIDIA drivers are installed for this). I have an external monitor that I want to rotate Counter-Clockwise (I doubt it matters, but specifically this is the Oculus Rift whose screen I am trying to rotate). It works correctly with most games/programs that I run on it, but everything i sideways because I can't rotate the display.
When I tried to do it from the command line by running xrandr --output HDMI-1 --rotate left
, I get the output: xrandr: output HDMI-1 cannot use rotation "left" reflection "none"
. The same is evident when I go to the display settings app, when I click the "rotation" drop-down, the only option is "Normal". I, of course, did a bit of research before posting this, but from what I could tell by trying xrandr
again after making the changes, it didn't work. My xorg.conf file looks like this (generated from NVIDIA X server settings app):
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0@0:2:0"
Option "AccelMethod" "None"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1@0:0:0"
Option "RandRRotation" "on"
Option "ConstrainCursor" "off"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "RandRRotation" "True"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
EndSection
The additions I made were Option "RandRRotation" "True"
and Option "RandRRotation" "on"
. I feel like I'm missing something, but I'm not very good with X11, especially with display configuration files like xorg.conf
. Is there something more I could do, something I am missing from all of this?