Resoluciones y Monitores

xrandr

Drivers de Tarjetas Apoyado

El primer paso, es entra, xrandr, en un terminal para ver si es apoyado. Si no esta apoyado, vaya al sidxucc o revisa la versión de xorg y el driveren uso.

Para cambiar la resolución de la pantalla primario, asumiendo que la tarjeta lo apoya, por ejemplo:

xrandr --output VGA --mode 1440x900 
Si la tarjeta no lo apoya xrandr, pero desea otra resolución como defecto, tiene que modificar el xorg.conf para un cambio estatico.

En una consola, como raíz (root):

siduxcc

y sigue los instrucciones, o con el GUI:Kmenu>System>sidux Control Centre>Display

Si el X no reinicia automáticamente, reiniciar el X con los siguiente:

ctrl+alt+backspace

Monitores Dual y xrandr

Si esta a punto de editar archivos de configuración de xorg, por favor, Por Favor, POR FAVOR, haga un Respaldo de "xorg.conf", antes que hace cualquier otra cosa!

Una de los mayores ventajas del xorg 7.3 es el "hotplug" (cambio en caliente). Con el xrandr puede configurar su pantalla primario y secundario sin reinicar X. El xrandr reemplaza a "xinerama y mergedFB". Con xrandr 1.2 activado, la manera viejo de configuración en "xorg.conf" (xinerama y mergedFB) puede que no funciona más.

Drivers de Tarjetas Apoyado

Preparación para configuración de xrandr en un PC con Dualhead (dos monitores)

Nota: Idealmente, si siempre usa 2 monitores en un PC, su xorg.conf debe ser alterado permanentemente para reflejar ese modo.

Un laptop/notebook necesita ser configurado dinamicamente (al opuesto de un PC con 2 monitores) y cuando reinicias, necesita empezar de nuevo, a maneo que ha configurado una cabeza-dual con los parametros que necesita en xrandr, así, que copia/pegar eso en el script a ~/.kde/Autostart/.

Familiarizarse con el xrandr

El primer paso es entra xrandr en una consola, para familiarizarse con la salida:

xrandr
Screen 0: minimum 320 x 200, current 2048 x 768, maximum 2048 x 768
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0*+   75.1     70.1     60.0*    59.9
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        75.0     72.8     66.7     60.0
   720x400        70.1

Aquí, vea que solamente vga, para el PC (ver Apendice A para explicación de nombre de salida). Ver que las resoluciones apoyado por este pantalla y (lo que es importante para monitores-dual) el máximo resolución de pantalla (aquí: 1024x768).

Ahora, conecta el otra pantalla externa y ejecuta el xrandr de nuevo:

$ xrandr
Screen 0: minimum 320 x 200, current 2048 x 768, maximum 2048 x 768
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0*+   75.1     70.1     60.0*    59.9
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        75.0     72.8     66.7     60.0
   720x400        70.1
DVI-0 connected 1024x768+1024+0 (normal left inverted right x axis y axis) 310mm x 230mm
   1024x768_85.00   85.0*+
   1024x768       85.0 +   84.9     74.9     75.1     70.1     60.0     43.5
   832x624        74.6
   800x600        84.9     72.2     75.0     60.3     56.2
   640x480        84.6     75.0     72.8     66.7     60.0
   720x400        87.8     70.1
S-video disconnected (normal left inverted right x axis y axis)

Aqui vea que una pantalla DVI está conectada también, y que soporta resoluciones de 720x400 hasta 1024x768 a cierto tasas de renovación.

Escenarios de Configuración

Sintaxis Básica

xrandr --output <output> --rate <rate> --mode <mode> --left-of|--right-of|--above|--below|--same-as <output>

Donde:

Cambiar la resolución de la pantalla primario
xrandr --output VGA --mode 1024x768
Clonar

Mucho pantallas externos/proyectores de video no funciona con 1280x800, pero en 1024x768, utilizamos este por un ejemplo:

