LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-01-2007, 11:48 PM   #1
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Rep: Reputation: 15
Changing Primary Monitor


I have been googling this problem for hours. I am running SuSE 10.2 with a GeForce 7900GT and the latest nVidia drivers. The dual monitor setup is working great, except for one problem. X11 is automatically considering the CRT monitor the "Primary" monitor, even when switch the physical DVI/VGA port. I want the CRT monitor to be on my left as the secondary and my LCD to be the primary, but I can see no place in xconf.org to change what X calls the Primary monitor. I also can't see an option to change this in the nice nVidia configuration GUI. It is pissing me off. Any one know what I can do? Here is my Xconf.org file, at least the monitor part..

Section "Monitor"
DisplaySize 377 301
HorizSync 29-64
Identifier "Monitor[0]"
ModelName "1280X1024@60HZ"
Option "DPMS"
VendorName "--> VESA"
VertRefresh 50-60
UseModes "Modes[0]"
EndSection

Section "Modes"
Identifier "Modes[0]"
Modeline "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060
Modeline "1280x960" 102.10 1280 1360 1496 1712 960 961 964 994
Modeline "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828
Modeline "1152x864" 81.62 1152 1216 1336 1520 864 865 868 895
Modeline "1280x768" 80.14 1280 1344 1480 1680 768 769 772 795
Modeline "1024x768" 64.11 1024 1080 1184 1344 768 769 772 795
Modeline "1280x600" 61.50 1280 1336 1464 1648 600 601 604 622
Modeline "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622
Modeline "800x600" 38.22 800 832 912 1024 600 601 604 622
Modeline "768x576" 34.96 768 792 872 976 576 577 580 597
Modeline "640x480" 23.86 640 656 720 800 480 481 484 497
Modeline "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060
Modeline "1280x1024" 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +HSync +VSync
Modeline "1280x960" 105.61 1280 1360 1496 1712 960 961 964 995
Modeline "1280x800" 86.35 1280 1344 1480 1680 800 801 804 829
Modeline "1152x864" 84.44 1152 1216 1336 1520 864 865 868 896
Modeline "1280x768" 82.91 1280 1344 1480 1680 768 769 772 796
Modeline "1024x768" 66.33 1024 1080 1184 1344 768 769 772 796
Modeline "1280x600" 63.55 1280 1336 1464 1648 600 601 604 622
Modeline "1024x600" 50.60 1024 1064 1168 1312 600 601 604 622
Modeline "800x600" 39.49 800 832 912 1024 600 601 604 622
Modeline "768x576" 36.13 768 792 872 976 576 577 580 597
Modeline "640x480" 24.70 640 656 720 800 480 481 484 498
Modeline "2560x1024" 135.00 2560 1296 1440 1688 1024 1025 1028 1066
EndSection

Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

Section "Device"
BoardName "GeForce 7900 GT"
BusID "1:0:0"
Driver "nvidia"
Identifier "Device[0]"
Option "SaXDualHead"
Option "TwinView"
Option "SaXDualMonitorVendor" "--> VESA"
Option "SecondMonitorHorizSync" "31-64"
Option "SaXDualVSync" "50-60"
Option "MetaModes" "1280x1024,1280x1024;1280x960,1280x960;1280x800,1280x800;1152x864,1152x864;1280x768,1280x768;1024x76 8,1024x768;1280x600,1280x600;1024x600,1024x600;800x600,800x600;768x576,768x576;640x480,640x480"
Option "SaXDualOrientation" "RightOf"
Option "SaXDualResolution" "1280x1024"
Option "TwinViewOrientation" "RightOf"
Option "SaXDualMode" "Xinerama"
Option "SecondMonitorVertRefresh" "50-60"
Option "SaXDualHSync" "31-64"
Option "SaXDualMonitorModel" "1280X1024@60HZ"
Screen 0
VendorName "NVidia"
EndSection

Thats everything that relates to the monitor.
 
Old 04-02-2007, 12:18 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Option "TwinViewOrientation" "RightOf"
Option "SaXDualOrientation" "RightOf"


Change the 'RightOf' to 'LeftOf' and see what happens.

Last edited by GrapefruiTgirl; 04-02-2007 at 12:22 AM.
 
Old 04-02-2007, 12:46 AM   #3
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
That will only switches which side the "primary" monitor thinks the secondary monitor is, but doesn't actually change the primary monitor. When I did that, the CRT is still primary, but I have to move the mouse off the screen to the left to go to the secondary monitor on the right
 
Old 04-02-2007, 01:00 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK.. Hmmm.... You *might* try changing the 'Screen 0' to 'Screen 1' near the end of the device section.
Leave the other change the way it is..
This is one of those situations where both monitors are coming out of one connector into a splitter? Or do you have 2 outputs?
All in all, you would prolly have to reconfig the whole thing, as far as swapping the horiz, vert, and resolutions for both monitors.
But I dont want to suggest that incase it doesn't work..
I also use an nVidia card, and have dual screens, but I use Xinerama, and have no trouble switching the screens around, very simple. What layout are you looking for, as in, one big desktop, 2 separate ones, etc..?

Last edited by GrapefruiTgirl; 04-02-2007 at 01:01 AM.
 
Old 04-02-2007, 01:12 AM   #5
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
It's a GeForce 7900GT with two DVI outputs. The problem with switching resolutions, is everything will open up on the CRT monitor, no matter what arrangement I have it in.

At this very moment, I have it extend the desktop in the direction I want it to. The problem though, is the "start menu" in KDE is on the left monitor. No matter what way I have the desktop extend though, that CRT monitor will ALWAYS have the start menu. I realize I can literally drag the start menu to the correct monitor, but the icons won't come with it if they are on "align to grid", and even if they do move, all the windows I open will always open on the primary monitor. I am having a hard time explaining this as you can see. When you had me change "Right" to "Left", all that did was change which direction the primary monitor thinks the secondary monitor is located. It did not, however, change WHICH monitor is the primary. Even changing which port the monitors are hooked up to did the exact same thing, so I assume that X only detects monitors by name, not by their physical connections.

Last edited by tendonut; 04-02-2007 at 01:14 AM.
 
Old 04-02-2007, 08:39 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK.. I still have a few idea.. But need a bit more coffee to advise concisely.
I'll return with more. As to whether you can get 'exactly' what you want, I cannot say, but I think you can get close.

I'm Back... Here's an idea:
In your xorg.conf, you only explicitly define ONE monitor and ONE screen section and ONE device section. By default/by design, X applies everything it can, to the FIRST monitor/screen defined in the conf file. Everything else it finds, gets applied to the NEXT monitor/screen combination. So, in the case of your setup, from what I know, X will ALWAYS use screen 0, device 0, and monitor 0, first.
Now, I can't say exactly which port of the card, gets used first by the card, ie: does the card see one of its ports as primary and one as secondary. I don't know.
However, you *may* get ahead of the game by explicitly defining the second port, second monitor, and second screen, thereby giving you the ability to apply specific functionality to either one port or the other.

Something I will try, to verify what I'm getting at, is to do what you are trying to do, on my own system (after the coffee) and if it works, ie, IF I can effectively set which monitor is primary and which is secondary, I'll let you know.
Sorry if I still am a little confused, or if I am confusing you but I think I understand.

Last edited by GrapefruiTgirl; 04-02-2007 at 08:48 AM.
 
Old 04-02-2007, 09:46 AM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK, got it.. I will shortly email you an archive.tgz for you to examine. It contains two screenshots, both while I have clicked the 'identify screens' button in the configure-desktops control panel. You will see the [1] and [2] on each screen respectively. I also included the xorg.conf files for you to look at. They are quite different from yours, but the difference you're interested in is in the 'Server Layout' section. I just changed the X-positions of the displays, relative to each other. You'll also see that though I have ONE card only, there are TWO device sections, each addressing the same card.
NOTE: I didn't reconfigure my resolutions during the test, so since my two displays are at different resolutions, you'll see the black area at the bottom of the screenshot. One display is 1600x1200 and the other is 1024x768.
When I restarted X with the switched-around settings, my splash screen, login box, and desktop all came up on the 'other' screen (which in my case is a TV---we watch DVD's on it from the computer).

Perhaps a useful tip for you: If you put desktop icons on each desktop, the application will open on THAT desktop. And, applications will also open wherever the mouse pointer is located; for example, if I click my taskbar's Firefox button, and then slide the mouse onto the other screen, Firefox will open over there, insteaad of on the primary screen. It works both ways.

OK, email on it's way shortly. Hope this helps you out

Last edited by GrapefruiTgirl; 04-02-2007 at 09:52 AM.
 
Old 04-02-2007, 12:22 PM   #8
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
Awesome, Thanks. This sounds like it could be the solution. I went to bed at around 3:00 so I am just now getting updated

Last edited by tendonut; 04-02-2007 at 12:25 PM.
 
Old 04-02-2007, 08:34 PM   #9
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
I didn't get any e-mail yet, if you still planned on sending me that file. tendonut@gmail.com is the best one.
 
Old 04-02-2007, 08:48 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Sh*t... Check your hotmail address that's listed on your profile
If it isn't there, I'll resend it..
Stupid hotmail .. LOL I sent it a LONG time ago. Let me know
 
Old 04-02-2007, 09:13 PM   #11
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
Haha, I found it. You were looking at my MSN Messenger account. I only have that e-mail so I can access my MSN Live account or whatever. Your message was stuck in between a penis enlarging ad and a coolness test. Funny that I get so many junk messages on that account, since you are the first person to ever e-mail me on it since I created it back in 2002. Thanks again, I'll update you on how it goes. I am not feeling too hot, so I am heading to bed early.
 
Old 04-02-2007, 09:18 PM   #12
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yes well, it *is* a Microsoft account which means they probably own the rights to it, and therefore have the right to sell the address.
Glad you found it, and wedged between two other exciting and useful emails, to boot!
 
  


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
Changing between logical and primary partitions xpromisex Linux - Hardware 3 03-22-2007 06:46 PM
Second monitor insists on being primary one Dark_Oppressor Linux - General 0 12-15-2006 11:29 PM
Problem changing primary soundcard saravkrish Fedora 1 12-15-2004 03:05 AM
Setting Primary Monitor Law1213 Linux - Hardware 1 10-10-2004 10:01 AM
Changing primary Sound Card OnionKnight2 Linux - Hardware 2 06-17-2004 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:30 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