NVidia X Server Settings - Making Permanent

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rtX

NVidia X Server Settings - Making Permanent

Post by rtX »

I have two screens attached to a 9500GT. When I make changes in the NVidia X-Server Settings dialogue (under X Server Display Configuration) - specifically, when I change the primary display, the change only has effect (after pressing "Apply") for the session and does not survive a re-boot. I have tried "Save to X Configuration File", but that did not work. I even renamed the existing etc/X11/xorg.conf file and then saved a new version from the NVidia X Server Settings program. This did not work either but I did see a new file was created.

Please could someone advise?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cwsnyder

Re: NVidia X Server Settings - Making Permanent

Post by cwsnyder »

Questions: Have you checked the nVidia 9500GT specifications? Perhaps one connector is hardware pre-selected as the primary display during the boot process, in which case you should be able to swap connectors to get the display primary to swap.
kwisher

Re: NVidia X Server Settings - Making Permanent

Post by kwisher »

When I select the "Save to X Configuration File", a dialog opens with the path /etc/X11/xorg.conf. When I select "Save" from this dialog, I am prompted for my password and the file is saved.

Is this not working for you?
rtX

Re: NVidia X Server Settings - Making Permanent

Post by rtX »

cwsnyder: Using LM13, the other screen was the primary, so I think the primary display is not 'hard-wired'. I have only had this issue since I performed a fresh install upgrade to LM14. Also, I can make the change to the primary display, but it does not survive a re-boot despite chnaging the X configuration file.

kwisher: I think the file is being saved, but next time I boot the displays have switched back...
kwisher

Re: NVidia X Server Settings - Making Permanent

Post by kwisher »

rtX wrote:cwsnyder: Using LM13, the other screen was the primary, so I think the primary display is not 'hard-wired'. I have only had this issue since I performed a fresh install upgrade to LM14. Also, I can make the change to the primary display, but it does not survive a re-boot despite chnaging the X configuration file.

kwisher: I think the file is being saved, but next time I boot the displays have switched back...
Try starting nvidia settings as root using "gksu nvidia-settings" and then save the file. I had to do that on older versions of ubuntu/mint in the past.
rtX

Re: NVidia X Server Settings - Making Permanent

Post by rtX »

Interesting...

When I start nvidia-settings as a superuser, I get an error/warning message when I try to save the X configuration file (which I did not get previously). The message asks if I want to truncate the MetaMode list, warning that MetaMode strings greater than 900 characters are not supported. I am given the option of truncating so that only the first 38 MetaModes are written or risk the X server failing to start if I do not truncate.

This is the content of the untruncated version (which I have not saved):

Code: Select all

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.51  (buildd@batsu)  Fri Oct 12 12:53:54 UTC 2012


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

Section "Files"
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"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Bit 3 LE22A3"
    HorizSync       31.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

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

Section "Screen"

# Removed Option "metamodes" "DFP: nvidia-auto-select +1680+0, CRT: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0; CRT: 1680x1050 +0+0; CRT: 1680x1050_60 +0+0; CRT: 1680x1050_60_0 +0+0; CRT: 1440x900 +0+0; CRT: 1440x900_75 +0+0; CRT: 1440x900_60 +0+0; CRT: 1400x1050 +0+0; CRT: 1400x1050_75 +0+0; CRT: 1280x1024 +0+0; CRT: 1280x1024_75 +0+0; CRT: 1152x864 +0+0; CRT: 1152x864_75 +0+0; CRT: 1024x768 +0+0; CRT: 1024x768_75 +0+0; CRT: 1024x768_70 +0+0; CRT: 1024x768_60 +0+0; CRT: 800x600 +0+0; CRT: 800x600_75 +0+0; CRT: 800x600_72 +0+0; CRT: 800x600_60 +0+0; CRT: 800x600_56 +0+0; CRT: 640x480 +0+0; CRT: 640x480_75 +0+0; CRT: 640x480_72 +0+0; CRT: 640x480_60 +0+0; CRT: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0"
# Removed Option "metamodes" "CRT: nvidia-auto-select +0+0; CRT: 1680x1050 +0+0; CRT: 1680x1050_60 +0+0; CRT: 1680x1050_60_0 +0+0; CRT: 1440x900 +0+0; CRT: 1440x900_75 +0+0; CRT: 1440x900_60 +0+0; CRT: 1400x1050 +0+0; CRT: 1400x1050_75 +0+0; CRT: 1280x1024 +0+0; CRT: 1280x1024_75 +0+0; CRT: 1152x864 +0+0; CRT: 1152x864_75 +0+0; CRT: 1024x768 +0+0; CRT: 1024x768_75 +0+0; CRT: 1024x768_70 +0+0; CRT: 1024x768_60 +0+0; CRT: 800x600 +0+0; CRT: 800x600_75 +0+0; CRT: 800x600_72 +0+0; CRT: 800x600_60 +0+0; CRT: 800x600_56 +0+0; CRT: 640x480 +0+0; CRT: 640x480_75 +0+0; CRT: 640x480_72 +0+0; CRT: 640x480_60 +0+0; CRT: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP: nvidia-auto-select +1680+0, CRT: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0; CRT: 1680x1050 +0+0; CRT: 1680x1050_60 +0+0; CRT: nvidia-auto-select +0+0; CRT: 1680x1050_60_0 +0+0; CRT: 1680x1050 +0+0; CRT: 1440x900 +0+0; CRT: 1680x1050_60 +0+0; CRT: 1440x900_75 +0+0; CRT: 1680x1050_60_0 +0+0; CRT: 1440x900_60 +0+0; CRT: 1440x900 +0+0; CRT: 1400x1050 +0+0; CRT: 1440x900_75 +0+0; CRT: 1400x1050_75 +0+0; CRT: 1440x900_60 +0+0; CRT: 1280x1024 +0+0; CRT: 1400x1050 +0+0; CRT: 1280x1024_75 +0+0; CRT: 1400x1050_75 +0+0; CRT: 1152x864 +0+0; CRT: 1280x1024 +0+0; CRT: 1152x864_75 +0+0; CRT: 1280x1024_75 +0+0; CRT: 1024x768 +0+0; CRT: 1152x864 +0+0; CRT: 1024x768_75 +0+0; CRT: 1152x864_75 +0+0; CRT: 1024x768_70 +0+0; CRT: 1024x768 +0+0; CRT: 1024x768_60 +0+0; CRT: 1024x768_75 +0+0; CRT: 800x600 +0+0; CRT: 1024x768_70 +0+0; CRT: 800x600_75 +0+0; CRT: 1024x768_60 +0+0; CRT: 800x600_72 +0+0; CRT: 800x600 +0+0; CRT: 800x600_60 +0+0; CRT: 800x600_75 +0+0; CRT: 800x600_56 +0+0; CRT: 800x600_72 +0+0; CRT: 640x480 +0+0; CRT: 800x600_60 +0+0; CRT: 640x480_75 +0+0; CRT: 800x600_56 +0+0; CRT: 640x480_72 +0+0; CRT: 640x480 +0+0; CRT: 640x480_60 +0+0; CRT: 640x480_75 +0+0; CRT: nvidia-auto-select +0+0; CRT: 640x480_72 +0+0; CRT: nvidia-auto-select +0+0; CRT: 640x480_60 +0+0; CRT: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Does anyone have any suggestions as to how I might work around this? Many thanks.
McLovin

Re: NVidia X Server Settings - Making Permanent

Post by McLovin »

You have to run the nvidia-settings as root to get it to work properly, the easiest way to do it is to hit alt+f2, and enter

Code: Select all

gksu nvidia-settings
this will allow to save the configuration properly.
rtX

Re: NVidia X Server Settings - Making Permanent

Post by rtX »

McLovin wrote:You have to run the nvidia-settings as root to get it to work properly, the easiest way to do it is to hit alt+f2, and enter

Code: Select all

gksu nvidia-settings
this will allow to save the configuration properly.
Thanks but as I said in my earlier post I already ran it as root. It was then that the error message in my immediately prior post arose. The issue is more likely the size of the file?
DrHu

Re: NVidia X Server Settings - Making Permanent

Post by DrHu »

Well, save your xorg.conf file first as your user or as root (using a different filename, eg xorgconf.sav), and then you can mess with the nvidia setup for the X-server file (xorg.conf) as much as you like, since you will be able to restore (cp, copy or via a file manager) you saved xorg.conf filename as /etc/X11/xorg.conf

Usually the nvidia GUI tool nvidia-settings is A-OK for that file, it edits it correctly for meta-modes
--try it and check..
  • if it (nvidia-settings) removes meta-modes, they are either somewhat duplicating other entries or are necessary for the full potential of your graphics card via nvidia driver file..
McLovin

Re: NVidia X Server Settings - Making Permanent

Post by McLovin »

rtX wrote:
McLovin wrote:You have to run the nvidia-settings as root to get it to work properly, the easiest way to do it is to hit alt+f2, and enter

Code: Select all

gksu nvidia-settings
this will allow to save the configuration properly.
Thanks but as I said in my earlier post I already ran it as root. It was then that the error message in my immediately prior post arose. The issue is more likely the size of the file?
You could also try backing up your /etc/X11/xorg,conf and then open a terminal and run this

Code: Select all

sudo nvidia-xconfig
and see if that helps at all
Locked

Return to “Graphics Cards & Monitors”