PDA

View Full Version : [SOLVED] Saved Nvidia Xorg.conf settings lost and revert on log out or reboot



ineuw
September 15th, 2014, 07:35 AM
When issuing these commands interactively through the terminal they work fine. But, when I log out or reboot the settings revert to the original 1280 x 720. How can I make these settings "stick" permanently?

xrandr --newmode "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync
xrandr --addmode HDMI-0 "1408x792_60.00"
xrandr --output HDMI-0 --mode "1408x792_60.00"

maxinstuff2
September 15th, 2014, 03:36 PM
I have a different card (AMD), but I found that when configuring it and even inspecting xorg.conf to make sure it stuck - the file was getting renamed when I rebooted, stopping the system from using it.
I renamed it back to xorg.conf and rebooted again and all was well.

For some reason the date was getting appended to the end of the file name without saving a properly named copy as well. I think it is a broken back-up procedure?
ANyway, different card and driver so YMMV.

deadflowr
September 15th, 2014, 05:24 PM
What does the actual xorg.conf say?

ineuw
September 16th, 2014, 02:21 AM
What does the actual xorg.conf say?

Thanks maxinstuff2. It did create a file named xorg.conf.backup I renamed it but it ignored it.

deadflowr; below is my current xorg.conf:
This option line in the Device section, I copied from another configuration I found on the web. Without it,it won't boot into GUI and I end up in command line mode, Have to delete the file, or edit it with vi.
Option "ModeValidation" "AllowNon60hzmodesDFPModes, NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck,

This line in the Monitor section is generated by the cvt command: cvt 1408 792 60
ModeLine "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync

Regardless of what I do, after login/reboot, it reverts to 1280x/720. in an earlier post, I was so confident that I resolved the issue that I wrote a post with instructions, and now I feel like a fool. http://ubuntuforums.org/showthread.php?t=2241643&p=13119484#post13119484



# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.32 (buildmeister@swio-display-x64-rhel04-10) Tue Aug 5 21:19:27 PDT 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"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics LG TV"
HorizSync 31.0 - 82.0
VertRefresh 57.0 - 63.0
ModeLine "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 620"
Option "ModeValidation" "AllowNon60hzmodesDFPModes, NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck, NoMaxSizeCheck, NoMaxPClkCheck, AllowNonEdidModes, NoEdidMaxPClkCheck"
EndSection

Section "Screen"

# Removed Option "metamodes" "1408x792 +0+0; 1408x792 +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "1408x792_60.00 +0+0; 1280x720 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection

deadflowr
September 19th, 2014, 05:34 AM
I would think the next step would be to look at the log file(s)
Look at the log file in /var/log/xorg.0.log.

You might post it, probably better to post the whole thing to pastebinit
https://help.ubuntu.com/community/Pastebinit

Since you never know how fat any log file might be, and paste is a better place to post large files, rather than here in the forums.

Don't know how much it will help, but the log should give a general clue as to what's going on...

ineuw
September 19th, 2014, 06:21 PM
Uploaded Xorg.0.log to

http://paste.ubuntu.com/8381232/

Thank you

deadflowr
September 19th, 2014, 06:38 PM
So this section is the part to look at

