Author Topic: Dual DVI screen orientation setup (and remember) problem (Fixed with BIG HAMMER)  (Read 1237 times)

Offline HWDude

  • Full Member
  • ***
  • Posts: 193
  • HWDude
    • N8OBJ's Home Page
Re: Dual DVI screen orientation setup (and remember) problem
« Reply #15 on: January 09, 2013, 08:43:39 AM »
HWDude, have you set your script file (SetScrnPos.sh) to be executable ?
Right click file > Properties > Permission > Checkmark the 'Is executable'

or

chmod 755 SetScrnPos.sh


Ferry_th,

Yes, I did set the file permissions to be executable (via chmod 755) on the script file.  I even added the first line of the script file as "#! /bin/bash" and it made no difference.

I am looking at the two identical screens right now after the boot, and the krandrrc file (with the screens borked) looks like:

[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output DVI-I-2 --pos 1920x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-3 --pos 0x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-2 --primary

[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1

[Screen_0_Output_DVI-I-2]
Active=true
Rect=1920,0,1920,1080
RefreshRate=60
Rotation=1

[Screen_0_Output_DVI-I-3]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1

[Screen_0_Output_default]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1


I then apply the fix script, the screens come back to the correct configuration and krandrrc looks like:


[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output DVI-I-2 --pos 1920x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-3 --pos 0x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-2 --primary

[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1

[Screen_0_Output_DVI-I-2]
Active=true
Rect=1920,0,1920,1080
RefreshRate=60
Rotation=1

[Screen_0_Output_DVI-I-3]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1

[Screen_0_Output_default]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1


They look the same to me ... ???

I wonder if PCLOS / KDE4 is getting confused with my NVIDIA card using DVI outputs 2 & 3 (and not referenced as 0 and 1) or something goofy like that.  The video card has 2 DVI outputs and one HDMI output, and the motherboard has 1-DVI / 1-15 pin DSUB outputs (which I am not using). 

HWDude
Welcome My Son -- Welcome -- To -- The Machine ; Pink Floyd "Wish You Were Here"


Offline HWDude

  • Full Member
  • ***
  • Posts: 193
  • HWDude
    • N8OBJ's Home Page
Re: Dual DVI screen orientation setup (and remember) problem
« Reply #16 on: January 10, 2013, 01:11:38 PM »
I took a look at the total video configuration in CYD->HW->D&M->S&O and found out something that may help whomever the PCLOS/KDE4 Guru figure out what's going on.

My video configuration looks like:

DVI-I-0    not used

DVI-I-1    not used

DVI-I-2   res 1920x1080 pos (1920,0)

HDMI-0   not used

DP-0    not used

DVI-I-3   res 1920x1080 pos (0,0)

DP-1    not used

Certainly lots of places for the OS to get confused!


HWDude

« Last Edit: January 10, 2013, 01:13:53 PM by HWDude »
Welcome My Son -- Welcome -- To -- The Machine ; Pink Floyd "Wish You Were Here"


Offline ferry_th

  • Full Member
  • ***
  • Posts: 230
  • I don't think, therefore I'm not.
Re: Dual DVI screen orientation setup (and remember) problem
« Reply #17 on: January 11, 2013, 10:03:12 AM »
Alternative solution that cross my mind is to use NVIDIA graphic setting software. There should be a setting about multiple monitor there.  I don't have NVidia card here, so I can't guide you. Make a backup of your /etc/X11/xorg.conf first, just in case.
« Last Edit: January 11, 2013, 10:09:46 AM by ferry_th »
To troll or not to troll, that is the question.

Offline HWDude

  • Full Member
  • ***
  • Posts: 193
  • HWDude
    • N8OBJ's Home Page
Re: Dual DVI screen orientation setup (and remember) problem
« Reply #18 on: January 12, 2013, 03:45:28 PM »
Alternative solution that cross my mind is to use NVIDIA graphic setting software. There should be a setting about multiple monitor there.  I don't have NVidia card here, so I can't guide you. Make a backup of your /etc/X11/xorg.conf first, just in case.

Ferry_th,

I took your suggestion and ran with it.  I did (after 2 1/2 hours of fighting with utils that don't quite work right) get the outcome I was looking for.

First, I saved the original /etc/X11/xorg.conf file as /etc/X11/xorg.conf.orig for "anti-borkage" protection.

Then I fired up the NVIDIA X Server Settings window.   It said both screens were deactivated and named DFP-0 and DFP-3 and it had DFP-3 to the right of DFP-0 (backwards).

After several iterations and trials I figured out that you have to enable the screens first to be allowed to move them. After more trials I figured you need to enable the first one (either one) and when you enable the 2nd one you want "Twinview".  This then allows you to move the screens (only the movements have to be in a specific order and direction to be able to swap the two monitors - took some trial and error to figure this out as well).  I then set both positions to "absolute" (you need to click on the "Advanced Settings" to see this).  I also set DFP-0 as the primary screen for the X Screen.  I then tried to "Save to X configuration file".  Now the fun starts.  It now complained that there were insufficient privileges to write the xorg.conf file.  Going to /etc/X11/xorg.conf the permissions were set to 664.  Ok, I'll play hardball and went in as root and changed them to 777.  Tried to save the file again and now it complained that it had no privileges to write xorg.conf.backup.  The file doesn't even exist!  So I made a copy of xorg.conf and called it xorg.conf.backup.  I even did a chmod 777 to it to be sure.  Tried to write the file again and it still complained about the backup file.  ARHG!  Getting nowhere fast.

Well, after playing with it for a while longer I discovered the it was NOT writing to the xorg.conf file at all no matter what I did (either in append to existing file or not). So, I did the complete setup so it was correct, then did a preview of the changes, copied them into the cut buffer and using nano edited the xorg.conf file (deleted the ENTIRE contents first then pasted the cut buffer).  Saved it and rebooted (for the n'th time).  

It worked!   ;D ;D ;D ;D ;D ;D

Phew..... Then went back and corrected the file permissions to 664 on the xorg.conf files (and their derivatives).  And deleted the xorg.conf.backup file.


So the "NEW final" xorg.conf file now looks like:


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.51  (neal@localhost.localdomain)  Thu Oct 11 02:30:43 EDT 2012

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    FontPath        "unix/:7100"
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 data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer H243H"
    HorizSync       31.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 560 SE"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +1920+0, DFP-3: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


So there appears to be "multiple bugs" in the user interface for setting up dual monitors (KDE4 and/or PCLOS, I'm not sure).  
Definitely not a mod for the faint of heart or someone who has very little patience... ;)

And who the heck is (neal@localhost.localdomain)?

 ---> The OS gurus STILL have their work cut out for them.. <---  :'(

Many thanks to Ferry_th (et. all) for your helpful assistance!

HWDude
« Last Edit: January 12, 2013, 05:18:29 PM by HWDude »
Welcome My Son -- Welcome -- To -- The Machine ; Pink Floyd "Wish You Were Here"