LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-23-2004, 12:18 PM   #1
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Rep: Reputation: 15
dual monitors in Red Hat 9


Alright, nobody seemed to pay much attention to my last post, but I finally got XFree86 up and running...on one monitor. But, now a new question:

Is it possible to a)use two monitors in RH9 (and how?!), and b)can I get the functionality of windows for it, meaning can I choose which one is primary separate from the bios setting?

I know similar questions have been asked all the time, but I can't find any for Red Hat...

And I'm apparently a total Newbie afterall, so please just lay it out straight. I'm good with figuring things out, I just have to have all the info first...doesn't everyone, really?

Thanks for your time & help (please give it to me this time!

gothgeek84

Linux Aficionado/Newbie
 
Old 02-23-2004, 12:57 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
It depends on your video card, but it's all done in XF86Config-4.
nVidia has a readme on ho to set this up at:
http://download.nvidia.com/XFree86_4...880/README.txt
And ATI probably has something similar.
 
Old 02-23-2004, 02:36 PM   #3
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
Whoops, can't forget I forgot to mention my video cards!

Onboard: Intel 810
PCI: Diamond Multimedia Stealth 2000 3D (S3 Virge chip)

BIOS has my primary set as the PCI, because Win2k automatically switches to the onboard when it boots up. (I'm hoping I can get linux to do the same). The reason I have this is that it was the easiest (and only one I could find) way to have dual-monitors work with my setup in Win2k.

Hope that's enough info, if not let me know!

PS: I don't remember all the little specs, but it's a 2.4 kernel...red hat 9, using gnome...can't think of anything else relevant (except XFree86 version, which I have no clue of...but it's whatever would've come with RH9)
 
Old 02-23-2004, 03:04 PM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
OK, then you're going to need to define in the /etc/XF86Config-4 file:

two seperate "Device" blocks - these are your video cards: your intel onboard and your Diamond PCI card.

a "Monitor" for each - this tells XFree86 what to expect to be connected to the above devices

a "Screen" for each - this tells X what display modes to use for each monitor

the "ServerLayout" block - this tells X to use both devices, and how to orient them.

All of this is hardware-specific, so I really can't help much more than that. :|

There's a guide available for the 810 chipset at
http://www.tldp.org/HOWTO/HOWTO-INDEX/apps.html#GUIXWIN
that should get you off the ground. Read the other HOWTOs there for ideas. Read also man XF86Config-4 for a description of the different sections.

Start reading, and let us know if you have problems.
BACK UP YOUR XF86Config-4 FILE BEFORE CHANGING IT.

--Rounan
 
Old 02-23-2004, 03:16 PM   #5
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
heh, ironically, that's what I've started doing...just didn't do the ServerLayout block. I'll try that and see if I can get it going.

Hmm, my config is just XF86-Config, no 4...btw, anyone know if changing this will cause any problems with the builtin redhat-xfree86-config program? If so, no big deal...I'll just have to remember not to use it.
 
Old 02-23-2004, 03:55 PM   #6
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
Well...no luck yet.

So far, no luck...
Ok, here's the relevant parts of /etc/X11/XF86Confg (I hope it's the one it's going for...)
Code:
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen         "Screen0" 0 0
	Screen         "Screen1" Below "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "COMPAQ V410"
	DisplaySize  270	200
	HorizSync    30.0 - 50.0
	VertRefresh  50.0 - 90.0
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "s3virge"
	VendorName  "Videocard vendor"
	BoardName   "Diamond Stealth 3D 2000"
	VideoRam    2048
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     16
	SubSection "Display"
		Depth     16
		Modes    "800x600" "640x480"
	EndSubSection
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Acer 77e"
	DisplaySize  270       200
	HorizSync    30.0-72.0
	VertRefresh  50.0-120.0
	Option       "dpms"
EndSection

Section "Device"
	Identifier  "Videocard1"
	Driver      "i810"
	VendorName  "Videocard vendor"
	BoardName   "Intel 810"
	VideoRam    16384
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Videocard1"
	Monitor    "Monitor1"
	DefaultDepth     16
	SubSection "Display"
		Depth     16
		Modes     "1024x768" "800x600"
	EndSubSection
EndSection
Any ideas? something I'm doing blatantly wrong that I'm just overlooking?
The original entries (the 0 ones) where put in there by the redhat-config-xfree86 util, so I just copied and modified them to what I (thought I) need.

Thanks for all your help, and I'd pay you if I could...but I'm a poor college student, I can't even afford...well, anything.
 
Old 02-23-2004, 07:00 PM   #7
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I don't know if order matters for these sections... the manpage doesn't specify. It couldn't hurt to put things in order though:
Files File pathnames
ServerFlags Server flags
Module Dynamic module loading
InputDevice Input device description
Device Graphics device description
VideoAdaptor Xv video adaptor description
Monitor Monitor description
Modes Video modes descriptions
Screen Screen configuration
ServerLayout Overall layout
DRI DRI-specific configuration
Vendor Vendor-specific configuration

Also, because you have more than one device, the BusID entry is mandatory.
Do lspci to figure out which is which.

Why 16-bit depth? Both heads should be able to handle 24.

--Rounan
 
Old 02-23-2004, 09:32 PM   #8
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
well, a step in the right direction

Well, so far I can't get the system to show on two windows at once, BUT it now shows on the right monitor, at least.

Here's a slightly condensed version of my XF86Config...I'm putting everything except the comments (I hate to post such a large message, but there's always a chance something like the mouse is affecting the monitor...stranger things have happened).

Code:
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen         "Screen0" 0 0
	Screen         "Screen1" Below "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "XkbRules" "xfree86"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/psaux"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
	Identifier  "DevInputMice"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "no"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "COMPAQ V410"
	DisplaySize  270	200
	HorizSync    30.0 - 50.0
	VertRefresh  50.0 - 90.0
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "s3virge"
	VendorName  "Videocard vendor"
	BoardName   "Diamond Stealth 3D 2000"
	VideoRam    2048
	BusID       "PCI:1:12:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     16
	SubSection "Display"
		Depth     16
		Modes    "800x600" "640x480"
	EndSubSection
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Acer 77e"
	DisplaySize  270       200
	HorizSync    30.0-72.0
	VertRefresh  50.0-120.0
	Option       "dpms"
EndSection

Section "Device"
	Identifier  "Videocard1"
	Driver      "i810"
	VendorName  "Videocard vendor"
	BoardName   "Intel 810"
	VideoRam    16384
	BusID       "PCI:0:1:0"
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Videocard1"
	Monitor    "Monitor1"
	DefaultDepth     16
	SubSection "Display"
		Depth     16
		Modes     "1024x768" "800x600"
	EndSubSection
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection
Any suggestions?

TIA,
gothgeek84 (who wishes he could afford to affero you for all your help)
 
Old 02-23-2004, 09:36 PM   #9
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
Oh, and btw, the reason I'm doing 16 bit is that I don't want there to be a chance of anthing else throwing it off; when I get it working, I'll try upping it to 24 (I doubt 32...windows won't let me, prolly for a reason).

But, all things considered, I think it's best to keep the settings low for now, and try upping them later.
 
Old 02-24-2004, 08:32 AM   #10
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Is display showing on Screen0 or Screen1?

Try changing the serverlayout line for Screen0 to:
Screen "Screen0" Absolute 0 0

Does your Diamond card have more than one head? (ie tvout or DVI jacks?) If so, you may need to specify the screen-num field in serverlayout, like:
Screen 1 "Screen0" Absolute 0 0

Fiddle around, and describe what you see - I'll try to help you troubleshoot if you need it.
 
Old 02-24-2004, 10:31 AM   #11
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
I'm not at home right now, so I can't directly troubleshoot it, but I can tell you what I know...

It's showing up on Screen 1. The Diamond card has another jack, but from what I've found online, it's just for sound (honestly, I have no clue what it does, but I don't think it's video, anyhow).

Oh, and when I do lspci, it shows the Diamond card at 1:0b.0; does XF86Config take hex or decimal numbers? I tried it both way (leaving it on decimal above), without any changes.
 
Old 02-24-2004, 11:04 AM   #12
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I'd keep it hex... seems to be the way to go.
Try changing the last number to 1:
PCI:1:0b:1
I don't know what the other head on your card is... but maybe sending the video another "function" will make it choose the appropriate head? That's a total shot in the dark though, and probably way off base.

--Rounan
 
Old 02-25-2004, 01:21 PM   #13
gothgeek84
Member
 
Registered: Feb 2004
Location: USA
Distribution: Ubuntu 7.04, Experimenting with others
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry it took so long to reply...busy day.

I tried everything you listed, and nothing seemed to work. So, I think I'm going to quit while I'm ahead: I may not have two monitors, but everything shows up on the one I want it to. I may tinker around with it a little, but overall I've given up on getting a dual display.

Thanks for all your help, though! I couldn't have gotten as far as I did without you! If there's anything you need, let me know. (unless it involves money...I would if I had any. )

Doug
 
Old 02-25-2004, 01:34 PM   #14
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Huh. too bad about that - sorry I couldn't figure it out for ya.
If you ever do get it working, post the solution so others can learn.

And we don't talk about money. :P
If you got it, and I was worth it, affero. If you don't, don't worry.

--Rounan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Booting XP and Red Hat jackp Linux - Newbie 7 12-22-2004 11:34 PM
red hat 9 dual monitors problem cashton2k Linux - Hardware 0 05-14-2004 01:14 PM
Red Hat XF386config File to support three monitors kboggs Linux - Hardware 0 03-10-2004 07:59 AM
red hat 9 and dual processors gSalsero Linux - General 4 01-16-2004 01:48 PM
Red Hat FS and dual boot WS double_e Linux - Networking 1 09-13-2003 11:49 PM


All times are GMT -5. The time now is 05:23 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration