问题表现为横向拖动窗口时窗口左右边框出现撕裂的现象,查询后得知是NVIDIA驱动安装后由于与SLI不兼容而并未默认开启PRIME Synchronization,开启方法如下:
-
sudo nano /etc/modprobe.d/nvidia-graphics-drivers.conf
-
Change the line that says “
nvidia-drm.modeset=0
” to “nvidia-drm.modeset=1
” -
Press
Ctrl+x
to exit and press “y
” to indicate that you like to save your change. -
sudo update-initramfs -u
-
Reboot your computer.
-
cat /sys/module/nvidia_drm/parameters/modeset
should be “1
” or “Y
”.
我用这个方法成功开启了PRIME Synchronization,当然你可以尝试NVIDIA官方论坛提出的解决方法:
The NVIDIA driver’s PRIME Synchronization support relies on DRM-KMS, which is disabled by default due to its current incompatibility with SLI. To enable it, run ‘sudo rmmod nvidia-drm; sudo modprobe nvidia-drm modeset=1’. In other words, load the nvidia-drm module with the parameter modeset=1.
[1]https://devtalk.nvidia.com/default/topic/957814/prime-and-prime-synchronization/
[2]https://elementaryos.stackexchange.com/questions/13450/vsync-issue-with-switchable-graphics-nvidia-630m-intel-hd-3000-on-elementar