• Skip to primary navigation
  • Skip to main content
  • Skip to footer

tatica.org

ps ax | grep tuxilandia

  • Main
  • Blog
  • Categories
    • General
    • Linux
    • Gimp100Podcast
    • Design
    • Photography
    • HowTo
    • Fedora
    • Ubuntu
    • Events
  • Store
  • Who?
  • English
  • Español

Rotate your monitor!

13 June, 2012 by tatica 4 Comments

And yes, I’m kind of crazy… thing is that, when you have 2 screens you start playing a lot with them, and when you have 3, is paradise! I have 22″ screen attach to my 12″ laptop and a second 22″ screen plug to my desktop computer, so obviously I wanted to give it a try to that Vertical view that so many people use. Sad part is that both of my screens doesn’t have a base to rotate fisically the screen, so this was more like a test to check how to do it. First of all, you might want to check if your video-card can handle the rotation (and even so, it’s possible that resolution will drop down a bit with rotation). To check if your screen can be rotated you only need to run a xrandr.

If your screen CAN be rotated, the output will be something like this:(I’m only taking the first couple of lines)

[[email protected] ~]$ xrandr
Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 8192 x 8192
LVDS1 connected 1280×800+1920+0 (normal left inverted right x axis y axis) 261mm x 163mm
…
VGA1 connected 1920×1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
…
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

If you screen CAN’T be rotated, output will be like this instead (I’m only taking the first couple of lines again)

[[email protected] ~]$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1920 x 1080, maximum 1920 x 1080
default connected 1920×1080+0+0 0mm x 0mm

The easy way, and most of the computers who allow the rotation has it, is to go directly to your System Settings (either through your name-label on top of your Gnome3 Panel or through properties menu), select the option Displays (or whatever where you change the resolution) and below the Resolution option you will see the Rotation option listed.

If you can’t see this option, but you have the right flags in the xrandr output, then you can use it with a couple of options to rotate it. There are quite some options, however, you can check them all with a simple man xrandr.

If you have a single screen and you want to rotate it, write: (you can change right/left/ or use numbers 0/1/2/3)

[[email protected] ~]$ xrandr -o right

If you have 2 screens you need to define which one are you rotating, in my case, I would like to rotate the VGA1 (1920×1080).

[[email protected] ~]$ xrandr –output VGA1 –rotate right

So that’s it, I hope you can find this useful and why not… send me some screenshoots :D


Help tatica and donate with paypal!

Social:

  • Email
  • Facebook
  • Reddit
  • Twitter

Filed Under: Fedora, General, HowTo, Linux, Ubuntu Tagged With: fedora17, rotate monitor, rotate screen, vertical, xrandr

Reader Interactions

