theme-sticky-logo-alt

Rotate your monitor!

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)[tatica@susan ~]$ 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)

[tatica@tuxita ~]$ 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 0mmThe 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)

[tatica@tuxita ~]$ 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).

[tatica@susan ~]$ 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!

Previous Post
The Cheese is upside down!
Next Post
Goodbye my lover – eos_movrec power!

4 Comments

  • 14 June, 2012 at 11:21
    John McHugh

    arghaaaaa… potential vvs addict :D

    Reply
  • 14 June, 2012 at 1:04
    ref

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

    Reply
  • 14 June, 2012 at 0:53
    ref

    # 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 (mockbuild@) 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

    Reply
  • 13 June, 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 .

    Reply

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://tatica.org/en 300 0