LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-08-2013, 11:25 AM   #1
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Rep: Reputation: Disabled
Angry Set "Primay monitor"


Hi:
How do I set the equivalent of "primay monitor" in Windows? I have the FCE spin ofFrodoa Core 18 (64-bit). I have an ATI HD 6000 serries(6540?) so I can't use RandR. I should have the latest fglx driver downloaded form the repestictoy (although the conrol center has 2009 Copyrihgt). Thank you!

Last edited by jamie marchant; 04-08-2013 at 12:25 PM.
 
Old 04-08-2013, 12:19 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Your question is somewhat confusing, since it refers to Windows (a Microsoft trademark).

Ignoring that, and assuming that you're using a X-server based Linux/GNU windowing system, you can set your default monitor(s) and layout in your xorg.conf file. Here's an example from my (Fedora 19) dual monitor setup, of which I'm currently using only one monitor:
Code:
$ cat /etc/X11/xorg.conf
Section "ServerFlags"
        DefaultServerLayout "Acer"
        Option  "dri2" "true"
EndSection

Section "ServerLayout"
        Identifier     "Dual Monitor"
        Screen      0  "W17q" Absolute 0 0
        Screen      1  "Acer" RightOf "W17q"
EndSection

Section "ServerLayout"
        Identifier     "W17q"
        Screen      0  "W17q" Absolute 0 0
EndSection

Section "ServerLayout"
        Identifier     "Acer"
        Screen      0  "Acer" Absolute 0 0
EndSection
The definitions of the various devices are in the xorg.conf/d directory, vis:
Code:
$ ls /etc/X11/xorg.conf.d/
Acer_S201SL.conf  Allow_zap.conf  Compaq_W17q.conf

Last edited by PTrenholme; 04-08-2013 at 12:21 PM.
 
