#1
  1. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    113

    Xorg.conf on an ubuntu laptop with second screen


    guys,

    I'm trying to set up a second screen plugged into the vga port of my laptop with xinerama. First I just want the desktop screen to show at the correct resolution, but it's just showing at the same resolution as the laptop. Any ideas why? My xorg.conf is below - can anyone see what I've missed out?

    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    # sudo dpkg-reconfigure -phigh xserver-xorg

    Section "ServerFlags"
    Option "Xinerama"
    EndSection

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

    Section "Module"
    Load "i2c"
    Load "bitmap"
    Load "ddc"
    Load "dri"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10"
    Load "type1"
    Load "vbe"
    EndSection

    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "gb"
    EndSection

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "true"
    EndSection


    Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "HorizScrollDelta" "0"
    EndSection

    Section "Device"
    Identifier "Videocard0"
    Driver "i810"
    BusID "PCI:0:2:0"
    Screen 0
    Option "MonitorLayout" "CRT,LFP"
    Option "AGPMode" "1"
    EndSection

    Section "Device"
    Identifier "Videocard1"
    Driver "i810"
    BusID "PCI:0:2:0"
    Screen 0
    Option "MonitorLayout" "CRT,LFP"
    Option "AGPMode" "1"
    EndSection

    Section "Monitor"
    Identifier "Laptop LCD"
    Option "DPMS"
    EndSection

    Section "Monitor"
    Identifier "Desktop LCD"
    Option "DPMS"
    EndSection

    Section "Monitor"
    Identifier "LCD Projector"
    Option "DPMS"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    Monitor "Laptop LCD"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 4
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 8
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1024x768"
    EndSubSection
    EndSection

    Section "Screen"
    Identifier "Screen1"
    Device "Videocard1"
    Monitor "Desktop LCD"
    DefaultDepth 16
    SubSection "Display"
    Depth 15
    Modes "1280x1024" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1280x1024" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "1024x768"
    EndSubSection
    EndSection

    Section "ServerLayout"
    Identifier "DefaultLayout"
    Screen 0 "Screen1" 0 0
    #Screen 1 "Screen0" LeftOf "Screen0"
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse"
    InputDevice "Synaptics Touchpad"
    # Option "Xinerama" "On"
    Option "Clone" "Off"
    EndSection

    #Section "DRI"
    # Mode 0666
    #EndSection

    christo
    This is me: http://chris.uk.com
  2. #2
  3. <- My daily commute :^)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Earth. Welcome.
    Posts
    1,500
    Rep Power
    1701
    ...
    Section "Device"
    Identifier "Videocard1"
    Driver "i810"
    BusID "PCI:0:2:0"
    Screen 0 <- Should this be a one?
    Option "MonitorLayout" "CRT,LFP"
    Option "AGPMode" "1"
    EndSection
    ...

    DISCLAIMER: I've never used a multiple monitor setup. Having said that, I think you have a zero where you need a one.
    A -> B: Ride.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2006
    Posts
    4
    Rep Power
    0
    have you tried the sudo dpkg-reconfigure -phigh xserver-xorg ?
    I have done that everytime I changed monitors and it worked.
  6. #4
  7. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    113
    Thanks for the replies guys - I fixed it this morning and pasted my xorg.conf in my bucket-of-useful-stuff corner of the web.


    cheers


    christo
    This is me: http://chris.uk.com
  8. #5
  9. <- My daily commute :^)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Earth. Welcome.
    Posts
    1,500
    Rep Power
    1701
    So... It was screen 1?

    Thanks for posting the link BTW. That's really a cool hack. Hook up an external monitor to ones laptop external monitor connection, and have two screens.
    A -> B: Ride.
  10. #6
  11. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    113
    Originally Posted by mrider
    So... It was screen 1?
    That wasn't the real issue - altho I had posted the message mid-hack, so things were a bit haywire.

    They key to getting this to work was to get each screen working independantly first, and then to apply the xinerama stuff.. That still meant having the two device sections for the videocard(s). The other key gotcha was to use the same colour depth for both devices. After that I just had to faff around with the resolution settings to get X to understand that the two screens are running at different resolutions.

    Originally Posted by mrider
    Thanks for posting the link BTW.
    no worries - I post all sorts of junk there in the 'channels' just as an online stash for myself - browse at your leisure

    christo

    Comments on this post

    • mrider agrees : Cool stuff!
    This is me: http://chris.uk.com

IMN logo majestic logo threadwatch logo seochat tools logo