xrandr --output VGA --mode 1024x768 --output LVDS --mode 1024x768

Para apagar una pantalla secundario y volver a la resolución normal de la pantalla primario, solamente haga esto:

xrandr --output VGA --off --output LVDS --mode 1280x800
Escritorio de despliegue multiple

El Intel gma tiene como limitación una resolución de 2048x2048 para la pantalla virtual, no se puede poner ambos pantallas junto en alta resolución, aunque ambos en 1024x768 funciona bien:

xrandr --output LVDS --mode 1024x768 --output VGA --mode 1024x768 --left-of LVDS

Para desactivar multi-pantallas, solo desactivar la pantalla secundario y cambiar la resolución de la pantalla primario, si fuera necesario:

xrandr --output VGA --off (--output LVDS --mode 1280x800)

Otra opción es de ubicar la pantalla secundaria arriba o debajo la primary:

xrandr --output LVDS --mode 1280x800 --output VGA --mode 1280x1024 --above LVDS

La resulta es una resolución virtual de 1280x1824, lo cual es menor que 2048x2048. Otra solución puede ser de rotar la pantalla:

xrandr --verbose --output LVDS --mode 1280x800 --output VGA  --mode 1024x768 --rotate left --left-of LVDS

NOTA: Este solamente funciona si puede girar la pantalla fisica, también.

Ejemplo de un PC configurado permanentemente con monitores duales utilizando xrandr

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver    "kbd"
        Option    "CoreKeyboard"
        Option    "XkbRules"        "xorg"
        Option    "XkbModel"        "pc104"
        Option    "XkbLayout"       "us"
EndSection
 
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver    "mouse"
        Option    "CorePointer"
        Option    "Device"    "/dev/input/mice"
        Option    "Protocol"                "ImPS/2"
        Option    "Emulate3Buttons" "true"
EndSection
 
Section "Device"
        Identifier      "ATI Technologies Inc RV370 [Sapphire X550 Silent]"
        Driver    "ati"
        BusID      "PCI:1:0:0"
        Option    "monitor-VGA-0" "ACER AL512"
        Option    "monitor-DVI-0" "VIEWSONIC E70"
EndSection
 
Section "Monitor"
        Identifier      "ACER AL512"
EndSection
 
Section "Monitor"
        Identifier      "VIEWSONIC E70"
        Option    "RightOf" "ACER AL512"
        # 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
        Modeline "1024x768_85.00"  94.39  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync
        Option    "PreferredMode" "1024x768_85.00"
EndSection
 
Section "Screen"
        Identifier      "Default Screen"
        Device    "ATI Technologies Inc RV370 [Sapphire X550 Silent]"
        Monitor  "ACER AL512"
        DefaultDepth    24
        SubSection "Display"
                Virtual  2048 768
        EndSubSection
EndSection
 
Section "ServerLayout"
        Identifier      "Default Layout"
        Screen    "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Nota

Appendix A
Intel
Output names:
* LVDS: internal laptop panel
* TMDS-1: external DVI port
* VGA: external VGA port
* TV: external TV output
ATI
Output names:
* LVDS: internal laptop panel
* DVI-0: first external DVI port
* DVI-1: second external DVI port (if present)
* VGA-0: first external VGA port
* VGA-1: second external VGA port (if present)
* S-video
Nvidia
nv driver supports RandR1.2 on G80 boards
Output names:
* LVDS: internal laptop panel
* DVI0: first external DVI port
* DVI1: second external DVI port (if present)
Appendix B
xorg.conf the xorg 7.3 way:

Note: A serial mouse won't work with this configuration! Backup your xorg.conf before making changes!

Section "ServerLayout"
        Identifier      "XFree86 Configured"
        Screen          0       "Screen0"       0       0
        InputDevice     "Touchpad"
EndSection

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load            "ddc"           # ddc probing of monitor
        Load            "dbe"
        Load            "dri"
        Load            "extmod"
        Load            "glx"
        Load            "bitmap"        # bitmap-fonts
        Load            "freetype"
        Load            "record"
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "kbd"
        Option          "XkbRules"              "xorg"
        Option          "XkbModel"              "pc105"
        Option          "XkbLayout"             "de"
        Option          "XkbVariant"            "nodeadkeys"
        Option          "XkbOptions"            "lv3:rwin_switch"
EndSection

Section "InputDevice"
        Identifier      "Touchpad"
        Driver          "synaptics"
        Option  "LeftEdge"      "100"
        Option  "RightEdge"     "1120"
        Option  "TopEdge"       "50"
        Option  "BottomEdge"    "310"
        Option  "FingerLow"     "20"
        Option  "FingerHigh"    "30"
        Option  "MaxTapTime"    "150"
        Option  "MaxTapMove"    "220"
        Option  "MaxDoubleTapTime"      "180"
        Option  "VertScrollDelta"       "20"
        Option  "HorizScrollDelta"      "50"
        Option  "MinSpeed"      "0.94"
        Option  "MaxSpeed"      "1"
        Option  "AccelFactor"   "0.0015"
        Option  "SHMConfig"     "on"
#switch two/three-finger-tap:
        Option "TapButton2" "3"
        Option "TapButton3" "2"
#scroll with two fingers:
        Option "VertTwoFingerScroll"  "1"
        Option "HorizTwoFingerScroll" "0"
EndSection

#This section is most important for xrandr, remove everything except the following:
Section "Monitor"
        Identifier      "Monitor0"
        Option  "DPMS"  "true"
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "intel"
          #This is just optional, "XAA" is probably more stable for the majority of users
        Option          "AccelMethod" "EXA"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Card0"
        Monitor         "Monitor0"
        DefaultColorDepth 24
        SubSection "Display"
                Depth   24
                # Here you can set virtual screen size:
 		Virtual 2048 2048
        EndSubSection
EndSection
Links

http://wiki.debian.org/XStrikeForce/HowToRandR12

http://bgoglin.livejournal.com/9846.html

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420419

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2

Dual Monitors (using binaries)

You are about to edit xorg config files, please, please, please make a back-up of xorg.conf, before going any further!

nvidia

For nvidia nv and non-free simply use the nvidia xorg configurator http://www.sorgonet.com/linux/nv-online/ and alter your xorg files accordingly.

Native ATI - Method 1

http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&p=19794#19794 has some working xorg.confs with the free radeon driver.

NOTE: You will need to get the configuration information of the second monitor. To do this, you need to unplug one monitor and boot the liveCD to generate xorg.conf, copy it, then do the same with the other one.

Native ATI - Method 2

With this method, you have to set the resolution of the primary monitor first, then the second one will use the same configuration, so you have to set the primary in a resolution that the second one can handle

In the section:

Section "Device"
	Identifier "devname"
	Driver "ati"
   ...
EndSection

For full configuration information see http://ftp.x.org/pub/X11R6.9.0/doc/html/radeon.4.html

NOTE: The link above uses the radeon driver, but it has worked with ati driver.

Non-free ATI (fglrx driver)

First install the non-free driver (fglrx)

get-sidux-gfx
or
sgfxi / smxi

Please refer to Installing 3D drivers for full instructions

Next: You must get out of X

ctrl+alt+F1
type: root
enter your password:
init 3

Then:

aticonfig --dtop=horizontal
init 5 && exit

If your monitors end up in the wrong place, you can do

aticonfig --dtop=horizontal,reverse

Please read the help which is very comprehensive with options and examples:

aticonfig --help

Note: Both monitors have to have the same resolution. So check in the manual of the monitors and MATCH the highest resolution of both.

http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&p=20231#20231 may be able to provide additional information.

To roll back or disable the dual-head to single monitor

aticonfig --initial --input=/etc/X11/xorg.conf
Page last revised 29/06/2008 1400