You are not logged in.

#1 2009-03-23 20:00:19

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

[SOLVED] Dual-head works... until I start GNOME.

Hello,

I have a 15" monitor laying here unused, so I wish to use it a dual-head with my laptop (which uses Intel i965 video). It works on GDM (I get a gray screen on the 2nd monitor), but when I enter GNOME it disappears. Changing resolution options on the GNOME has nil effect.

The laptop uses 1440x900 while the monitor uses 1024x768. My xorg.conf is:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
    Option "AutoAddDevices" "False"
    Option "DontZap" "false"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "xtrap"
    Load  "dbe"
    Load  "dri"
    Load  "glx"
    Load  "extmod"
    Load  "freetype"
    Load "synaptics"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option "XkbRules" "xorg"
    Option "XkbModel" "abnt2"
    Option "XkbLayout" "br"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5"
EndSection




Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "Mobile GM965/GL960 Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
    option "monitor-VGA" "Tela15"
    option "monitor-LVDS" "Notebook"
EndSection

Section "Monitor"
    #DisplaySize      370   230    # mm
    Identifier   "Notebook"
    VendorName   "AUO"
    ModelName    "6287"
EndSection

Section "Monitor"
    Identifier "Tela15"
    VendorName "AOC"
    ModelName "LM520"
    Option "RightOf" "Notebook"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Notebook"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
    Virtual 2464 900
EndSection

Any clues on how to fix such problem? Thanks!

Last edited by Renan Birck (2009-03-23 21:02:43)

Offline

#2 2009-03-23 20:21:38

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [SOLVED] Dual-head works... until I start GNOME.

try

xrandr --auto

Offline

#3 2009-03-23 20:29:39

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED] Dual-head works... until I start GNOME.

schuay wrote:

try

xrandr --auto

It clones the screen, which is not what I want, I want the 2nd monitor to be an extension of the first.

Offline

#4 2009-03-23 20:46:17

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [SOLVED] Dual-head works... until I start GNOME.

take a look at the xrandr manpages.

--left-of, --right-of, --above, --below, --same-as <another output>
              Use one of these options to position the output relative to the position of another output.
              This  allows  convenient  tiling of outputs within the screen.  The position is always com‐
              puted relative to the new position of the other output, so it is not valid to say  --output
              a --left-of b --output b --left-of a.

Last edited by schuay (2009-03-23 20:46:42)

Offline

#5 2009-03-23 21:02:19

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED] Dual-head works... until I start GNOME.

This seems to do it.

#!/bin/bash
xrandr --auto
xrandr --output VGA --right-of LVDS

Will try and read more about xrandr.

Offline

Board footer

Powered by FluxBB