Nvidia resolution configuration lost after reboot

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

Nvidia resolution configuration lost after reboot

Post by ROUGEXIII »

Hi

I am a new linux mint 17 user,
I have a nvidia graphic card GTX 460
I have 2 monitors : 1xDellU2713HM(mini DVI) and 1xBelinea(with adpater DVI->VGA)
I have a television connected too (Dvi) but the graphic card can only run 2 displays simultaneously so when i work the television is disabled in the nvidia x server settings.

Problem:
Each time i start the computer, the configuration of the Belinea screen is lost, and is set to 1024*768 (witch correspond at the "auto" setting) in order to the normal resolution : 1400x1050 at 60hz
nvidiaxserversetting.png
The xrandr give:

Code: Select all

xrandr
Screen 0: minimum 8 x 8, current 3960 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected 1400x1050+2560+390 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       85.0 +   75.0     70.1     60.0  
   2048x1536      60.0  
   1920x1440      75.0     60.0  
   1920x1200      60.0  
   1920x1080      59.9  
   1856x1392      75.0     60.0  
   1792x1344      75.0     60.0  
   1680x1050      84.9     74.9     69.9     60.0     59.9  
   1600x1200      85.0     75.0     70.0     65.0     60.0  
   1440x900       59.9  
   1400x1050      85.0     74.8     70.0     60.0* 
   1360x768       60.0     59.8  
   1280x1024      85.0     75.0     60.0  
   1280x960       85.0     60.0  
   1152x864       85.1     85.0     75.0     75.0     70.0     60.0  
   960x600        60.0  
   960x540        60.0  
   840x525        85.0     75.0     69.9     60.0     59.9  
   832x624        74.6  
   800x600        85.1     75.0     72.2     60.3     56.2  
   720x450        59.9  
   720x400        85.0  
   700x525        74.8     60.0  
   680x384        60.0     59.8  
   640x480        85.0     75.0     72.8     59.9  
   640x400        85.1  
   640x350        85.1  
   512x384        70.1     60.0  
   400x300        72.2  
   320x240        72.8     60.1  
   320x175        85.3  
DVI-I-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
   1920x1200      59.9  
   1920x1080      60.0  
   1680x1050      60.0  
   1600x1200      60.0  
   1280x1024      75.0     60.0  
   1280x800       59.8  
   1152x864       75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
HDMI-0 connected (normal left inverted right x axis y axis)
   1920x1080      50.0 +   60.0     59.9     30.0     25.0     24.0     60.1     60.0     50.0  
   1360x765       60.0  
   1280x1024      75.0     60.0  
   1280x720       59.9     50.0  
   1024x768       75.0     70.1     60.0  
   800x600        75.0     72.2     60.3  
   720x576        50.0     50.1  
   720x480        59.9     60.1  
   640x480        75.0     72.8     59.9     59.9  
DVI-I-3 disconnected (normal left inverted right x axis y axis)
I tried many solutions but i don't resolve it.
I tried to edit manually the /etc/X11/xorg.conf

Code: Select all

  GNU nano 2.2.6                         Fichier : /etc/X11/xorg.conf                                                         

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildd@roseapple)  Mon Feb  3 15:07:22 UTC 2014

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.113  (buildmeister@swio-display-x64-rhel04-03)  Mon Dec  1 21:15:34 PST 2014

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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-1"
    HorizSync       29.0 - 113.0
    VertRefresh     49.0 - 86.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 460"
EndSection

Section "Screen"

# Removed Option "metamodes" "DVI-I-1: 1400x1050_60 +2560+390, DVI-I-2: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DVI-I-1: 1400x1050_60"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinViewOrientation" "RightOf"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-1: 1400x1050_60 +2560+390, DVI-I-2: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
I tried to edit the /home/user/.config/monitor.xml

Code: Select all