Old 04-08-2013, 01:19 PM   #3
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme
Your question is somewhat confusing, since it refers to Windows (a Microsoft trademark).
Hopfully my correction of the word 'equivalent', makes things more clear .(I don't know if "Primay Monitor" is what you call it in Linux)

My Xorg.conf looks like this:
Code:
Section "ServerLayout"
	Identifier     "amdcccle Layout"
	Screen      0  "amdcccle-Screen[1]-0" 0 0
	Screen         "amdcccle-Screen[1]-1" 1280 0
EndSection

Section "ServerFlags"
	Option	    "Xinerama" "on"
EndSection

Section "Monitor"
	Identifier   "0-CRT1"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "1280x1024"
	Option	    "TargetRefresh" "60"
	Option	    "Position" "0 0"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Monitor"
	Identifier   "0-CRT2"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "2048x1152"
	Option	    "TargetRefresh" "60"
	Option	    "Position" "0 0"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Device"
	Identifier  "amdcccle-Device[1]-0"
	Driver      "fglrx"
	Option	    "Monitor-CRT1" "0-CRT1"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
	Identifier  "amdcccle-Device[1]-1"
	Driver      "fglrx"
	Option	    "Monitor-CRT2" "0-CRT2"
	BusID       "PCI:1:0:0"
	Screen      1
EndSection

Section "Screen"
	Identifier "amdcccle-Screen[1]-0"
	Device     "amdcccle-Device[1]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "amdcccle-Screen[1]-1"
	Device     "amdcccle-Device[1]-1"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
It was generated by the Catalyst Control Pannel, changing "Screen" under "amdcccle-Device[1]-1" just gives me two cloned displays. I think I should be useing aticonfig for this but I can't figure out what args to pass it(and the docs when you give no args don't help)
Hmm... maybe I should aks this on the ATI froum(if someone can't help me here)
 
Old 04-08-2013, 03:20 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I notice that you monitor sections both contain the Option "Position" "0 0" line. Those may be conflicting your absolute position settings in your "ServerLayout" section. Since they are unnecessary, try commenting them out and restarting you X-server.
 
Old 04-08-2013, 04:09 PM   #5
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
That did not fix the problem. I put a "Screen 1" under the section and chanaged the current "Screen 1" to screen 0. I noticed that if you change this section at the top:
Code:
Section "ServerLayout"
	Identifier     "amdcccle Layout"
	Screen      0  "amdcccle-Screen[1]-0" 0 0
	Screen         "amdcccle-Screen[1]-1" 1280 0
EndSection
I can change the "locaiton" of the monitor but I can't seem to make my monitor which is physically on the right the pimary one. I can't chagne the values to negative numbers, the best I can do is eather make the pyhiscal left monitor the pimary(which it is now) or the bigger right monitor the primary and drag things to the right to go to the monoiter on the left(which is a bit accword). For clerty I want the bigger right monitor to be the primay and I want to drag windows to the left smaller monitor. I don't know if this is possible, allthough I think I did it once in KDE with my laptop.

*** I know this paragph is confusing so I hope my bold text makes it more sane.***
 
Old 04-09-2013, 06:30 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Look at the xorg.conf stuff I posted, above. Note the "RightOf" qualifier.
Code:
Section "ServerLayout"
        Identifier     "Dual Monitor"
        Screen      0  "W17q" Absolute 0 0
        Screen      1  "Acer" RightOf "W17q"
EndSection
The "Absolute" in implied in the position, and can be omitted. Note that my (larger) screen (the "Acer") is positioned to the "RightOf" the smaller screen, with no physical position specified.

In any case, I think you may have confused yourself with a concept of a "primary" screen.

What the "ServerLayout" section is doing, is describing a single "logical" screen with one, single physical display unit in the top,left of that assembly of display units. That display unit is identified as the display with the (0,0) position in its top,left corner. What the X-server does (among other things) is position windows created by the display manager in various positions in the single, logical display.

No display unit in the single logical display is any more "primary" than any other one.

Have you looked a the manual page for xorg.conf? All this stuff is described there.
 
Old 04-09-2013, 09:10 PM   #7
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Doh! I should have checked for a Xorg.conf mannual! And I'm trying to get X-windows to act like MS-Windows in which monitors act more like indepdent entinties. By "primary" display I mean the one that windows pop up on by default and that has my XFCE pannels on it. Let me give that "rightof" code a try and read the mannual I will report back here in a bit.

Last edited by jamie marchant; 04-09-2013 at 09:12 PM.
 
Old 04-10-2013, 10:08 AM   #8
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok now my Xorg.conf looks like this:
Code:
Section "ServerLayout"
	Identifier     "layout"
        Screen         0 "SynkMaster_screen"
	Screen         1 "NEC_screen" leftOf "SynkMaster_screen"
EndSection

Section "ServerFlags"
	Option	    "Xinerama" "on"
        Option      "DontZap" "false"
EndSection

Section "Monitor"
	Identifier  "NEC_monitor"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "1280x1024"
	Option	    "TargetRefresh" "60"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Monitor"
	Identifier  "SynkMaster_monitor"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "2048x1152"
	Option	    "TargetRefresh" "60"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Device"
	Identifier  "NEC_device"
	Driver      "fglrx"
	Option	    "Monitor-CRT2" "NEC"
	BusID       "PCI:1:0:0"
        Screen      1
EndSection

Section "Device"
	Identifier  "SynkMaster_device"
	Driver      "fglrx"
	Option	    "Monitor-CRT1" "SynkMaster(Mon)"
	BusID       "PCI:1:0:0"
	Screen      0
EndSection

Section "Screen"
	Identifier "NEC_screen"
	Device     "NEC_device"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "SynkMaster_screen"
	Device     "SynkMaster_device"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Unforchently the NEC(small monitor) is still on the right side of the larger "SysnlMaster" even though they should be the other way around. But my pannels are on the correct screen, which is some inmporvoment.
 
Old 04-10-2013, 11:08 AM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Try this:
Code:
Section "ServerLayout"
	Identifier     "layout"
	Screen         "NEC_screen" 0 0
        Screen         "SynkMaster_screen" RightOf "NEC_screen"
EndSection
Then, when you boot, your default windows will be on the NEC -- where you don't want them -- but you can reposition them on the Synk screen, and tell you system to save your session settings when you exit. Then, when you reboot, they should be "correctly" positioned.

Note: When I was running a dual screen KDE setup, I needed to set up two "task bars," one in each physical window, since KDE distinguishes physical windows when creating widgets.
 
Old 04-10-2013, 12:19 PM   #10
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok now the monioters are back in the correct order, the two "task bars" is a good idea, I have to look into how to do this in XFCE*. Now the question is how do I get fullscreen games to run on the big monoiter instead of the small one?


* I don't have KDE on the computer that I am configuring, only my laptop and it's way to "heavy" for what you get out of it.

EDIT: You can span XFCE pannels across monitors and put a applictionts menu on each side. Apps then appear on the "correct" side by default and can be launched form eather dispaly.

Last edited by jamie marchant; 04-10-2013 at 12:33 PM.
 
Old 04-12-2013, 12:46 PM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Quote:
Originally Posted by jamie marchant View Post
[...]Now the question is how do I get fullscreen games to run on the big monitor instead of the small one?[...]
Can you start the "fullscreen game" in a non-fullscreen mode? If you can, do so and reposition it on the larger display, and then change it to fullscreen mode.

For what you seem to want to do, it might be easier to run your monitors as independent devices and have different workspaces on each one.
 
Old 04-12-2013, 02:34 PM   #12
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme
Can you start the "fullscreen game" in a non-fullscreen mode? If you can, do so and reposition it on the larger display, and then change it to fullscreen mode.
I can run in Windowed, but when I try and pick a new resulstion it only shows ones that can be one on the smaller display, then goes to that display when you hit fullscreen.

Running to independt displays is clower to what I want to do, let me look into that.
 
Old 04-12-2013, 02:57 PM   #13
jamie marchant
LQ Newbie
 
Registered: Nov 2012
Distribution: Fedora 18(64-bit)
Posts: 19

Original Poster
Rep: Reputation: Disabled
Uh... that's better. , I disabled Xinerama makeing two X-envromnets. Now my games run correctly fullscreen. I made a secound pannel(taskbar) for the seocound scren. Uhforchently I seem to have a bug where my theme stlying is missing from the secound desktop(I will have to report this on the bug tracker). Also the only downside is I can't drage Windows from one display to the other(whic is not a hudge problem most of the time)
 
  


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
How to set the font-size for "xterm" terminal-emulator (running "bash" shell) ajaygarg Linux - Desktop 1 03-09-2012 12:38 PM
Dual monitors: swap "monitor 0" and "monitor 1"? hamiltc Ubuntu 1 02-12-2011 12:12 PM
iwconfig mode monitor Error: "Set Mode" (8B06) WOP1337 Linux - Wireless Networking 2 04-03-2007 08:13 AM
"Could not set monitor mode" in AirSnort on LinkSys WPC11 v2 WolfBLN Linux - Wireless Networking 0 04-30-2004 05:14 AM
Airsnort Error "could not set monitor mode" evil357 Linux - Wireless Networking 4 04-24-2004 03:21 PM


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