[ 26.631] (**) NVIDIA(0): Option "MetaModes" "1408x792_60.00 +0+0; 1280x720 +0+0"[ 26.631] (**) NVIDIA(0): Enabling 2D acceleration
[ 26.631] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 26.631] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 26.631] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 26.631] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 26.631] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
[ 27.201] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[ 27.232] (II) NVIDIA(0): NVIDIA GPU GeForce GT 620 (GF108) at PCI:1:0:0 (GPU-0)
[ 27.232] (--) NVIDIA(0): Memory: 1048576 kBytes
[ 27.232] (--) NVIDIA(0): VideoBIOS: 70.08.ad.00.01
[ 27.232] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 27.234] (--) NVIDIA(0): Valid display device(s) on GeForce GT 620 at PCI:1:0:0
[ 27.234] (--) NVIDIA(0): CRT-0
[ 27.234] (--) NVIDIA(0): CRT-1
[ 27.234] (--) NVIDIA(0): DFP-0
[ 27.234] (--) NVIDIA(0): LG Electronics LG TV (DFP-1) (boot, connected)
[ 27.234] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[ 27.234] (--) NVIDIA(GPU-0): CRT-1: 400.0 MHz maximum pixel clock
[ 27.234] (--) NVIDIA(0): DFP-0: Internal TMDS
[ 27.234] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 27.234] (--) NVIDIA(0): LG Electronics LG TV (DFP-1): Internal TMDS
[ 27.234] (--) NVIDIA(GPU-0): LG Electronics LG TV (DFP-1): 225.0 MHz maximum pixel clock
[ 27.234] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 27.234] (**) NVIDIA(0): device LG Electronics LG TV (DFP-1) (Using EDID
[ 27.234] (**) NVIDIA(0): frequencies has been enabled on all display devices.)
[ 27.235] (WW) NVIDIA(GPU-0): The EDID for LG Electronics LG TV (DFP-1) contradicts itself:
[ 27.235] (WW) NVIDIA(GPU-0): mode "1920x1080" is specified in the EDID; however, the
[ 27.235] (WW) NVIDIA(GPU-0): EDID's valid VertRefresh range (57.000-63.000 Hz) would
[ 27.235] (WW) NVIDIA(GPU-0): exclude this mode's VertRefresh (30.0 Hz); ignoring
[ 27.235] (WW) NVIDIA(GPU-0): VertRefresh check for mode "1920x1080".
[ 27.235] (WW) NVIDIA(GPU-0): The EDID for LG Electronics LG TV (DFP-1) contradicts itself:
[ 27.235] (WW) NVIDIA(GPU-0): mode "1920x1080" is specified in the EDID; however, the
[ 27.235] (WW) NVIDIA(GPU-0): EDID's valid HorizSync range (31.000-82.000 kHz) would
[ 27.235] (WW) NVIDIA(GPU-0): exclude this mode's HorizSync (27.0 kHz); ignoring
[ 27.235] (WW) NVIDIA(GPU-0): HorizSync check for mode "1920x1080".
[ 27.235] (WW) NVIDIA(GPU-0): The EDID for LG Electronics LG TV (DFP-1) contradicts itself:
[ 27.235] (WW) NVIDIA(GPU-0): mode "1920x1080" is specified in the EDID; however, the
[ 27.235] (WW) NVIDIA(GPU-0): EDID's valid VertRefresh range (57.000-63.000 Hz) would
[ 27.235] (WW) NVIDIA(GPU-0): exclude this mode's VertRefresh (24.0 Hz); ignoring
[ 27.235] (WW) NVIDIA(GPU-0): VertRefresh check for mode "1920x1080".
[ 27.237] (WW) NVIDIA(0): No valid modes for "1408x792_60.00+0+0"; removing.
[ 27.237] (II) NVIDIA(0): Validated MetaModes:
[ 27.237] (II) NVIDIA(0): "1280x720+0+0" [ 27.237] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 720

Maybe, try changing the metamode line to 1408x792+0+0 , omitting the refresh rate 60.00.
See if that changes anything.

ineuw
September 19th, 2014, 07:13 PM
If you look at the Xorg.conf, there is a negated line as follows
# Removed Option "metamodes" "1408x792 +0+0; 1408x792 +0+0"

I also posted on the Nvidia forum but got no response. Where would be the best place to deal with this issue?

I will try again as you recommend. In the meantime - reading the article in Wikipedia on EDID, I installed this program and this was the result



This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface

Performing real mode VBE call
Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
Function supported
Call successful

VBE version 300
VBE string at 0x11100 "NVIDIA"

VBE/DDC service about to be called
Report DDC capabilities

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
Function supported
Call successful

Monitor and video card combination does not support DDC1 transfers
Monitor and video card combination does not support DDC2 transfers
0 seconds per 128 byte EDID block transfer
Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
Read EDID

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
Function supported
Call failed

The EDID data should not be trusted as the VBE call failed
Error: output block unchanged
I'm sorry nothing was successful. Maybe try some other arguments
if you played with them, or send an email to Matthew Kern <pyrophobicman@gmail.com>.

ineuw
September 21st, 2014, 01:39 AM
[QUOTE=deadflowr;Maybe, try changing the metamode line to 1408x792+0+0 , omitting the refresh rate 60.00./QUOTE]

Well I tried it but no change, so this is what I did since I knew all the parameters. I edited the Xorg.conf manually and cobbled together the following file:
Whenever I log out & in, it is stlil the old setting but, at least I can the list contains 148x792 and I can select it for the session. It's not a solution but I can get some work done.



# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.32 (buildmeister@swio-display-x64-rhel04-10) Tue Aug 5 21:19:27 PDT 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 "HDMI-0"
VendorName "Unknown"
ModelName "LG Electronics LG TV"
HorizSync 31.0 - 82.0
VertRefresh 57.0 - 63.0
ModeLine "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 620"
Option "ModeValidation" "AllowNon60hzmodesDFPModes, NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck, NoMaxSizeCheck, NoMaxPClkCheck, AllowNonEdidModes, NoEdidMaxPClkCheck"
EndSection

Section "Screen"

Identifier "Screen0"
Device "Device0"
Monitor "HDMI-0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "1408x792_60.00 +0+0; 1408x792_60.00 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection