Re: [SLUG] resolution will not save --SOLVED

From: Paul M Foster (paulf@quillandmouse.com)
Date: Wed Sep 16 2009 - 01:01:36 EDT


On Wed, Sep 16, 2009 at 12:13:46AM -0400, Pete Theisen wrote:

> steve szmidt wrote:
>> On Tuesday 15 September 2009, Pete Theisen wrote:
>>
>>>> I did that:
>>>> 1. in the NVIDIA X Server Settings-->X Server Display
>>>> Configuration-->Save to X Configuration File.
>>> I get this error message at that point:
>>>
>>> "Failed to parse existing X config file '/etc/X11/xorg.conf'!"
>>
>> It is trying to save to /etc/X11/xorg.conf where you as a normal user
> do not
>> have write rights.
>>
>> Save the file in your home directory and then as root copy it to /etc/X11,
>> don't forget to chown it to root.
>>
> Hi Steve,
>
> This is it:
>
> Section "Screen"
> Identifier "Default Screen"
> DefaultDepth 24
> EndSection
>
> Section "Module"
> Load "glx"
> Disable "dri2"
> # Disable "dri2"
> EndSection
>
> Section "Device"
> Identifier "Default Device"
> Driver "nvidia"
> EndSection

There's part of your issue right there. You've got about 1/10th of a
real xorg.conf file there. And no modelines settings in it, so of
course, the driver can reset the resolution as it likes.

Just for comparison, below is what a real xorg.conf looks like. Note the
PreferredMode option under the Monitor section. I'm using the older nv
driver, rather than the nvidia driver. I haven't updated X in quite some
time. I supplied the horizontal and vertical refresh frequencies myself,
from the monitor manual. If you make changes to your xorg.conf, monitor
the Xorg.0.log file in /var/log.

###############################################

Section "Files"
        FontPath "/usr/share/fonts/X11/misc"
        FontPath "/usr/X11R6/lib/X11/fonts/misc"
        FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath "/usr/share/fonts/X11/Type1"
        FontPath "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath "/usr/share/fonts/X11/100dpi"
        # FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath "/usr/share/fonts/X11/75dpi"
        # FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        # FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load "bitmap"
        Load "dbe"
        Load "ddc"
        Load "dri"
        Load "extmod"
        Load "freetype"
        Load "glx"
        Load "int10"
        Load "record"
        Load "vbe"
EndSection

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc104"
        Option "XkbLayout" "us"
# Option "XkbOptions" "srvrkeys:none"
        Option "XkbOptions" "ctrl:swapcaps"
EndSection

Section "InputDevice"
        Identifier "Configured Mouse"
        Driver "mouse"
        Option "CorePointer"
        Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/event0"
        Option "Protocol" "ImPS/2"
EndSection

Section "Device"
        Identifier "NVidia"
        Driver "nv"
        BusID "PCI:1:0:0"
EndSection

Section "Monitor"
        Identifier "ViewSonic VA712b"
        Option "DPMS"
        HorizSync 30-70
        VertRefresh 50-160
        Option "PreferredMode" "1280x1024"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Device "NVidia"
        Monitor "ViewSonic VA712b"
        DefaultDepth 24
        SubSection "Display"
                Depth 1
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 4
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 8
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 15
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 16
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 24
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

# 2006-12-16 pmf: kept killing X accidentally
Section "ServerFlags"
        Option "DontZap" "on"
EndSection

Section "ServerLayout"
        Identifier "Default Layout"
        Screen "Default Screen"
        InputDevice "Generic Keyboard"
        InputDevice "Configured Mouse"
EndSection

Section "DRI"
        Mode 0666
EndSection

###################################################

Paul

-- 
Paul M. Foster
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 13:35:01 EDT