LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   saving changes to xorg.conf file; resetting after logoff (https://www.linuxquestions.org/questions/linux-newbie-8/saving-changes-to-xorg-conf-file%3B-resetting-after-logoff-948648/)

linuxandtsm 06-05-2012 11:39 AM

saving changes to xorg.conf file; resetting after logoff
 
Hi all,

OS: OpenSuSe 10.3 on X86_64 with Quadro 4000 Graphics processor

Problem: i made changes to X server display configuration under NVIDIA X server settings and saved changes to X config file by clicking on "Save to X configuration file" and restarted X to make changes take effect. Everything works fine. But when i logoff and login (or login as another user), the changes are lost and one of the two monitors lost its resolution.

How to make changes to xorg.conf file saved ?

Please help me with this.
Thank you!

Below is the xorg.conf file when everything is good

Code:


more /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.44  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Sun Feb 27 22:59:44 PST 2011

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 290.10  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Nov 16 18:47:40 PST 2011

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

Section "Files"
EndSection

Section "Module"
    Load          "dbe"
    Load          "extmod"
    Load          "type1"
    Load          "freetype"
    Load          "glx"
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"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "Ancor Communications Inc ASUS VG236"
    HorizSync      24.0 - 140.0
    VertRefresh    50.0 - 122.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "Quadro 4000"
    Option        "Stereo" "10"
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1920+0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-4: nvidia-auto-select +1920+0"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "Stereo" "10"
    Option        "TwinView" "1"
    Option        "TwinViewXineramaInfoOrder" "DFP-0"
    Option        "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-2: nvidia-auto-select +1920+0"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

Below is xorg.conf file after logoff/login with problem
Code:

more xorg.conf.06052012Err
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.44  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Sun Feb 27 22:59:44 PST 2011

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 290.10  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Nov 16 18:47:40 PST 2011

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

Section "Files"
EndSection

Section "Module"
    Load          "dbe"
    Load          "extmod"
    Load          "type1"
    Load          "freetype"
    Load          "glx"
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"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "Ancor Communications Inc ASUS VG236"
    HorizSync      24.0 - 140.0
    VertRefresh    50.0 - 122.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "Quadro 4000"
    Option        "Stereo" "10"
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1920+0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-4: nvidia-auto-select +1920+0"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "Stereo" "10"
    Option        "TwinView" "1"
    Option        "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-2: nvidia-auto-select +1920+0"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

And also i can see the difference between these two files below.
Code:

diff xorg.conf xorg.conf.06052012Err
71d70
<    Option        "TwinViewXineramaInfoOrder" "DFP-0"

But not sure how to make changes be saved across reboot/logoff

pixellany 06-06-2012 08:15 PM

Just guessing.....

I have not needed to diddle with xorg.conf lately---it it possible that SUSE is using some other config file (and using the info to alter xorg.conf)?


All times are GMT -5. The time now is 10:26 AM.