xorg.conf, sax2 & nvidia-xconfig

Hi,

I noticed this a while ago but never really found the answer to the following:

I installed the nvidia drivers manually as is posted in this forum, using the init 3, install, sax2 -r -m 0=nvidia, init 5 :slight_smile:

All is fine, I adjusted some settings in the nvidia x server settings window like monitor mhz and saved it, reason I did it here is that the nivdia tool showed me the correct lcd (190) while sax2 showed me the wrong one (109), so I sort of thought, well if this tools sees the right one lets use that :). I noticed that you need to have root rights for saving to work so did that.

Another reason I used the nvidia tool is that as an ex-windows user that sort of is the place you change stuff.

Still all is fine, however since that moment when I start sax2 stuff via yast I get the message: “cannot deactivate all displays, at least one display must be active”.

Sax2 still continues but sees a vesa framebuffer graphics card, so far no big deal until I make a change, now this change can be for the keyboard properties or anything else in the sax2 window, after the change X will not start after a reboot, of course I can restore the old xorg.conf or run sax2 -r -m 0=nvidia but this makes me wonder…

Sax2 does not like the changes the nvidia program makes to the xorg.file.

nvdia driver or is it X does start fine if the xorg.file is generated cleany by sax2, adjusting the file after that with the nvidia still makes X start the nvidia drivers without problem, but making a change via sax2 after that will break it all.

I did notice that while sax2 seems to talk about device[0] or monitor[0] or screen[0] the nvidia tool seems to talk about device0 monitor0 and screen0 in the xorg.conf file.

as I said its no big deal, always a way around it but I do wonder is this by design, a bug, am I doing something wrong or should it be a big no no to use the nvidia tool to change stuff under suse ?

I added my current xorg.conf so you can see what I mean.

thanks for any info :slight_smile:

Xil

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Mon Mar 23 15:33:27 PST 2009
# /.../
# SaX generated X11 config file
# Created on: 2008-06-29T10:55:53+0200.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "ServerLayout"
    Identifier     "Layout[all]"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard[0]" "CoreKeyboard"
    InputDevice    "Mouse[1]" "CorePointer"
    InputDevice    "Mouse[3]" "SendCoreEvents"
    Option         "Clone" "off"
    Option         "Xinerama" "off"
EndSection

Section "Files"
    InputDevices      "/dev/gpmdata"
    InputDevices      "/dev/input/mice"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/URW"
    FontPath        "/usr/share/fonts/Speedo"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/opt/kde3/share/fonts"
    FontPath        "/usr/local/share/fonts"
EndSection

Section "Module"
    Load           "dbe"
    Load           "type1"
    Load           "freetype"
    Load           "extmod"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "on"
    Option         "ZapWarning" "on"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Keyboard[0]"
    Driver         "kbd"
    Option         "Protocol" "Standard"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "microsoftpro"
    Option         "XkbRules" "xfree86"
EndSection

Section "InputDevice"
    Identifier     "Mouse[1]"
    Driver         "evdev"
    Option         "InputFashion" "Mouse"
    Option         "Name" "Logitech Media Play Mouse"
    Option         "Pass" "3"
    Option         "Vendor" "Sysp"
    Option         "evBits" "+1-2"
    Option         "keyBits" "~272-287"
    Option         "relBits" "~0-2 ~6 ~8"
EndSection

Section "InputDevice"
    Identifier     "Mouse[3]"
    Driver         "mouse"
    Option         "Buttons" "5"
    Option         "Device" "/dev/input/mice"
    Option         "Name" "ImPS/2 Generic Wheel Mouse"
    Option         "Protocol" "explorerps/2"
    Option         "Vendor" "Sysp"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Modes"
    Identifier         "Modes[0]"
EndSection

Section "Monitor"
    Identifier     "Monitor[0]"
    VendorName     "PHILIPS"
    ModelName      "109S (109S1)"
    UseModes       "Modes[0]"
    DisplaySize     340    270
    HorizSync       30.0 - 92.0
    VertRefresh     50.0 - 160.0
    Option         "CalcAlgorithm" "XServerPool"
    Option         "DPMS"
    Option         "PreferredMode" "1280x1024"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Philips 190S5"
    HorizSync       30.0 - 82.0
    VertRefresh     56.0 - 76.0
EndSection

Section "Device"
    Identifier     "Device[0]"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "GeForce 8800 GT"
    BusID          "4:0:0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
EndSection

Section "Screen"
    Identifier     "Screen[0]"
    Device         "Device[0]"
    Monitor        "Monitor[0]"
    DefaultDepth    24
    SubSection     "Display"
        Depth       15
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "1280x1024_75 +0+0; 1280x1024 +0+0; 1280x960 +0+0; 1152x864 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "off"
EndSection

In my experience - that’s many hours spent trying to make dual monitors work with one rotated - Sax2 is the one to be avoided. Simply stick to nvidia-config, with a little manual editing of xorg-conf when needed, and you’ll be alright.

Agreed. Use the proprietary config tools where available, hand editing where necessary, and sax2 as a last resort.

thanks,

guess will start to clean my xorg.org file up then to remove the double sax2 stuff :slight_smile: