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 05-06-2006, 12:13 PM   #1
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Rep: Reputation: 0
TwinView problem (very close too work)


im using ubuntu 6.06.
tried to follow the guide
to config the xorg.conf file.

its better now, works a little. only on the login stage, both monitor in right resolution.
but after i log in, one on the right, 19 inch(another is 15 inch), dfp(15 inch one is crt) shut off,
But it works perfect if i log in recovery mode a s root.
dont know where is the error.
hope someone can help me.

ection "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "ServerFlags"
Option "Xinerama" "false"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "Monitor"
Identifier "Monitor0"
Option "DPMS"
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
Option "TwinView"
Option "MetaModes" "1024x768,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600"
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "UseEdidFreqs"
Option "SecondMonitorVertRefresh" "UseEdidFreqs"
Option "RenderAccel"
Option "HWcursor"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
Option "ConnectedMonitor" "CRT,DFP"
EndSection

Section "Screen"
Identifier "Screen0"
Device "NVIDIA Corporation NV34 [GeForce FX 5200]"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
 
Old 05-07-2006, 10:26 AM   #2
talmage
LQ Newbie
 
Registered: May 2006
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Look in your /var/log/Xorg.0.log and see what warnings and errors you have.
I am also trying to get dual monitors to work, only I haven't gotten the 2nd monitor to work at all yet.
 
Old 05-07-2006, 11:38 AM   #3
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
You only have one Screen line in your Serverlayout. You need one for each screen. You'll also need another Screen section for the second monitor, and a second Device section for the gfx card (you can just duplicate the existing one, but change the identifier of course). You might want "Screen 0" inthe first section and "Screen 1" in the second but I'm not sure if it's mandatory. The Serverlayout would then contain:

Code:
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" rightOf "Screen0"

Last edited by ioerror; 05-07-2006 at 11:40 AM.
 
Old 05-07-2006, 11:38 PM   #4
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
i reinstalled the sysrem....
and nv diver, i think i didnt got the driver correct first time.
i only add up "flag" class(dont have in deful) and some options in "Divece" .
Did NOT change ANY thing (only add), all as deful.
works for me...
works very well this time.

new problem: im using two different size of monitor, (15 and 19)
how to set the screens in corret level? Right now the system think both screens top edge in the same level, but it shuold be almost same level as bottom edge(15 one shuold be a little bit higher)

any ideas???
 
Old 05-08-2006, 06:32 AM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
Originally Posted by newpants2003

new problem: im using two different size of monitor, (15 and 19)
how to set the screens in corret level? Right now the system think both screens top edge in the same level, but it shuold be almost same level as bottom edge(15 one shuold be a little bit higher)

any ideas???
That is the default configuration, both screens are aligned along the top edge.

