LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2003, 05:33 PM   #1
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Rep: Reputation: 30
help w/ dual monitors


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!
 
Old 08-30-2003, 05:58 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
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.
 
Old 08-31-2003, 12:08 AM   #3
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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!
 
Old 08-31-2003, 03:00 AM   #4
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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...
 
Old 08-31-2003, 04:03 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 08-31-2003, 04:43 AM   #6
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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.
 
Old 08-31-2003, 01:33 PM   #7
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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!
 
Old 08-31-2003, 07:08 PM   #8
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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!!!
 
Old 09-01-2003, 01:18 PM   #9
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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! :-)
 
Old 07-16-2004, 09:49 PM   #10
scha6645
LQ Newbie
 
Registered: Jul 2004
Location: Raleigh NC
Distribution: Mandrake 9.2
Posts: 13

Rep: Reputation: 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,
 
Old 07-16-2004, 11:45 PM   #11
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



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 07:59 AM
Setting up Dual Monitors on GeForce 6600GT dual DVI card. monkiidansu Linux - Hardware 1 09-29-2005 02:21 PM
dual monitors, dual video cards, 1 X, 1 text 333333338 Linux - Hardware 0 04-17-2005 04:21 AM
dual monitors mbjbdc Linare 1 12-12-2004 09:35 AM
Dual Monitors sykkn Linux - General 2 04-21-2001 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration