我正在使用nvidia-352
。nvidia-prime
为了解决撕裂问题(众所周知),我尝试在 中添加选项/etc/X11/xorg.conf
。但重启nvidia
或prime
替换xorg.conf
文件后。
我的问题是,我如何添加选项xorg.conf
以便它在重启后仍然存在?应该有一个xorg configuration
生成脚本。wikinvidia-prime
页面上没有关于此的任何信息。
答案1
不要编辑/etc/X11/xorg.conf
。像 这样的应用程序nvidia-settings
有覆盖它的坏习惯。请改用.conf
中的单独文件/etc/X11/xorg.conf.d
。来自man xorg.conf
:
Additional configuration files are searched for in the following
directories when the server is started as a normal user:
/etc/X11/<cmdline>
/etc/X11/<cmdline>
/etc/X11/xorg.conf.d
/etc/X11/xorg.conf.d
where <cmdline> is a relative path (with no “..” components) specified
with the -configdir command line option.
When the Xorg server is started by the “root” user, the config
directory search locations are as follows:
<cmdline>
/etc/X11/<cmdline>
/etc/X11/<cmdline>
/etc/X11/xorg.conf.d
/etc/X11/xorg.conf.d
where <cmdline> is the path specified with the -configdir command line
option (which may be absolute or relative).