You are not logged in.

#1 2009-03-21 01:33:55

alexsuraci
Member
Registered: 2008-09-27
Posts: 15

[SOLVED] Switching primary and secondary display

I recently upgraded from my placeholder 8600 GTS to a GTX 285 (I game in Windows), and now Arch/X11 is detecting my displays in reverse. Primary is secondary and secondary is primary.

It's correct in Windows and any other part of the system (e.g. bootup, BIOS, GRUB, Arch without X started), but X11 seems to think the one on the right is display 0 and the one on the left is display 1. I've swapped them around in nvidia-settings, but xmonad, xmobar, et. al. still consider the right screen "primary" they both start out there and consider it the first monitor.

Is there a setting I can pop in my xorg.conf to correct this?

Last edited by alexsuraci (2009-03-21 03:27:32)

Offline

#2 2009-03-21 01:58:16

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] Switching primary and secondary display

I think there is something that can be added to Xorg, however I do not know what it is. You might want to post your xorg config.


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2009-03-21 02:01:03

alexsuraci
Member
Registered: 2008-09-27
Posts: 15

Re: [SOLVED] Switching primary and secondary display

Woops, here's my xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder62)  Thu Feb  5 00:09:30 PST 2009

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Thu Feb  5 00:08:50 PST 2009
# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfg

Section "ServerLayout"

# PS/2 Mouse not detected
# Serial Mouse not detected
    Identifier     "Xorg Configured"
    Screen      0  "Screen0" RightOf "Screen1"
    Screen      1  "Screen1" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#    FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#    FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/ttf/western"
    FontPath        "/usr/share/fonts/ttf/decoratives"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/truetype/openoffice"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/latex-ttf-fonts"
    FontPath        "/usr/share/fonts/defoma/CID"
    FontPath        "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    Load           "type1"
    Load           "freetype"
    Load           "record"
    #   Load  "synaptics"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "AutoAddDevices" "False"
    Option         "Xinerama" "1"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
    Option         "XkbVariant" ""
EndSection

Section "InputDevice"
    Identifier     "Serial Mouse"
    Driver         "mouse"
    Option         "Protocol" "Microsoft"
    Option         "Device" "/dev/ttyS0"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL E207WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL E207WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "All"
    BoardName      "All"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 285"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 285"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+0; DFP-0: 800x600 +0+0; DFP-0: 640x480 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Offline

#4 2009-03-21 02:11:15

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] Switching primary and secondary display

I think these two lines are your problem:

  Screen      0  "Screen0" RightOf "Screen1"
  Screen      1  "Screen1" 0 0

Try something like this:

    Screen      "Screen0"
    Screen      "Screen1" RightOf "Screen0"

http://wiki.osuosl.org/display/howto/Se … +xorg.conf

This is only a guess, someone with a nvidia card can probably be of more help.

Last edited by pyther (2009-03-21 02:12:35)


Website - Blog - arch-home
Arch User since March 2005

Offline

#5 2009-03-21 02:21:50

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Switching primary and secondary display

well then - thanks for your xorg.conf wink


Did you try the option in nvidia-settings that says: "Make this the primary display for the x screen"? (it's easy to overlook below "position")?

Perhaps this is the line you're searching for:
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
... my xorg.conf is a huge mess, but this one is the only one that looks a little like it.


good luck!

Offline

#6 2009-03-21 02:49:09

alexsuraci
Member
Registered: 2008-09-27
Posts: 15

Re: [SOLVED] Switching primary and secondary display

@pyther: I'm pretty sure that'll just reverse what I outlined in the first post, but thanks, I'll try it and report back. Edit: Yep, just reverses it.

@all: Basically it's acting as if the DVI cables are switched. The edges are in the middle, and moving my mouse to the outer sides brings me to the other display. If I were drunk I'd probably panic and go to bed.

whoops wrote:

well then - thanks for your xorg.conf wink


Did you try the option in nvidia-settings that says: "Make this the primary display for the x screen"? (it's easy to overlook below "position")?

Perhaps this is the line you're searching for:
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
... my xorg.conf is a huge mess, but this one is the only one that looks a little like it.


good luck!

I don't see that option: http://toogeneric.com/files/2009-03-20- … -scrot.png

NVIDIA Drivers 180.29, NV Control 1.17

Last edited by alexsuraci (2009-03-21 02:52:40)

Offline

#7 2009-03-21 03:03:10

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Switching primary and secondary display

hmh....

http://s2.imgimg.de/uploads/uhmbfa6f1d3jpg.jpg


edit: wait....:

http://s2.imgimg.de/uploads/uhm942a98f6jpg.jpg

edit2:
almost...
yupp, same driver, same nv-control version,

Last edited by whoops (2009-03-21 03:08:34)

Offline

#8 2009-03-21 03:27:14

alexsuraci
Member
Registered: 2008-09-27
Posts: 15

Re: [SOLVED] Switching primary and secondary display

Most likely because you have it in TwinView.

Edit: Yep! I switched it to TwinView instead of Xinerama and it's all fixed now (I ticked the checkbox, too.). Thanks!

Offline

Board footer

Powered by FluxBB