LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 08-30-2003, 06:33 PM   #1
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0
help w/ dual monitors


[Log in to get rid of this advertisement]
OK. I'm expecting a whole roasting of "RTFM" and "google" replies here, but hoping you guys will find it in your heart to spare me...

I have a Hercules dual head card (Radeon 7500 based, 64mb of memory). How do I configure X to use both heads? Right now it is only mirroring the output onto both monitors, I want to be able to have more desktop space instead.

If anybody could post some good links, or has a similar setup, the help will be well appreciated.

Thanks!
whysyn is offline     Reply With Quote
Old 08-30-2003, 06:58 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246
Thanked: 0
Post the result of execution lspci as root. You will need to edit /etc/X11/XF86Config-4 file and add a second Device Section which should be an exact duplicate of the one already there for your graphics card. Next add a BusID "PCI:1:0:0" line to the first and BusID "PCI:1:0:1" line to the second (Note the PCI:1:0:0 and PCI:1:0:1 are guesses and looking at the output from lspci might help). You will need to change the Identifier field in the second Device entry to a new name. Next duplicate your Screen section and change the Device field to equal the Identifier field of the second Device section, you will also have to change the Identifier field of the second Screen section to be something unique. Lastly you must edit the ServerLayout section to include a second Screen line: "Screen (Second Screen Section Identifier) RightOf (First Screen Section Identifier)". This will (unsurprisingly) place the second screen to the right of the first.

Please note that I have never set up a multi-head X Server before however I have seen a dual-head setup's XF86Config-4 file and that, together with reading the XF86Config-4 manpage has helped. Getting your modifications wrong will most likely kill your X setup so I recommend making a backup.

P.S. edit your /etc/inittab file and change the line: id:5:initdefault: to id:3:initdefault: and reboot before you begin. Then run startx to start X manually.

P.P.S. change it back to 5 and reboot to get a graphical login again.
nhs is offline     Reply With Quote
Old 08-31-2003, 01:08 AM   #3
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
almost there (i think...)

ok. i edited my XF86Config file based on your instructions and what i saw in lspci output. everything looks good, but when i go graphical, i only get one monitor still...

i dug into the xf86 log and found this line:
Code:
(EE) Screen SecondScn doesn't exist: deleting placement
here is a copy of my XF86Config:
Code:
Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "speedo"
    Load        "glx"
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/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    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"   "pc104"
    Option "XkbLayout"  "us"
EndSection

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

Section "Monitor"
    Identifier  "PrimaryMon"
    HorizSync   30-85
    VertRefresh 50-160
EndSection

Section "Device"
    Identifier  "PrimaryDev"
    VendorName  "ATI"
    BoardName   "Radeon 7500"
    Driver      "radeon"
    BusID       "PCI:2:0:0"
    VideoRam    65536
EndSection

Section "Screen"
    Identifier  "PrimaryScn"
    Device      "PrimaryDev"
    Monitor     "PrimaryMon"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

Section "Monitor"
    Identifier  "SecondMon"
    HorizSync   30-85
    VertRefresh 48-120
EndSection

Section "Device"
    Identifier  "SecondDev"
    VendorName  "ATI"
    BoardName   "Radeon 7500"
    Driver      "radeon"
    BusID       "PCI:2:0:1"
    VideoRam    65536
EndSection

Section "Screen"
    Identifier  "SecondScn"
    Device      "SecondDev"
    Monitor     "SecondMon"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "PrimaryScn" RightOf "SecondScn"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
and here is lspci output:
Code:
00:00.0 Host bridge: nVidia Corporation: Unknown device 01e0 (rev c1)
00:00.1 RAM memory: nVidia Corporation: Unknown device 01eb (rev c1)
00:00.2 RAM memory: nVidia Corporation: Unknown device 01ee (rev c1)
00:00.3 RAM memory: nVidia Corporation: Unknown device 01ed (rev c1)
00:00.4 RAM memory: nVidia Corporation: Unknown device 01ec (rev c1)
00:00.5 RAM memory: nVidia Corporation: Unknown device 01ef (rev c1)
00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
00:08.0 PCI bridge: nVidia Corporation: Unknown device 006c (rev a3)
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
02:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV200 QW [Radeon 7500]
i don't know if this is a hint at what is going on, but if i change
Screen "PrimaryScn" RightOf "SecondScn"
to
Screen "SecondScn" LeftOf "PrimaryScn"
then it just crashes out because it tries to come up on the smaller monitor and it won't support the resolution (i think)

also, what is dri, and should i use it?

i'm reading through the xf86config man page right now, but i don't really understand everything there. any more help would be great!!!

thanks guys!
whysyn is offline     Reply With Quote
Old 08-31-2003, 04:00 AM   #4
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
based on some posts i found elsewhere, i changed the serverlayout section so it looks like this:
Code:
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "PrimaryScn"
    Screen "SecondScn" LeftOf "PrimaryScn"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
now I don't get the error anymore, but still no second monitor...
whysyn is offline     Reply With Quote
Old 08-31-2003, 05:03 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,310
Thanked: 179
also from lspci the 2nd address is clearly NOT 2:00.1... on the gefrorce dual head cards you need to specify a screen option in the screen setup itself, whilst still using the same PCI bus ID, e.g. 'Screen "0"' for the first setting, may well be the same on the radeons.
acid_kewpie is offline     Reply With Quote
Old 08-31-2003, 05:43 AM   #6
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
ok, massive progress was made, but the coffee is wearing off, i'm out of smokes (nowhere nearby to buy them at this hour), and i haven't slept in over 24 hours... i will post my new configs and explanations of what is going on after i sleep for a few hours.
whysyn is offline     Reply With Quote
Old 08-31-2003, 02:33 PM   #7
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
ok. ignore all of that stuff above, here is where i am.

links to info:
lspci output
current X config
x server log

now:
when i start x, both monitors come up, the login prompt is only the right monitor, and the login wallpaper is obviously streched across both monitors. ok, so far so good, right?

wrong. as soon as i log in, the kde splash screen appears on the left monitor, and the right monitor immediately switches into power saving mode. when the desktop comes up, it is obvious that it is being served across both monitors, but like i said, the right monitor pops into power saving mode as soon as i click ok on the login window.

i feel like i'm really at the end of my rope here...

thanks, guys!

ps. if there are any other commands i should run or log files i should post, please let me know. thanks again!
whysyn is offline     Reply With Quote
Old 08-31-2003, 08:08 PM   #8
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
Unhappy

alright,

it seems like when the right monitor clicks off it is related to mouse position. when i first go graphical, both monitors come up, the wallpaper is streched all the way across, and the login window is on the right. if i log in, the right monitor immediately goes into power save, and the kde splash screen shows on the left monitor. but if i don't log in, and simply drag the mouse to the left, the monitor clicks out as soon as the mouse makes the jump to the next screen.

i have tried varying the resolution on the right monitor, just in case it didn't like one of them, but there was no difference, all the way down to 800x600

i'm completely lost now. here are the latest log and config files. please, any help you can give will be awesome.

logfile
config

thanks again!!!
whysyn is offline     Reply With Quote
Old 09-01-2003, 02:18 PM   #9
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
i found out last night that there is a bug in X4.3.0 that may cause my problem in certain configs with certain cards. i'm compiling a fresh copy of x, the 4.3.0.99.11 snapshot which is supposed to fix this, and also allows for hardware acceleration on both heads! :-)
whysyn is offline     Reply With Quote
Old 07-16-2004, 10:49 PM   #10
scha6645
LQ Newbie
 
Registered: Jul 2004
Location: Raleigh NC
Distribution: Mandrake 9.2
Posts: 13
Thanked: 0
Did you get this to work?

I have the same graphics card you have and am having troubles getting dual monitors
to work in stretch mode as well. Did you ever get this to work properly?


thanks,
scha6645 is offline     Reply With Quote
Old 07-17-2004, 12:45 AM   #11
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Thanked: 0

Original Poster
yes, i did, but unfortunately no longer have that system.

my suggestion is to search the archives from the xfree86 mailing list. i had posted there and got helpful replies as well as sample configurations...

good luck, and sorry i can't help more.
whysyn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual monitors on dual vido cards Spaz17 Linux - Hardware 7 05-04-2006 08:59 AM
Setting up Dual Monitors on GeForce 6600GT dual DVI card. monkiidansu Linux - Hardware 1 09-29-2005 03:21 PM
dual monitors, dual video cards, 1 X, 1 text 333333338 Linux - Hardware 0 04-17-2005 05:21 AM
dual monitors mbjbdc Linare 1 12-12-2004 10:35 AM
Dual Monitors sykkn Linux - General 2 04-21-2001 11:48 PM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration