Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I call the xrandr command? I want to rotate my screen 90 deg. clockwise. Here is the usage:

% xrandr -help
usage: xrandr [options]
  where options are:
  -display <display> or -d <display>
  -o <normal,inverted,left,right,0,1,2,3>
            or --orientation <normal,inverted,left,right,0,1,2,3>
  -q        or --query
  -s <size>/<width>x<height> or --size <size>/<width>x<height>
  -r <rate> or --rate <rate> or --refresh <rate>
  -v        or --version
  -x        (reflect in x)
  -y        (reflect in y)
  --screen <screen>
  --prop or --properties
  --fb <width>x<height>
  --fbmm <width>x<height>
  --dpi <dpi>/<output>
  --output <output>
      --mode <mode>
      --pos <x>x<y>
      --rate <rate> or --refresh <rate>
      --reflect normal,x,y,xy
      --rotate normal,inverted,left,right
      --left-of <output>
      --right-of <output>
      --above <output>
      --below <output>
      --same-as <output>
      --set <property> <value>
      --crtc <crtc>
  --newmode <name> <clock MHz>
            <hdisp> <hsync-start> <hsync-end> <htotal>
            <vdisp> <vsync-start> <vsync-end> <vtotal>
            [+HSync] [-HSync] [+VSync] [-VSync]
  --rmmode <name>
  --addmode <output> <name>
  --delmode <output> <name>

This is what I tried:

% xrandr -o left
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  159 (RANDR)
  Minor opcode of failed request:  2 ()
  Serial number of failed request:  16
  Current serial number in output stream:  16

I am running Solaris 10.

Also tried a few variations of:

xrandr --output --rotate left

Although I am unsure of what the difference is between this and the orientation shown above.

share|improve this question
up vote 2 down vote accepted

You do it the way you tried but the error message means your X driver doesn't support rotating the screen or that it is disabled.

Try adding

Option         "RandRRotation" "True"

in the Screen section of your xorg.conf file.

share|improve this answer
Where can I find that file? I looked in /usr/x11 (where the command is). Any ideas? – sixtyfootersdude Mar 19 '10 at 13:39
If you haven't that file, create it. Modern Xorg do not need an xorg.conf file to run as defaults values are used. The way to do it might depend on the driver used but you do not tell it. – jlliagre Mar 21 '10 at 21:57
Where should I create it? – sixtyfootersdude Mar 22 '10 at 13:36
Usually in /etc/X11/xorg.conf, although here are several other documented places where the Xorg server looks for its configuration file. The tool you use might already know it. Why don't you tell what driver you use ?? – jlliagre Mar 22 '10 at 14:32
Or that the X server doesn't support it, as Solaris 10 includes both Xsun (no randr support) and Xorg (has randr support if the driver supports it), as well as other X servers being available including Xnewt (Sun Ray), Xvfb, Xvnc, and Xephyr - some with randr, some without. – alanc Aug 5 '12 at 16:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.