<monitors version="1">
  <configuration>
      <clone>no</clone>
      <output name="DVI-I-1">
          <vendor>DEL</vendor>
          <product>0x407e</product>
          <serial>0x3031324c</serial>
          <width>2560</width>
          <height>1440</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="DVI-I-2">
          <vendor>???</vendor>
          <product>0x0000</product>
          <serial>0x00000000</serial>
          <width>1024</width>
          <height>768</height>
          <rate>60</rate>
          <x>2560</x>
          <y>672</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
      <output name="HDMI-1">
      </output>
  </configuration>
  <configuration>
      <clone>no</clone>
      <output name="DVI-I-0">
      </output>
      <output name="DVI-I-1">
          <vendor>Bel</vendor>
          <product>0x0000</product>
          <serial>0x00000000</serial>
          <width>1400</width>
          <height>1050</height>
          <rate>60</rate>
          <x>2560</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
      <output name="DVI-I-2">
          <vendor>DEL</vendor>
          <product>0x407e</product>
          <serial>0x3031324c</serial>
          <width>2560</width>
          <height>1440</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="HDMI-0">
      </output>
      <output name="DVI-I-3">
      </output>
  </configuration>
  <configuration>
      <clone>no</clone>
      <output name="DVI-I-0">
      </output>
      <output name="DVI-I-1">
          <vendor>Bel</vendor>
          <product>0x0000</product>
          <serial>0x00000000</serial>
          <width>1400</width>
          <height>1050</height>
          <rate>60</rate>
          <x>2560</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
      <output name="DVI-I-2">
          <vendor>DEL</vendor>
          <product>0x407e</product>
          <serial>0x3031324c</serial>
          <width>2560</width>
          <height>1440</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="HDMI-0">
          <vendor>TSB</vendor>
          <product>0x0107</product>
          <serial>0x01010101</serial>
      </output>
      <output name="DVI-I-3">
      </output>
  </configuration>
</monitors>

I tried this : No success

:arrow: If you have another idea to solve this ?
:arrow: I could use a command line/script to configure it at each start, any idea how to do this?
:arrow: I am looking for a command line/script to switch between second monitor and television by single click but don't know what are the parameters to send to the nvidia manager, any idea?
:arrow: I read somewhere that cinnamon can now use two separate panels boards for the two monitors but didn't find how to activate it. Any idea to do this?

Sorry for my English and thank you for any help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 24
Level 24
Posts: 20086
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Nvidia resolution configuration lost after reboot

Post by Pjotr »

I can only give this advice: when you want the configuration of nvidia-settings to be permanent, you have to run it as root:

Code: Select all

gksudo nvidia-settings
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
ROUGEXIII

Re: Nvidia resolution configuration lost after reboot

Post by ROUGEXIII »

Pjotr wrote:I can only give this advice: when you want the configuration of nvidia-settings to be permanent, you have to run it as root:

Code: Select all

gksudo nvidia-settings
Thanks for your answer i already tried it with root access:

Code: Select all

sudo nvidia-settings
And this didn't solved the problem.
ROUGEXIII

Re: Nvidia resolution configuration lost after reboot

Post by ROUGEXIII »

Hi,

I finally find some help here http://forums.linuxmint.com/viewtopic.php?f=42&t=28157 for the script.

Here my two configuration command lines if it can help someone:
Dual screen config:

Code: Select all

xrandr --output HDMI-0 --off
xrandr --output DVI-I-2 --mode Auto --pos 0x0 --primary
xrandr --output DVI-I-1 --mode 1400x1050 --right-of DVI-I-2 --rate 70
xrandr --output DVI-I-1 --pos 2560x390
killall -SIGUSR1 conky
Screen+TV config:

Code: Select all

xrandr --output DVI-I-1 --off
xrandr --output DVI-I-2 --mode Auto --pos 1920x0 --primary
xrandr --output HDMI-0 --mode 1920x1080 --left-of DVI-I-2 --rate 60
xrandr --output HDMI-0 --pos 0x360
killall -SIGUSR1 conky
I dont know if it's the better way to do that, maybe not, the initial configuration lost problem isn't resolved
the last line is only for conky (thanks to all41 here http://forums.linuxmint.com/viewtopic.p ... 2&t=193378
Locked

Return to “Graphics Cards & Monitors”