You are not logged in.

#1 2010-10-21 04:24:09

Gyroscope352
Member
Registered: 2010-10-21
Posts: 2

TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Hey all. Just installed Arch this week and liking it quite a bit--but I'm having one major problem.

I have a dual monitor setup, and using the

nvidia-xconfig --twinview

command got me a desktop on the second monitor. Everything is as I want it--the right monitor is the primary one, the left the secondary. Unfortunately, their arrangement is backwards: To get my mouse to the left monitor, I have to drag it to the right side of the right screen. Here's my xorg.conf:


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 260.19.12  (buildmeister@builder101)  Fri Oct  8 11:$

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.12  (buildmeister@builder101)  Fri Oct  8 11$

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" Absolute 1920 0
    Screen      1  "Screen1" LeftOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    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      "Acer P235H"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Acer P235H"
    HorizSync       31.0 - 84.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9800 GT"
    BusID          "PCI:3:0:0"
    Screen          0
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I assume the

    Screen      0  "Screen0" Absolute 1920 0
    Screen      1  "Screen1" LeftOf "Screen0"

part is where I would fix this, but no matter what I seem to put in there, whether changing the first line to Absolute 0 0 or the second line to Rightof "Screen0", I can't seem to get anything to change. What am I missing?

My other problem is that I can't seem to run

sudo nvidia-settings

either. When I try, it just says No protocol specified. ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information."

Any help anyone could give would be greatly appreciated. I've scoured the forums, wiki and Google and I haven't found anything that's worked for me.

Offline

#2 2010-10-21 04:51:04

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Have you tried using xrandr instead?

For example, to get an external monitor to the right of my laptop screen, I would use:

xrandr --output VGA1 --right-of LVDS1

Offline

#3 2010-10-21 05:49:41

loci
Member
Registered: 2008-05-11
Posts: 4

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Proofrific's solution worked for me till the other day when for some reason my seccond screen became the main screen.
Adding --primary to the xrandr command fixed it.

Here is my new xrandr command.

xrandr --output LVDS1 --primary --auto --pos 0x0 --output VGA1 --auto --right-of LVDS1  

fixed it.

To see the names of the screens, their default resolutions and the other resolutions they are capable off run 'xrandr' with no options while both screens are connected.

Offline

#4 2010-10-21 11:17:21

ferda
Member
Registered: 2010-02-05
Posts: 67

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Gyroscope352 wrote:
sudo nvidia-settings

you don't need sudo for running nvidia-settings.

why do you have two screens defined in xorg.conf?
this is what mine looks like:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.12  (buildmeister@builder101)  Fri Oct  8 11:46:43 PDT 2010

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Option         "Xinerama" "0"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Chi Mei Optoelectronics corp."
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9300M GS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+1024, DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

The output from DFP-0 is displayed below DFP-1 and DFP-0 is the primary screen.

Offline

#5 2010-10-21 12:47:08

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Well, you do need to have sudo if you want to save the settings in nvidia-settings. Maybe the problem with sudo is that you don't have a DISPLAY set? Or if you do, root doesn't have permission? Try running 'xhost +' first to open up permissions.

Offline

#6 2010-10-21 18:39:24

Gyroscope352
Member
Registered: 2010-10-21
Posts: 2

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

jdarnold, you solution worked perfectly. xhost + opened up the permissions to run sudo nvidia-settings, and then I was able to fix everything from the GUI. Thanks!!!

I also deleted my xorg.conf and wrote the new settings to /etc/X11/xorg.conf.d/10-monitor.conf as described in the wiki: http://wiki.archlinux.org/index.php/Xor … r_settings at the advice of a friend.

(On another note, how do I mark a thread as solved?)

Last edited by Gyroscope352 (2010-10-21 18:41:14)

Offline

#7 2010-10-21 19:00:40

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: TwinView Monitor Arrangement is Backward, Xorg.conf Changes Not Helpin

Gyroscope352 wrote:

(On another note, how do I mark a thread as solved?)

Edit the original post and prepend [solved] to the title

Offline

Board footer

Powered by FluxBB