Issues with your account? Bug us in the Discord!

Enter the Linux n00b

BekennBekenn Sinclair's Duck
So, here I am, having been inspired by the Ubuntu thread (Thanks, John!) to install Gentoo. I was attracted to the distro by the fact that the installation was continuously referred to as "in-depth" and "not simple." I figured, correctly, that this would end up teaching me much more about Linux in general than installing Mandrake or Red Hat ever would.

I didn't count on it taking three days.

But, here I am, having done everything the hardest way I could find (stage1, configure everything manually when given the choice), and I'm finally browsing FirstOnes with Firefox using KDE on a gentoo version of the 2.6.9-r1 kernel.

Oh, yes: emerge/portage is frelling awesome.

Now that I'm here, I'd like to know a few things:

1) Where can I find drivers for my Audigy? I tried emerging emu10k1, but got an error message stating that the package was incompatible with the 2.6 kernel.

2) Linux doesn't seem to know I have a mouse wheel. What to do about that?

3) I'm running a dual-display system: Apple's 23" Cinema Display HD, and Viewsonic's VP201s 20" flat panel. So far, Gentoo's only ever used the Viewsonic, and KDE doesn't seem to know I have more than one display. Ideas?

I'll probably have more questions later....
«1

Comments

  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    1) I unfortunately have no knowledge here as I don't have an audigy. My guess would be that you shouldn't be using the emu10k1 package anymore since ALSA is all in the kernel in 2.6 and there are (working - we use them on our robot with the SB PCI) modules in there. See [url=http://www.gentoo.org/doc/en/alsa-guide.xml] here[/url] for an excellent guide to setting up ALSA. If you haven't already, have a look through the rest of the [url=http://www.gentoo.org/doc/en/desktop.xml]desktop documentation[/url], there's some excellent stuff there.

    2) Add the following line to the mouse section of your xorg.conf file:

    [code] Option "ZAxisMapping" "4 5"[/code]

    3) If you're using an nvidia card, this is dead easy. Read the doc for their drivers on how to tell X which displays to use, where they are, etc.
    The ATI drivers, if you're using them, also claim to be able to this, but I don't know how effectively.
    If you're not, your best bet is the xinerama extension for X.
    Many threads on the forums about this sort of thing, eg this one that has some stuff about good options to use, plus notes on how to get some going: [url]http://forums.gentoo.org/viewtopic.php?t=224556&highlight=multiple+monitor[/url]

    Tip for using the forums: Search (with the quicksearch box) for what you want and "howto". For example, "xinerama howto" or "bootsplash howto". You can also limit your search to the documentation forum if you need to.
  • BekennBekenn Sinclair's Duck
    1) Thanks; I've already gone through the desktop documentation, but maybe I missed something in the kernel config for emu10k1. ALSA isn't the problem; as I understand it, that's just a HAL. emu10k1 is the driver.

    2) I'll try that next time I boot to linux.

    3) ATI card, the 9700 Pro. I'll see what I can find....

    I need to "live" in linux for a couple weeks, with the obvious exception of games, but without sound working, I'm finding that less than entirely pleasant.

    Oh, yeah... the main reason I picked up the VP201s is that the Apple display (being designed for Macs) cannot show the low resolutions PCs use at startup, most notably text mode, which you absolutely have to be able to see when playing around in linux for any great length of time. This display, though... for some reason, it doesn't show everything it should. The image is scaled wrong, such that the whole image is too large for the screen, which I would never have thought possible on a competently made LCD. I have a theory that this relates to using the DSUB connection instead of DVI, but I haven't tested it yet. Still, has anyone ever heard of this happening before?
  • JamboJambo Scriptkiddie
    One thing to remember is that you might need to recompile quite a bit with the "xinerama" use flag once you get your dual monitors setup.
  • JamboJambo Scriptkiddie
    And as for your soundcard, the drivers are included with the 2.6.x kernel now.

    First emerge the latest dev sources (r1 has a number of problems, especially with usb printers..), make sure the sym link from /usr/src/linux now points to the new source, then, as root, do a make menuconfig.

    In the kernel configuration Device Drivers ->
    Sound

    Enable Sound card support

    Now select advanced linux sound architecture,
    Enable sequencer support, and the various oss options for older app compatibility (if you want)

    Finally go to the PCI devices and enable EMU10K1.
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    I recommend using make xconfig over make menuconfig. Better interface if you've got X working. :)

    [QUOTE][i]Originally posted by Jambo [/i]
    [B]One thing to remember is that you might need to recompile quite a bit with the "xinerama" use flag once you get your dual monitors setup. [/B][/QUOTE]

    There is a switch for emerge to tell it to recompile all packages that will be affected by USE flag changes. It's very handy in this situation.

    Since you have a radeon you're probably using the ATI radeon driver. If you do a man radeon you'll get lots of useful info on how to set up the device section for it in your xorg.conf file. In particular you want to look at options like the Metamodes and MonitorLayout options. I recommend you try and get the ATI driver dual-head stuff going before you try using xinerama.
  • BekennBekenn Sinclair's Duck
    Okay, got mouse wheel working. Woohoo!

    Also, turns out that switching to DVI for the VP201s does indeed fix the image size problem, and very nicely, too; there are scaling options to fill the whole screen, fill the largest portion of the screen with the same aspect ratio, and to display the image at 1:1 pixel ratio. If only the Apple could do that.... Now, if only I could use both displays with DVI at the same time... oh, well, time to plug this one back into the DSUB so I can get the Apple working.

    Todo list:
    Get both displays working
    Get sound working
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    Do what Jambo said to get your driver sorted (that's why you don't need the separate package anymore, all drivers are in the kernel now), then follow the ALSA guide. You'll be waking up the neighbours in no time. :)

    Now that you have a nice new gentoo install, you're going to want to keep it up to date. [url=http://forums.gentoo.org/viewtopic.php?p=1060314#1060314]This post[/url] describes a good way to do that.
  • BekennBekenn Sinclair's Duck
    Yep, sound's working now. The alsa startup guide confused me, such that I thought I needed emu10k1 as a separate module. Turns out I'd already selected it as part of the kernel config, so all I had to do was add the alsa configure script, start it, and unmute the channels. Silly me....
  • BekennBekenn Sinclair's Duck
    Okay, so, after running fglrxconfig, which includes stuff for dual-monitor support... nothing is different. I think it's still using xorg.conf rather than XF86Config-4. How to change this?
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    I'm assuming you're using the X.org X11 server? (You should be if you arn't). xorg.conf is the file your server will be using. fglrxconfig might be writing to XF86-config-4, in which case you just need to copy the required parts out of that into your xorg.conf file.
  • BekennBekenn Sinclair's Duck
    Ah, okay, I wondered if that was it; now to try...

    Edit: hmm... didn't work. Just got two very black screens.
  • JamboJambo Scriptkiddie
    Let's have a butchers at yer xorg.conf file!
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    Yeah, let's have a look. :)
  • BekennBekenn Sinclair's Duck
    You asked for it...

    EDIT: Updated files to current version as of 2004-11-10:14:21 PST and removed all comments for brevity

    Original, working file:
    [code]Section "Module"
    Load "dbe" # Double buffer extension

    SubSection "extmod"
    Option "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection

    Load "type1"
    Load "freetype"
    EndSection

    Section "Files"
    RgbPath "/usr/X11R6/lib/X11/rgb"
    FontPath "/usr/share/fonts/misc/"
    FontPath "/usr/share/fonts/TTF/"
    FontPath "/usr/share/fonts/Type1/"
    FontPath "/usr/share/fonts/75dpi/"
    FontPath "/usr/share/fonts/100dpi/"
    FontPath "/usr/share/fonts/local/"
    EndSection

    Section "ServerFlags"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "us"
    Option "XkbVariant" "dvorak"
    EndSection

    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "Auto"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "4 5"
    EndSection

    Section "Monitor"
    Identifier "Secondary Display"
    HorizSync 30-92
    VertRefresh 50-85
    EndSection

    Section "Device"
    Identifier "Standard VGA"
    VendorName "Unknown"
    BoardName "Unknown"
    Driver "vga"
    EndSection

    Section "Device"
    Identifier "ATI Radeon 9700 Pro"
    Driver "radeon"
    EndSection

    Section "Screen"
    Identifier "Screen 1"
    Device "ATI Radeon 9700 Pro"
    Monitor "Secondary Display"
    DefaultDepth 24

    Subsection "Display"
    Depth 8
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection

    Subsection "Display"
    Depth 16
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection

    Subsection "Display"
    Depth 24
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    EndSection

    Section "ServerLayout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    EndSection
    [/code]

    XF86Config-4:
    [code]Section "dri"
    Mode 0666
    EndSection

    Section "Module"
    Load "dbe" # Double buffer extension

    SubSection "extmod"
    EndSubSection

    Load "type1"
    Load "freetype"
    Load "glx" # libglx.a
    Load "dri" # libdri.a
    EndSection

    Section "Files"
    RgbPath "/usr/X11R6/lib/X11/rgb"
    FontPath "/usr/X11R6/lib/X11/fonts/local/"
    FontPath "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
    EndSection

    Section "ServerFlags"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "us"
    Option "XkbVariant" "dvorak"
    EndSection

    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "ImPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/mouse"
    EndSection

    Section "Monitor"
    Identifier "Monitor0"
    HorizSync 31.5 - 68.7
    VertRefresh 20 - 60
    Option "DPMS"
    Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +vsync
    EndSection

    Section "Monitor"
    Identifier "Monitor1"
    HorizSync 31.5 - 68.7
    VertRefresh 20 - 60
    Option "DPMS"
    EndSection

    Section "Device"
    Identifier "Standard VGA"
    VendorName "Unknown"
    BoardName "Unknown"
    Driver "vga"
    EndSection

    Section "Device"
    Identifier "ATI Graphics Adapter connector 0"
    Driver "fglrx"
    Option "no_accel" "no"
    Option "no_dri" "no"
    Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "DesktopSetup" "0x00000000"
    Option "MonitorLayout" "TMDS, CRT"
    Option "IgnoreEDID" "off"
    Option "HSync2" "31.5 - 91.1"
    Option "VRefresh2" "20 - 60"
    Option "ScreenOverlap" "0"
    Option "NoTV" "no"
    Option "TVStandard" "NTSC-M"
    Option "TVHSizeAdj" "0"
    Option "TVVSizeAdj" "0"
    Option "TVHPosAdj" "0"
    Option "TVVPosAdj" "0"
    Option "TVHStartAdj" "0"
    Option "TVColorAdj" "0"
    Option "GammaCorrectionI" "0x00000000"
    Option "GammaCorrectionII" "0x00000000"
    Option "Capabilities" "0x00000800"
    Option "VideoOverlay" "on"
    Option "OpenGLOverlay" "off"
    Option "CenterMode" "off"
    Option "PseudoColorVisuals" "off"
    Option "Stereo" "off"
    Option "StereoSyncEnable" "1"
    Option "FSAAEnable" "no"
    Option "FSAAScale" "1"
    Option "FSAADisableGamma" "no"
    Option "FSAACustomizeMSPos" "yes"
    Option "FSAAMSPosX0" "0.250000"
    Option "FSAAMSPosY0" "0.416666"
    Option "FSAAMSPosX1" "0.083333"
    Option "FSAAMSPosY1" "0.083333"
    Option "FSAAMSPosX2" "0.416666"
    Option "FSAAMSPosY2" "0.750000"
    Option "FSAAMSPosX3" "0.750000"
    Option "FSAAMSPosY3" "0.916666"
    Option "FSAAMSPosX4" "0.583333"
    Option "FSAAMSPosY4" "0.250000"
    Option "FSAAMSPosX5" "0.916666"
    Option "FSAAMSPosY5" "0.583333"
    Option "UseFastTLS" "0"
    Option "BlockSignalsOnLock" "on"
    Option "UseInternalAGPGART" "yes"
    Option "ForceGenericCPU" "no"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 0
    EndSection

    Section "Device"
    Identifier "ATI Graphics Adapter connector 1"
    Driver "fglrx"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 1
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "ATI Graphics Adapter connector 0"
    Monitor "Monitor0"
    DefaultDepth 24

    Subsection "Display"
    Depth 24
    Modes "1920x1200" "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768"
    ViewPort 0 0 # initial origin if mode is smaller than desktop
    EndSubsection
    EndSection

    Section "Screen"
    Identifier "Screen1"
    Device "ATI Graphics Adapter connector 1"
    Monitor "Monitor1"
    DefaultDepth 24

    Subsection "Display"
    Depth 24
    Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768"
    ViewPort 0 0 # initial origin if mode is smaller than desktop
    EndSubsection
    EndSection

    Section "ServerLayout"
    Identifier "Server Layout"
    Option "Xinerama" "True"
    Screen "Screen0"
    Screen "Screen1" RightOf "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    EndSection
    [/code]

    xorg.conf.jambo:
    [code]Section "Module"
    Load "dbe" # Double buffer extension
    SubSection "extmod"
    Option "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection
    Load "type1"
    Load "freetype"
    Load "glx"
    Load "dri"
    EndSection

    Section "Files"
    RgbPath "/usr/X11R6/lib/X11/rgb"
    FontPath "/usr/share/fonts/misc/"
    FontPath "/usr/share/fonts/TTF/"
    FontPath "/usr/share/fonts/Type1/"
    FontPath "/usr/share/fonts/75dpi/"
    FontPath "/usr/share/fonts/100dpi/"
    FontPath "/usr/share/fonts/local/"
    EndSection

    Section "ServerFlags"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "us"
    Option "XkbVariant" "dvorak"
    EndSection

    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "Auto"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "4 5"
    EndSection

    Section "Monitor"
    Identifier "Monitor0"
    HorizSync 31.5 - 68.7
    VertRefresh 20 - 60
    Option "DPMS"
    EndSection

    Section "Monitor"
    Identifier "Monitor1"
    HorizSync 31.5 - 91.1
    VertRefresh 20 - 60
    Option "DPMS"
    EndSection

    Section "Device"
    Identifier "Standard VGA"
    VendorName "Unknown"
    BoardName "Unknown"
    Driver "vga"
    EndSection

    Section "Device"
    Identifier "ATI Radeon 9700 Pro"
    Driver "fglrx"
    Option "no_accel" "no"
    Option "no_dri" "no"
    Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "DesktopSetup" "0x00000200"
    Option "MonitorLayout" "AUTO, AUTO"
    Option "IgnoreEDID" "off"
    Option "HSync2" "31.5-91.1" #Second monitor horizontal sync
    Option "VRefresh2" "20 - 60" #Second monitor vertical sync
    Option "ScreenOverlap" "100" # Pixels for Overlapping. Set to 0 to disable
    Option "Capabilities" "0x00008000"
    Option "VideoOverlay" "on"
    Option "OpenGLOverlay" "off"
    Option "CenterMode" "off"
    Option "PseudoColorVisuals" "off"
    Option "Stereo" "off"
    Option "StereoSyncEnable" "1"
    Option "FSAAEnable" "no"
    Option "FSAAScale" "1"
    Option "FSAADisableGamma" "no"
    Option "FSAACustomizeMSPos" "yes"
    Option "FSAAMSPosX0" "0.250000"
    Option "FSAAMSPosY0" "0.416666"
    Option "FSAAMSPosX1" "0.083333"
    Option "FSAAMSPosY1" "0.083333"
    Option "FSAAMSPosX2" "0.416666"
    Option "FSAAMSPosY2" "0.750000"
    Option "FSAAMSPosX3" "0.750000"
    Option "FSAAMSPosY3" "0.916666"
    Option "FSAAMSPosX4" "0.583333"
    Option "FSAAMSPosY4" "0.250000"
    Option "FSAAMSPosX5" "0.916666"
    Option "FSAAMSPosY5" "0.583333"
    Option "UseFastTLS" "0"
    Option "BlockSignalsOnLock" "on"
    Option "UseInternalAGPGART" "yes"
    Option "ForceGenericCPU" "no"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 0
    EndSection

    Section "Device"
    Identifier "ATI Graphics Adapter connector 1"
    Driver "fglrx"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 1
    EndSection

    Section "Screen"
    Identifier "Screen 1"
    Device "ATI Radeon 9700 Pro"
    Monitor "Monitor0"
    DefaultDepth 24

    Subsection "Display"
    Depth 8
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection

    Subsection "Display"
    Depth 16
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection

    Subsection "Display"
    Depth 24
    Modes "1024x768" "800x600" "640x480" #1024x768 is the default
    ViewPort 0 0 # initial origin if mode is smaller than desktop
    EndSubsection
    EndSection

    Section "ServerLayout"
    Option "Xinerama" "True"
    Identifier "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    EndSection
    [/code]
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    Ug. I hate pre-generated configs. They're always filled with so much unneeded stuff...

    Can we get your xorg.log file too? That should help too. You might want to attach that one since it'll be big.

    I'll have to check if the firegl driver supports dual monitor setups without going through xinerama. The radeon driver is the one that I know has it built in.
  • SanfamSanfam I like clocks.
    Well, looks like it's a good thing we upped the word count! :D
  • BekennBekenn Sinclair's Duck
    Erm... where is xorg.log? I don't see it.

    While we're at it, how would I go about finding a file in a given directory tree?
  • JamboJambo Scriptkiddie
    Try adding

    Option "Xinerama" "True"

    to the ServerLayout section.
  • JamboJambo Scriptkiddie
    By the way, there's a bug in the ATI drivers that means you can't have two monitors with different Horiz and VertRefresh modes, you have to set them to be the same.

    Thankfully I don't have that problem as I use a dual head nvidia, and the linux drivers from nvidia are actually quite good :)
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    [QUOTE][i]Originally posted by Bekenn [/i]
    [B]Erm... where is xorg.log? I don't see it.[/b][/quote]

    My linux system isn't on at the moment, but I can tell you it'll be in /var/log (that's where all log files go) and will be named something like xorg.log.0.

    [quote][b]While we're at it, how would I go about finding a file in a given directory tree? [/B][/QUOTE]

    There are various methods. The most common, which works for every file, is the locate command. Note that this uses a database that is rebuilt daily so it won't find files added really recently. For executables you can use the whereis command to get the path to the executable.
  • BekennBekenn Sinclair's Duck
    I haven't installed Xinerama yet; the config seemed to indicate it wasn't needed. I'll try changing those refresh rates; part of the problem is that I haven't been able to find specs on the apple display for horizontal refresh.

    Edit: emerge --search xinerama comes up with nothing. Guh?
  • BekennBekenn Sinclair's Duck
    Well, I tried setting the refresh rates to be equal; still no luck. Next, shall try adding the Xinerama line....

    And here's the log file: [url=http://www.norlion.com/~bekenn/extras/Xorg.0.log]Click[/url]

    Edit: Well, adding the Xinerama line definitely helped, as KDE was at least able to get through startup. But it still only showed up on the secondary display, and even that was heavily mangled. I had to ctrl-alt-backspace to get back to the shell.
  • BekennBekenn Sinclair's Duck
    Hmm... looking over the log file, I see this:

    [code](II) fglrx(0): Primary head:
    Monitor -- TMDS
    Connector -- DVI-I
    DAC Type -- TVDAC/ExtDAC
    TMDS Type -- Internal
    DDC Type -- DVI_DDC
    (II) fglrx(0): Secondary head:
    Monitor -- CRT
    Connector -- VGA
    DAC Type -- Primary
    TMDS Type -- NONE
    DDC Type -- VGA_DDC[/code]

    I wonder if maybe it's trying to use the TV-Out capabilities of the card to render the primary display....
  • JamboJambo Scriptkiddie
    I've had a look at your xorg.conf file, and using the original working version, aswell as some info I found about your ATI card i've made this

    [CODE]# xorg.conf file by jambo

    Section "Module"
    # This loads the DBE extension module.
    Load "dbe" # Double buffer extension
    SubSection "extmod"
    Option "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection
    Load "type1"
    # Load "speedo"
    Load "freetype"
    # Load "xtt"

    # This loads the GLX module
    Load "glx"
    # This loads the DRI module
    Load "dri"
    EndSection

    # **********************************************************************
    # Files section. This allows default font and rgb paths to be set
    # **********************************************************************

    Section "Files"

    RgbPath "/usr/X11R6/lib/X11/rgb"



    FontPath "/usr/share/fonts/misc/"
    FontPath "/usr/share/fonts/TTF/"
    FontPath "/usr/share/fonts/Type1/"
    # FontPath "/usr/share/fonts/CID/"
    FontPath "/usr/share/fonts/75dpi/"
    FontPath "/usr/share/fonts/100dpi/"
    FontPath "/usr/share/fonts/local/"
    # FontPath "/usr/share/fonts/Speedo/"
    # FontPath "/usr/share/fonts/TrueType/"
    # FontPath "/usr/share/fonts/freefont/"

    # The module search path. The default path is shown here.

    # ModulePath "/usr/X11R6/lib/modules"

    EndSection

    # **********************************************************************
    # Server flags section.
    # **********************************************************************

    Section "ServerFlags"

    EndSection

    # **********************************************************************
    # Input devices
    # **********************************************************************

    # **********************************************************************
    # Core keyboard's InputDevice section
    # **********************************************************************

    Section "InputDevice"

    Identifier "Keyboard1"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel" "pc101"
    Option "XkbLayout" "us"
    Option "XkbVariant" "dvorak"

    EndSection


    # **********************************************************************
    # Core Pointer's InputDevice section
    # **********************************************************************

    Section "InputDevice"

    # Identifier and driver

    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "Auto"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "4 5"

    EndSection

    # **********************************************************************
    # Monitor section
    # **********************************************************************

    # Any number of monitor sections may be present

    Section "Monitor"
    Identifier "Monitor0"
    HorizSync 31.5 - 68.7
    VertRefresh 20 - 60
    Option "DPMS"
    EndSection

    Section "Monitor"
    Identifier "Monitor1"
    HorizSync 31.5 - 91.1
    VertRefresh 20 - 60
    Option "DPMS"
    EndSection


    # **********************************************************************
    # Graphics device section
    # **********************************************************************

    # Any number of graphics device sections may be present

    # Standard VGA Device:

    Section "Device"
    Identifier "Standard VGA"
    VendorName "Unknown"
    BoardName "Unknown"
    Driver "vga"
    EndSection

    # Device configured by xorgconfig:

    Section "Device"
    Identifier "ATI Radeon 9700 Pro"
    Driver "fglrx"

    # ### generic DRI settings ###

    #disable/enable XAA/DRI
    Option "no_accel" "no"
    Option "no_dri" "no"
    #misc DRI settings
    Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr

    #Screen Management
    #
    #Jambo - The valid options i found for this bit were
    #0x00000200 (primary left), 0x00000201 (primary right), 0x00000300 (primary top), 0x00000301 (primary bottom)
    Option "DesktopSetup" "0x00000200"


    Option "MonitorLayout" "AUTO, AUTO"
    Option "IgnoreEDID" "off"
    Option "HSync2" "31.5-91.1" #Second monitor horizontal sync
    Option "VRefresh2" "20 - 60" #Second monitor vertical sync
    Option "ScreenOverlap" "100" # Pixels for Overlapping. Set to 0 to disable
    # === TV-out Management ===
    # Option "NoTV" "yes"
    # Option "TVStandard" "NTSC-M"
    # Option "TVHSizeAdj" "0"
    # Option "TVVSizeAdj" "0"
    # Option "TVHPosAdj" "0"
    # Option "TVVPosAdj" "0"
    # Option "TVHStartAdj" "0"
    # Option "TVColorAdj" "0"
    # Option "GammaCorrectionI" "0x00000000"
    # Option "GammaCorrectionII" "0x00000000"
    # === OpenGL specific profiles/settings ===
    Option "Capabilities" "0x00008000"
    # === Video Overlay for the Xv extension ===
    Option "VideoOverlay" "on"
    # === OpenGL Overlay ===
    # Note: When OpenGL Overlay is enabled, Video Overlay
    # will be disabled automatically
    Option "OpenGLOverlay" "off"
    # === Center Mode (Laptops only) ===
    Option "CenterMode" "off"
    # === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals" "off"
    # === QBS Management ===
    Option "Stereo" "off"
    Option "StereoSyncEnable" "1"
    # === FSAA Management ===
    Option "FSAAEnable" "no"
    Option "FSAAScale" "1"
    Option "FSAADisableGamma" "no"
    Option "FSAACustomizeMSPos" "yes"
    Option "FSAAMSPosX0" "0.250000"
    Option "FSAAMSPosY0" "0.416666"
    Option "FSAAMSPosX1" "0.083333"
    Option "FSAAMSPosY1" "0.083333"
    Option "FSAAMSPosX2" "0.416666"
    Option "FSAAMSPosY2" "0.750000"
    Option "FSAAMSPosX3" "0.750000"
    Option "FSAAMSPosY3" "0.916666"
    Option "FSAAMSPosX4" "0.583333"
    Option "FSAAMSPosY4" "0.250000"
    Option "FSAAMSPosX5" "0.916666"
    Option "FSAAMSPosY5" "0.583333"
    # === Misc Options ===
    Option "UseFastTLS" "0"
    Option "BlockSignalsOnLock" "on"
    Option "UseInternalAGPGART" "yes"
    Option "ForceGenericCPU" "no"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 0
    EndSection

    Section "Device"
    Identifier "ATI Graphics Adapter connector 1"
    Driver "fglrx"
    BusID "PCI:3:0:0" # vendor=1002, device=4e44
    Screen 1
    EndSection


    # **********************************************************************
    # Screen sections
    # **********************************************************************

    # Any number of screen sections may be present. Each describes
    # the configuration of a single screen. A single specific screen section
    # may be specified from the X server command line with the "-screen"
    # option.
    Section "Screen"
    Identifier "Screen 1"
    Device "ATI Radeon 9700 Pro"
    Monitor "Monitor0"
    DefaultDepth 24

    Subsection "Display"
    Depth 8
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    Subsection "Display"
    Depth 16
    Modes "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    Subsection "Display"
    Depth 24
    Modes "1024x768" "800x600" "640x480" #1024x768 is the default
    ViewPort 0 0 # initial origin if mode is smaller than desktop
    # Virtual 1280 1024 #Don't enable this. Big Desktop doesn't support scrolling and panning
    EndSubsection
    EndSection

    # **********************************************************************
    # ServerLayout sections.
    # **********************************************************************

    Section "ServerLayout"

    Identifier "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    EndSection

    # Section "DRI"
    # Mode 0666
    # EndSection


    [/CODE]
  • JamboJambo Scriptkiddie
    As you've already found out, xinerama is an X module for dealing with multiple monitor displays, it's already there so you don't need to install it.

    If that config file doesn't work try it with the xinerama option.
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    I notice you only specify one screen in the server layout and, indeed, only one screen in the entire file, Jambo. Is that correct for using multiple monitors?
  • JamboJambo Scriptkiddie
    By normal standards, no.

    But the ATI driver provides its own xinerama module, and its own options for dealing with a multiple monitor environment.

    My xorg.conf file, for example, uses the nvidia driver to deal with the dual monitor options.

    [CODE]
    ## Main Nvidia - Dual Monitor Setup ##
    Section "Device"
    BoardName "0x0312"
    BusID "1:0:0"
    Driver "nvidia"
    Identifier "Device[0]"
    Option "MetaModes" "1280x1024,1024x768; 1024x768, NULL; 800x600, NULL; 640x480,NULL;"
    Option "SecondMonitorHorizSync" "50-100"
    Option "SecondMonitorVertRefresh" "75-120"
    Option "TwinView" "On"
    Option "TwinViewOrientation" "RightOf"
    Screen 0
    Option "Rotate" "off"
    VendorName "NVidia"
    Option "HWCursor" "0"
    Option "SWCursor" "1"
    EndSection

    ## Use for TV OUT ##
    Section "Device"
    BoardName "0x0312"
    Driver "nvidia"
    Option "NvAGP" "3"
    Identifier "Device[1]"
    Screen 0
    VendorName "Nvidia"
    Option "NoLogo" "on"
    Option "CursorShadow" "on"
    Option "CursorShadowAlpha" "32"
    Option "CursorShadowXOffset" "2"
    Option "CursorShadowYOffset" "2"
    Option "TVOutFormat" "COMPOSITE"
    Option "TVStandard" "PAL-B"
    Option "ConnectedMonitor" "TV"
    EndSection

    Section "ServerLayout"
    Identifier "X.org Configured"
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    Option "Xinerama" "off"
    Option "Clone" "off"
    Screen "Screen[0]"
    EndSection[/CODE]
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    Someone in [url=http://forums.gentoo.org/viewtopic.php?t=229384&highlight=firegl+dual&sid=d40f9b2baebcdc53b7e1f2e2122d9bb1]this thread[/url] implies that you need to have the two monitors using the same refresh rate to get it working.
    There's also a claimed working xorg.conf in there it might be worth having a look at.

    Here's another thread with a working solution [url=http://forums.gentoo.org/viewtopic.php?t=215735&highlight=firegl+dual&sid=d40f9b2baebcdc53b7e1f2e2122d9bb1]here[/url].

    Also as a note: if you try to use the firegl drivers and the xinerama module at the same time, it probably won't work. If you want to use xinerama you probably need to use the radeon driver.
  • JamboJambo Scriptkiddie
    By the looks of it that's pretty much how I went about it, using the driver to define the screen setup (using the Option "DesktopSetup")
  • JamboJambo Scriptkiddie
    [QUOTE][i]Originally posted by Biggles [/i]
    [B]
    Also as a note: if you try to use the firegl drivers and the xinerama module at the same time, it probably won't work. If you want to use xinerama you probably need to use the radeon driver. [/B][/QUOTE]

    It provides it's own implementation of xinerama, so still add "xinerama" to your use flags to get apps behaving correctly.
Sign In or Register to comment.