Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

X on two monitors

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Skippy204
Guru
Guru
User avatar
Posts: 365
Joined: Fri May 09, 2008 7:06 pm
Location: Colorado, USA

X on two monitors

  • Quote

Post by Skippy204 » Fri May 09, 2008 7:21 pm

Hi all;

I'm trying to set up X to work with 2 monitors, 2 video cards.

I've only just started, so I need to do more investigating, but a few things right off.

From error messages and some internet research I've discovered that I seem to need i915 and mga.
Me thinks i915 is a kernel module, is mga a kernel module?

dumb question #1: How do I figure out what option to compile in my kernel to provide those modules?

-------------- Here is the xorg.conf which was generated by 'X -configure'

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

Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
Load "dri"
Load "dbe"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "GLcore"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

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

Section "Monitor"
#DisplaySize 370 270 # mm
Identifier "Monitor0"
VendorName "OQI"
ModelName "Z90"
### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync 30.0 - 95.0
VertRefresh 50.0 - 180.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "82865G Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "KGAUniversal" # [<bool>]
Identifier "Card1"
Driver "vga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA 1064SG [Mystique]"
BusID "PCI:1:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
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
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
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
EndSection


------------------------

The i810 card is working, that's the monitor/card I've been using. The Matrox card/monitor is the one I'm trying to add.

Thanks for any input, I'll be back once I have more information and try some stuff.

Skippy
Top
faux
n00b
n00b
Posts: 61
Joined: Fri Oct 26, 2007 9:32 am
Location: Linz, Austria
Contact:
Contact faux
Website

  • Quote

Post by faux » Fri May 09, 2008 8:01 pm

Hi!
Look at the (extended-)USE flags of xorg-server. There are i810 (also works for i915, may be) and mga. These are drivers for your video card. I recommend to enable the xinerama USE flag in make.conf. The xinerama module makes it possible to span your workspace to more than one screen.
I also use xinerama to span the workspace to two screens. Here's my xorg.conf: http://phpfi.com/314657; maybe you can copy some parts of it.
Last edited by faux on Fri May 09, 2008 8:04 pm, edited 1 time in total.
Top
djs
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 96
Joined: Fri Dec 13, 2002 10:02 pm
Location: CA

Matrox card needs a driver

  • Quote

Post by djs » Fri May 09, 2008 8:02 pm

Your matrox card needs the right driver (which may be mga, I don't have time to look it up) and you need refresh rates configured for your second monitor. You tell portage which drivers to emerge for X now by putting the following line in your /etc/make.conf:

Code: Select all

VIDEO_CARDS="vga vesa nv i810 mga"
Also, you need default depths on your Screens and maybe metamodes, too. Something like:

Code: Select all

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
   Option         "metamodes" "1920x1200 +0+0; 1280x1024 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
The +0+0 after each metamode resolution is a y and x offset from the other screen, I believe. If you're using RightOf or LeftOf, these should probably be +0+0 everywhere.

/djs
Top
Skippy204
Guru
Guru
User avatar
Posts: 365
Joined: Fri May 09, 2008 7:06 pm
Location: Colorado, USA

  • Quote

Post by Skippy204 » Sun May 18, 2008 12:39 am

Thanks to both of you. I got this working and it took no where near as long as I expected it to take.

Here is the xorg.conf I ended up with. Hopefully this will help someone down the road when they are searching the forum for assistance. Also, if there are any suggestions on changes to improve things in my config file, I'm always open to that.

I ended up using some parts of the automatically generated xorg.conf and putting in some stuff from the previous xorg.conf in order to get monitor 0 working correctly.

Have fun, Skippy

-------------------------------------------------- begin xorg.conf

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

Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
Load "dri"
Load "dbe"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "GLcore"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

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

Section "Monitor"
#DisplaySize 370 270 # mm
Identifier "Monitor0"
VendorName "OQI"
ModelName "Z90"
### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync 31.5 - 79.0
VertRefresh 50-100
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "82865G Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "KGAUniversal" # [<bool>]
Identifier "Card1"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA 1064SG [Mystique]"
BusID "PCI:1:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection


Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24
# Option "metamodes" "1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
ViewPort 0 0
EndSubSection
EndSection

-------------------------------------------- end xorg.conf
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic