Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]External Monitor - flips side on login
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
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1589
Location: Adelaide/Australia

PostPosted: Fri Jul 29, 2011 5:00 am    Post subject: [Solved]External Monitor - flips side on login Reply with quote

I have my HP EliteBook 8540w with an external monitor.
I recently shuffled things around and moved the second, external monitor from the left to the right side.
When I see my gdm login screen, the mouse moves between screens, as expected.
When I login, my fluxbox session swaps the monitors, left to right.
I have to run nvidia-settings, swap the screens and apply to fix things up again.

The external monitor is 1920x1200, whilst the laptop screen is 1920x1080.
I want the bottoms of each screen to 'align' so I can see the fluxbox icon bar at the bottom, hence the +120 in the xorg.conf files, shown below.

I am a loss as to why this happens.

My original (pre-move) xorg.conf was :-
Code:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
#    InputDevice    "Joystick0" "SendCoreEvents"
    Option         "Xinerama" "0"
EndSection

Section "ServerFlags"
    # Option         "DefaultServerLayout" "DualSingleDesktop"
    Option         "AutoAddDevices" "false"
    Option         "AutoEnableDevices" "true"
    Option         "AllowEmptyInput" "true"
# Screen blanking, 1 hour - primarily so I don't have it blank during movie playback.
    Option         "BlankTime" "60"
    Option         "StandbyTime" "0"
    Option         "SuspendTime" "0"
    Option         "OffTime" "60"
#    Option       "Xinerama"       "true"
    Option         "TwinView" "true"
    Option         "TwinViewOrientation" "RightOf"
    Option         "IgnoreDisplayDevices" "TV"
    Option         "UseEvents" "true"
    Option       "BackingStore"  "1"
EndSection

Section "InputDevice"
    Identifier     "Joystick0"
    Option      "Path"     "/dev/input/js0"
    Driver         "joystick"
EndSection

Section "InputDevice"

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

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LGD"
    DisplaySize     344    194
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS"
   # Option        "PreferredMode" "1920x1080"
        # 13.54 x 7.59 inches
        # 34.4 x 19.4 cm
   # 142 Pixels per inch
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    Option       "BackingStore"  "1"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 880M"
    Option       "BackingStore"  "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoPowerConnectorCheck" "false"
    Option         "NoLogo" "true"
    Option         "AddARGBGLXVisuals" "true"
    Option         "UseEvents" "false"
    Option         "RenderAccel" "true"
    Option         "HWcursor"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +1920+120, DFP-3: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


My new xorg.conf is now the following (you may notice I am attempting to setup auto docking/undocking)

Code:
# Docked Section

Section "ServerLayout"
    Identifier     "Docked"
    Screen      0  "Screen0_Docked" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
#    InputDevice    "Joystick0" "SendCoreEvents"
    Option         "Xinerama" "0"
EndSection

Section "ServerLayout"
    Identifier     "Undocked"
    Screen      0  "Screen0_Undocked" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
#    InputDevice    "Joystick0" "SendCoreEvents"
    Option         "Xinerama" "0"
EndSection

Section "ServerFlags"
    Option         "DefaultServerLayout" "Docked"
    Option         "AutoAddDevices" "false"
    Option         "AutoEnableDevices" "true"
    Option         "AllowEmptyInput" "true"
# Screen blanking, 1 hour - primarily so I don't have it blank during movie playback.
    Option         "BlankTime" "60"
    Option         "StandbyTime" "0"
    Option         "SuspendTime" "0"
    Option         "OffTime" "60"
#    Option       "Xinerama"       "true"
    Option         "TwinView" "true"
    Option         "TwinViewOrientation" "RightOf"
    Option         "IgnoreDisplayDevices" "TV"
    Option         "UseEvents" "true"
    Option       "BackingStore"  "1"
EndSection

Section "InputDevice"
    Identifier     "Joystick0"
    Option      "Path"     "/dev/input/js0"
    Driver         "joystick"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LGD"
    DisplaySize     344    194
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 880M"
    Option       "BackingStore"  "1"
EndSection

Section "Screen"
    Identifier     "Screen0_Docked"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoPowerConnectorCheck" "false"
    Option         "NoLogo" "true"
    Option         "AddARGBGLXVisuals" "true"
    Option         "UseEvents" "false"
    Option         "RenderAccel" "true"
    Option         "HWcursor"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+120, DFP-3: nvidia-auto-select +1920+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0_Undocked"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoPowerConnectorCheck" "false"
    Option         "NoLogo" "true"
    Option         "AddARGBGLXVisuals" "true"
    Option         "UseEvents" "false"
    Option         "RenderAccel" "true"
    Option         "HWcursor"
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Any suggestions?
_________________
...Lyall


Last edited by lyallp on Tue Aug 02, 2011 3:43 am; edited 1 time in total
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1589
Location: Adelaide/Australia

PostPosted: Tue Aug 02, 2011 3:42 am    Post subject: Reply with quote

Figured it out.
I had a script which I ran at login to adjust my screen positions, based on my docking status.
I had forgotten to change the screen position config files when I swapped my monitors around.
See https://forums.gentoo.org/viewtopic-t-887514.html
_________________
...Lyall
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