每次重启时NVIDIA X服务器设置都会丢失

我在Z87 Gigabyte主板和双启动Windows 8.1 Pro和Ubuntu 12.04.3 LTS上运行GeForce GTX 770。 除了Ubuntu中的video和3D性能之外,整个设置运行顺畅。 我曾经有过臭名昭着的闪烁问题,并找到了解决问题的方法。 它与NVidia卡进入低功耗模式有关,然后video和3D效果遭受撕裂和口吃。 修复方法是转到nvidia-settings并将电源模式从“Auto”更改为“Prefer Maximum Performance”。 问题是这只有在我重启之后才有效。 重新启动后,设置被清除,问题仍然存在,因此我必须为当前会话再次手动设置它。 我尝试了gksu-ing并设置它,但它没有用。 我试着编辑etc / X11 / xorg.conf,但它是空的 – 那个文件中有零行…我读了所有相关的文章,但主要是人们抱怨亮度被重置或双显示器配置,哪些解决方案涉及一些不以任何方式帮助我的特定应用程序。

TL; DR:NVidia设置在重启后重置,并尝试了我在互联网上找不到的所有内容。

如果有人知道在这种情况下该怎么做,请分享!

谢谢!

编辑[1]:我做了一些进一步的挖掘,似乎没有明显或安全的解决方案。 有些人试图手动设置性能水平,但报告它不安全并可能会杀死GPU。 尽管如此,仍有希望。 我认为这可以通过nvidia-settings提供的NVidia配置文件选项来完成。 问题是需要知道有问题的密钥和该密钥接受的值。

I could have put a screenshot here, but I need rep => 10... 

我找不到可能的键列表或任何键值…我猜运气不好。

有人可以提供链接或列出一些有用的链接吗?

谢谢!

编辑[2]:最后! 感谢大家的帮助! 我在vegard torvund和这个post的帮助下找到了解决方案。 感谢Ubuntu Google+社区宣传这个词!

  1. 通过以下方式创建xorg.conf文件:

     sudo nvidia-xconfig 
  2. 在xorg.conf文件中查找“Device”部分,并在该部分中添加以下行:

     Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322" 

保存并重新启动计算机。

PS。 如果添加更多参数,请添加; 在0x3322之后

从官方用户指南 :

“4.自动加载设置

 The NVIDIA X driver does not preserve values set with nvidia-settings between runs of the X server (or even between logging in and logging out of X, with xdm, gdm, or kdm). This is intentional, because different users may have different preferences, thus these settings are stored on a per user basis in a configuration file stored in the user's home directory. The configuration file is named "~/.nvidia-settings-rc". You can specify a different configuration file name with the "--config" commandline option. After you have run nvidia-settings once and have generated a configuration file, you can then run: nvidia-settings --load-config-only at any time in the future to upload these settings to the X server again. For example, you might place the above command in your ~/.xinitrc file so that your settings are applied automatically when you log in to X. Your .xinitrc file, which controls what X applications should be started when you log into X (or startx), might look something like this: nvidia-settings --load-config-only & xterm & evilwm or: nvidia-settings --load-config-only & gnome-session If you do not already have an ~/.xinitrc file, then chances are that xinit is using a system-wide xinitrc file. This system wide file is typically here: /etc/X11/xinit/xinitrc To use it, but also have nvidia-settings upload your settings, you could create an ~/.xinitrc with the contents: nvidia-settings --load-config-only & . /etc/X11/xinit/xinitrc System administrators may choose to place the nvidia-settings load command directly in the system xinitrc script. Please see the xinit(1) manpage for further details of configuring your ~/.xinitrc file. 

在Linux Mint 18 Cinnamon上转到名为monitor的小配置应用程序。 当按下“apply”文件时,保存了〜/ .config / monitors.xml,其function与xfce displays.xml相同 – 它保存所有这些设置,在nvidia设置中不是持久的。 如果您碰巧在NVIDIA图形设置面板中配置了显示布局,则必须四处改变(触发应用按钮的可用性)。 我做了这个并将上面的加载设置添加到xinitrc。

我将检查屏幕锁定后的窗口重新排序问题是否已经消失现在所有窗口都重新排序到主监视器

系统不会在重启时重写参数。 事实上, nvidia-settings就是这样做的。 打开终端并使用以下命令编辑nvidia-settings中的“Exec =”行:

 "optirun /usr/bin/nvidia-settings -c :8 --config=~/.nvidia-settings-rc" 

如果使用大黄蜂,如果没有引号,或者如果不使用,则命令可能是:

 "/usr/bin/nvidia-settings --config=~/.nvidia-settings-rc". 

在保存设置之前,取消选中: "Include X Display Names in the Config File". 系统将您的设置从一个会话保存到另一个会话,但在我的情况下(Ubuntu Gnome 14.04.1 amd64)我有一些关于vdpau和prime的错误。 考虑到我不使用nvidia-prime,它们可能是正常的。 这些错误也可能使nvidia设置覆盖设置。

我正在使用Ubuntu 12.04并且我正在尝试使用我的video卡并告诉你我有类似的问题,你有或重启后我的nvidia设置无法应用,实际上我的xorg.conf文件也是空的! 但是当我降级我的nvidia驱动程序时,所有这一切都发生了,因此在我遇到所有这些问题后,我在终端中运行了一个简单的命令:

 sudo apt-get --reinstall nvidia-settings && sudo apt-get install nvidia-settings gksudo nvidia-settings 

只有我不会告诉你,如果我重新安装后重新启动我的系统,只是不记得了但是在这个程序之后我得到了一切正常。 我可以访问我的nvidia设置并应用像maximizer等那样的任何东西,由于我的硬件,它还用完整的行替换了我的xorg.conf文件,它甚至在删除或丢失时重新创建它。 但所有这些我自己承担风险,也许这取决于硬件。

我能够在我的系统上解决这个问题:

  1. 导航到“nvidia-settings Configuration”选项卡。
  2. 取消选中 “在配置文件中包含X显示名称”
  3. 保存当前配置

事实certificate设置正在加载,但显示名称(看起来正确)阻止了它们的设置。 这是一个基本的双显示系统。

在此处输入图像描述

Alt + F2并在命令中键入gksu nvidia-settings保存X配置/etc/X11/xorg.conf

我找到了Linux Mint 17.2的解决方案; 你必须编辑文件/home/$user/.config/xfce4/xfce-perchannel-xml/displays.xml

您将在其中看到您的显示,并在那里您可以设置它们的X和Y轴; 只需调整它们,每次重启时它都会停留。

对于linux mint 18.2菜单>管理> x服务器设置。 进行所需的所有更改。 然后菜单>首选项>显示。 按APPLY按钮。 它对我有用。 配备EVGA GeForce GTX 950的华硕F1A75 V-Pro。