Comments

  1. John McHugh says

    Thursday June 14th, 2012 at 11:21

    arghaaaaa… potential vvs addict :D

  2. ref says

    Thursday June 14th, 2012 at 1:04

    Section “Monitor”
    Identifier “Monitor1?
    VendorName “Unknown”
    ModelName “HP LP2475w”
    HorizSync 30.0 – 94.0
    VertRefresh 48.0 – 85.0
    Option “Rotate” “left” <— this
    EndSection

  3. ref says

    Thursday June 14th, 2012 at 0:53

    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 295.40 ([email protected]) Thu Apr 12 13:40:22 CEST 2012

    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 295.40 ([email protected]) Thu Apr 12 13:28:25 CEST 2012
    # RPM Fusion – nvidia-xorg.conf
    #

    Section “ServerLayout”

    # Removed Option “Xinerama” “0”
    Identifier “Default Layout”
    Screen 0 “Screen0” 0 120
    Screen 1 “Screen1” 3840 0
    Screen 2 “Screen2” 1920 120
    InputDevice “Keyboard0” “CoreKeyboard”
    InputDevice “Mouse0” “CorePointer”
    Option “Xinerama” “1”
    EndSection

    Section “InputDevice”
    Identifier “Keyboard0”
    Driver “keyboard”
    Option “XkbLayout” “us,ru”
    Option “XkbModel” “pc105+inet”
    Option “XkbOptions” “grp:ctrl_shift_toggle,grp_led:scroll”

    EndSection

    Section “InputDevice”

    # generated from default
    Identifier “Mouse0”
    Driver “mouse”
    Option “Protocol” “auto”
    Option “Device” “/dev/input/mice”
    Option “Emulate3Buttons” “no”
    Option “ZAxisMapping” “4 5”
    EndSection

    Section “Monitor”
    Identifier “Monitor0”
    VendorName “Unknown”
    ModelName “HP ZR22w”
    HorizSync 24.0 – 94.0
    VertRefresh 50.0 – 76.0
    Option “DPMS”
    EndSection

    Section “Monitor”
    Identifier “Monitor1”
    VendorName “Unknown”
    ModelName “HP LP2475w”
    HorizSync 30.0 – 94.0
    VertRefresh 48.0 – 85.0
    Option “Rotate” “left”
    EndSection

    Section “Monitor”
    Identifier “Monitor2”
    VendorName “Unknown”
    ModelName “HP ZR22w”
    HorizSync 24.0 – 94.0
    VertRefresh 50.0 – 76.0
    EndSection

    Section “Device”
    Identifier “Videocard0”
    Driver “nvidia”
    EndSection

    Section “Device”
    Identifier “Device0”
    Driver “nvidia”
    VendorName “NVIDIA Corporation”
    BoardName “Quadro FX 3800”
    BusID “PCI:15:0:0”
    Screen 0
    EndSection

    Section “Device”
    Identifier “Device1”
    Driver “nvidia”
    VendorName “NVIDIA Corporation”
    BoardName “Quadro FX 3800”
    BusID “PCI:15:0:0”
    Screen 1
    EndSection

    Section “Device”
    Identifier “Device2”
    Driver “nvidia”
    VendorName “NVIDIA Corporation”
    BoardName “Quadro FX 3700”
    BusID “PCI:66:0:0”
    EndSection

    Section “Screen”
    Identifier “Default Screen”
    Device “Videocard0”
    Monitor “Monitor0”
    SubSection “Display”
    Modes “nvidia-auto-select”
    EndSubSection
    EndSection

    Section “Screen”
    Identifier “Screen0”
    Device “Device0”
    Monitor “Monitor0”
    DefaultDepth 24
    Option “TwinView” “0”
    Option “TwinViewXineramaInfoOrder” “DFP-0”
    Option “metamodes” “DFP-0: nvidia-auto-select +0+0”
    SubSection “Display”
    Depth 24
    EndSubSection
    EndSection

    Section “Screen”
    Identifier “Screen1”
    Device “Device1”
    Monitor “Monitor1”
    DefaultDepth 24
    Option “TwinView” “0”
    Option “TwinViewXineramaInfoOrder” “DFP-1”
    Option “metamodes” “DFP-1: nvidia-auto-select +0+0”
    SubSection “Display”
    Depth 24
    EndSubSection
    EndSection

    Section “Screen”
    Identifier “Screen2”
    Device “Device2”
    Monitor “Monitor2”
    DefaultDepth 24
    Option “TwinView” “0”
    Option “TwinViewXineramaInfoOrder” “DFP-0”
    Option “metamodes” “nvidia-auto-select +0+0”
    SubSection “Display”
    Depth 24
    EndSubSection
    EndSection

    Section “Extensions”
    Option “Composite” “Disable”
    EndSection

  4. Adam Williamson says

    Wednesday June 13th, 2012 at 16:30

    Couple of notes:

    If you set anything in the GNOME Display preferences – rotation, multiple monitor layout, resolution, color depth – it’ll be remembered and re-used in future, but only for your user, within GNOME. It won’t apply to other desktops, other users, or at GDM time.

    If you want to ‘permanently’ rotate the display, for all users and all X sessions, you can use an xorg config snippet. I have a file called /etc/X11/xorg.conf.d/99-screens.conf with these contents:

    Section “Device”
    Identifier “nouveau”
    Driver “nouveau”
    Option “Monitor-DVI-I-1” “Right Monitor”
    Option “Monitor-DVI-I-2” “Left Monitor”
    EndSection

    Section “Monitor”
    Identifier “Left Monitor”
    Option “Primary” “True”
    Option “Rotate” “left”
    EndSection

    Section “Monitor”
    Identifier “Right Monitor”
    Option “RightOf” “Left Monitor”
    Option “Rotate” “left”
    EndSection

    That lays out and rotates both my two monitors.

    You can also pass a kernel parameter to rotate the console:

    fbcon=rotate:3

    depending on which way you rotated your monitor, it might be 1 instead of 3. (2 is upside down).

    My setup is at http://www.happyassassin.net/extras/desk4.jpg .

Leave a Reply Cancel reply

Footer

Free college writing tips for students and teachers.
Internationalvaquero.com - online writing help for students.

About Tatica

I’m a full-time designer, photographer and community people. I love to analyze how this interactive world works. I’m not a programmer, however that’s how I started. I have been in the field since 2005 and have been loving every minute of it.
I love to learn and teach what I know about FLOSS and I enjoy meeting new friends from all around the world.
  • Subscribe
  • Privacy
  • Contact
COPYRIGHT © TATICA 2021
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.