If you want them aligned at the bottom edge, you just need to tell X where you want the screens to start, so you just specify pixels values for the x/y coordinates of the top left of the screen, e.g. (I get the impression that your 15" is Screen 0 and is on the left, so I'll assume that is the case, if not just reverse the screen numbers):

Code:
Screen 0 "Screen0" 0 256
Screen 1 "Screen1" 1024 0
This assumes your 15" is at 1024x768 and your 19" is 1280x1024, which is what you have in your MetaModes line.
(256 = 1024 (height of 19") - 768 (height of 15"))

Last edited by ioerror; 05-08-2006 at 06:35 AM.
 
Old 05-08-2006, 09:02 AM   #6
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
but i only have "screen 0"

this is what the xorg.conf looks like, it works very well, except the hight
so where shuold i add the hight config?


Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "ServerFlags"
Option "Xinerama" "false"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "Monitor"
Identifier "SyncMaster"
Option "DPMS"
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
Option "RenderAccel"
Option "HWcursor"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
Option "AllowGLXWithComposite"
Option "TwinView"
Option "MetaModes" "1024x768,1280x1024; "
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "UseEdidFreqs"
Option "SecondMonitorVertRefresh" "UseEdidFreqs"
Option "ConnectedMonitor" "CRT,DFP"

EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV34 [GeForce FX 5200]"
Monitor "SyncMaster"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
 
Old 05-08-2006, 09:50 AM   #7
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
but i only have "screen 0"
And you have dual-head working? Hmmm, I have no experience of doing it like that. I have two Screen/Monitor/Device sections, one for each head. Though, I currently have a Radeon, so I don't know about Nvidia/TwinView specific options. I've used dual-head with a Geforce before with not TwinView, the config seems to be different. Looks like the nvidia driver handles the whole second head config itself.

EDIT:
EDIT: Ignore the rest, skip straight to Electro's post. Oops.
EDIT:

Looking at the nvidia README, the TwinViewOrientation option only supports values of "RightOf", "LeftOf", "Above", "Below" and "Clone". However, you can specify a "panning domain" in the MetaModes, as in

Quote:
Option "MetaModes" "1024x768 @ 1024x1024, 1280x1024"
But that will give the 15" a virtual vertical resolution which you can scroll up and down. I'm not sure if that's what you want, but I think that's about the best you're going to get with TwinView. I can't find anything in the README that allows an x/y offset to be specified. If you don't like the panning feature (virtual desktops are generally a PITA), then you might try standard dual-head (i.e. non-TwinView), but of course, then you have separate screens, which may not be what you want either.

Last edited by ioerror; 05-08-2006 at 01:31 PM.
 
Old 05-08-2006, 12:52 PM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
In TwinView there is X and Y offsets.

An example from nVidia's README fie:
1600x1200 +0+0, 1024x768 +1600+0

You have to experiment with the values until you like the results.
 
Old 05-08-2006, 01:25 PM   #9
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
Originally Posted by Electro
In TwinView there is X and Y offsets.

An example from nVidia's README fie:
1600x1200 +0+0, 1024x768 +1600+0
Hmmm....rereads the README... Duh!

I must've missed that, I only saw the panning malarkey (... @ ...).

Last edited by ioerror; 05-08-2006 at 01:28 PM.
 
Old 05-08-2006, 03:40 PM   #10
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Electro
In TwinView there is X and Y offsets.

An example from nVidia's README fie:
1600x1200 +0+0, 1024x768 +1600+0

You have to experiment with the values until you like the results.

could you explen the code more?

does the code in: Option "MetaModes" "1024x768,1280x1024; " ?

what does "+0+0" and "+1600+0" mean?

for example: accroding to my screen, if i want the monitor with 1024*768 lower 10cm, what
shuold the Option "MetaModes" be?

thanx
 
Old 05-08-2006, 03:44 PM   #11
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ioerror
And you have dual-head working? Hmmm, I have no experience of doing it like that. I have two Screen/Monitor/Device sections, one for each head. Though, I currently have a Radeon, so I don't know about Nvidia/TwinView specific options. I've used dual-head with a Geforce before with not TwinView, the config seems to be different. Looks like the nvidia driver handles the whole second head config itself.

EDIT:
EDIT: Ignore the rest, skip straight to Electro's post. Oops.
EDIT:

Looking at the nvidia README, the TwinViewOrientation option only supports values of "RightOf", "LeftOf", "Above", "Below" and "Clone". However, you can specify a "panning domain" in the MetaModes, as in



But that will give the 15" a virtual vertical resolution which you can scroll up and down. I'm not sure if that's what you want, but I think that's about the best you're going to get with TwinView. I can't find anything in the README that allows an x/y offset to be specified. If you don't like the panning feature (virtual desktops are generally a PITA), then you might try standard dual-head (i.e. non-TwinView), but of course, then you have separate screens, which may not be what you want either.
TwinView is the way i used in windows, both monitor works fine.
i dont really know what does non-TwinView mean, whats it looks like.
and the config for that is more complet.
whould like to try, if that is a better way for use two monitor.
 
Old 05-08-2006, 06:04 PM   #12
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
what does "+0+0" and "+1600+0" mean?
That specifies the offset of the top left of the screen. So you'd want "1024x768 +0+256, 1280x1024 +1024+0".

Quote:
i dont really know what does non-TwinView mean, whats it looks like.
It uses two separate X screens, so e.g. you can't move window between the screens. With TwinView the screens are merged into one logical screen. Neither is "better", it just depends on what you want.
 
Old 05-08-2006, 08:14 PM   #13
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
yeahs, i got it right, thanx.
really take me a while to find out the best value.

how to set two different wallpapers on each screen?
 
Old 05-09-2006, 05:01 AM   #14
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
how to set two different wallpapers on each screen?
This is entirely dependant on whatever window manger/desktop you use (KDE?). Since TwinView/Xinerama has only one logical screen, the wm has to understand that there are two physical screens and offer the ability to use a different background for each. I use Window Maker and fvwm, so I'm not familiar with KDE/GNOME/etc, I don't know if they support that. In a pinch, I suppose you could combine two images together with montage!
 
Old 05-09-2006, 01:21 PM   #15
newpants2003
LQ Newbie
 
Registered: Jun 2005
Posts: 15

Original Poster
Rep: Reputation: 0
thanx. i just fing the TwinView still not working perfect:
in physicl my two monitor looks like this: one 15, one 19.

|---------|
______| |
| | |
| | |
|_____|_________|

but the system think the 15 one has more display area above. like this:


|-----|---------|
|_____| |
| | |
| | |
|_____|_________|

what can i do about?

Last edited by newpants2003; 05-09-2006 at 01:22 PM.
 
  


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
oooooo so close to makeing this work. Goblin_C_Noob Programming 4 09-11-2005 06:44 AM
Twinview Problem! don_dimo Linux - Software 5 08-22-2004 12:34 PM
cannot get my logitech mx 700 to work (very close tho!) dave_blob Linux - Hardware 6 02-11-2004 02:08 AM
SAMBA and W2k still does not work, but I am so close PLS HELP cevjr Linux - Networking 5 08-06-2003 12:39 PM
TwinView won't work (or is it just me?) fatter Linux - General 1 01-27-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:09 AM.

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