Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg.conf setup for multiple monitors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kiskoller
n00b
n00b


Joined: 30 Oct 2010
Posts: 65

PostPosted: Fri Nov 05, 2010 11:10 am    Post subject: xorg.conf setup for multiple monitors Reply with quote

hello guys, i have problems with my mltiple monitor setup.I have an 1280x1024 and a 2048x1152 monitor.
What i want is, to be able to drag windows from one monitor to another, and to maximize windows to only one window, so dont stretch them across both monitors. Also, to NOT strech panels either. It worked with previous Linux distro-s, with nvidia drivers and Twinview. But now it it maximizes the windows in both monitors.. I read some howto's and most of them says i should use separate X screen with xinerama, but that does not work either...

please help me!

my xorg.conf:
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (root@kiskoller-PC)  Mon Nov  1 15:31:03 CET 2010


Section "ServerLayout"

# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Arnos Instruments F-417"
    HorizSync       24.0 - 80.0
    VertRefresh     49.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 60.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    BusID          "PCI:5:0:0"
    Screen          1
EndSection

Section "Screen"


    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-1"
    Option         "metamodes" "CRT: 1280x1024_60 +0+0, DFP: 2048x1152 +1280+0; CRT: 1280x1024_75 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP: 2048x1152_60 +0+0"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: 2048x1152 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection



regards,

kiskoller
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Fri Nov 05, 2010 1:28 pm    Post subject: Reply with quote

I use xinerama and it works to maximize on each "monitor". :o
no idea about panels, they are superfluous anyway - long live openbox wm. ;)

you may check my config here:
http://geki.ath.cx/hacks/xorg.conf
_________________
hear hear
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Fri Nov 05, 2010 2:16 pm    Post subject: Reply with quote

/etc/make.conf


USE="xinerama"


build xorg-server whit xinerama flag and you
can drag your windows between your screens
Back to top
View user's profile Send private message
kiskoller
n00b
n00b


Joined: 30 Oct 2010
Posts: 65

PostPosted: Fri Nov 05, 2010 2:48 pm    Post subject: Reply with quote

I added xinerama to my use flags and recompiled x-server, still it behaves exactly the same way.
separate x screen without xinerama = everything is perfect except im unable to drag windows
separate x sreen with xinerama = same as twinview = panels are stretched in both monitors, maximize stretches to both monitors too, butat least i can drag windows from 1 monitor to the second.
with other linux distros i used twinview and everything worked perfectly
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Fri Nov 05, 2010 3:06 pm    Post subject: Reply with quote

Which desktop environment do you use?

You'll have to rebuild all parts of your system which use the xinerama flag, especially if you use KDE. Without the xinerama flag, KDE does what you describe, and it's possible that GNOME is similar in this respect.

This sort of stuff is easily configured using xrandr, but the nvidia blob does not support important recent xrandr changes, so you have to use xinerama.
Back to top
View user's profile Send private message
kiskoller
n00b
n00b


Joined: 30 Oct 2010
Posts: 65

PostPosted: Fri Nov 05, 2010 4:29 pm    Post subject: Reply with quote

im using gnome. I did an emerge gnome, it didnt recompile so my added xinerama flag didnt change anything about the DE. but any case, im doing an emerge world, hope it will solve the prob.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Fri Nov 05, 2010 5:18 pm    Post subject: Reply with quote

kiskoller

it could be just as simple as:


emerge -av xf86-input-mouse


otherwise.i did not see a serverflags section.set xinerama on in a section and check your xorg.log
to confirm it.

xorg.conf


Section "ServerFlags"
Option Xinerama "on"
EndSection
Back to top
View user's profile Send private message
kiskoller
n00b
n00b


Joined: 30 Oct 2010
Posts: 65

PostPosted: Fri Nov 05, 2010 5:26 pm    Post subject: Reply with quote

nope, that didn't work either... anyway, I will reinstall gentoo in a week or too (my brand new SSD has arrived 8) ) and I will use KDE as desktop enviroment, there is a probability that with KWin it will work perfectly.
Back to top
View user's profile Send private message
kiskoller
n00b
n00b


Joined: 30 Oct 2010
Posts: 65

PostPosted: Sun Dec 05, 2010 4:21 pm    Post subject: Reply with quote

the solution was adding "xinerama" to the USE flags. that way, and enabling xinerama, everything is working fine with metacity, kwin, and awesome (those are the WM's I've tried) So my problem is basically solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum