Как решить проблемы с отображением в Ubuntu 18.04 (отставание, мерцание)?
Как улучшить отображение в Ubuntu 18.04? Я перепробовал много разных подходов, представленных на этом сайте, и ни один из них не сработал.
У меня MSI GS60 Ghost Pro со встроенным графическим процессором Intel и NVIDIA GTX 970M, и у меня наблюдается эффект запаздывания при прокрутке веб-страниц (в Chrome, Firefox) и очень заметный эффект мерцания при перемещении окон.
Аппаратное обеспечение и драйверы:
alex@alex-ubuntu:~$ lspci | egrep ' VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM204M [GeForce GTX 970M] (rev a1)
NVIDIA GPU:
alex@alex-ubuntu:~$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.77
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 390.77
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.77
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
alex@alex-ubuntu:~$ lsmod | grep drm_kms_helper
drm_kms_helper 172032 2 i915,nvidia_drm
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 401408 6 i915,nvidia_drm,drm_kms_helper
Intel GPU:
alex@alex-ubuntu:~$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.0.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
alex@alex-ubuntu:~$ lsmod | grep drm_kms_helper
drm_kms_helper 172032 2 nouveau,i915
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 401408 9 nouveau,i915,ttm,drm_kms_helper
Я проверил следующие подходы:
1 ответ
Если предположить, что проблема связана с nVidia, обходной путь должен выполняться исключительно на Intel IGD. Следующие шаги достигают этого в порядке возрастания "эксклюзивности". Вы можете проверить на улучшение после каждого шага.
1. Настройте Xorg так, чтобы он предпочел Intel
Создать файл /etc/X11/xorg.conf.d/10-intel.conf
(это может потребовать mkdir /etc/X11/xorg.conf.d
), содержащий:
Section "OutputClass"
Identifier "Intel"
MatchDriver "i915"
Driver "intel"
EndSection
2. Отключить переключение режимов из IGD
редактировать /etc/default/grub
и добавить xdg.force_integrated=1
в GRUB_CMDLINE_LINUX
, Когда закончите, бегите sudo update-grub
до перезагрузки.
3. Черный список nouveau
драйвер ядра
редактировать /etc/default/grub
и добавить modprobe.blacklist=nouveau
в GRUB_CMDLINE_LINUX
, Когда закончите, бегите sudo update-grub
до перезагрузки.
4. Удалите драйвер Xorg nouveau
sudo apt remove xserver-xorg-video-nouveau
Это вызовет удаление xserver-xorg-video-all
метапакет, который по умолчанию установлен. Это хорошо, пока xserver-xorg-video-intel
остается установленным. Чтобы быть уверенным:
sudo apt remove xserver-xorg-video-all
sudo apt install xserver-xorg-video-intel