如何解决Ubuntu 18.04显示问题(滞后,闪烁)?

如何改善Ubuntu 18.04的显示效果? 我尝试过在这个网站上提出的许多不同方法,但没有一种方法有效。

我有一个集成了Intel GPU和NVIDIA GTX 970M的MSI GS60 Ghost Pro,我在滚动网页时(在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 

英特尔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 

我测试了以下方法:

  • 减少界面效应以提高18.04的性能
  • GNOME在Ubuntu 18.04上非常糟糕
  • 安装NVIDIA显卡驱动程序后Ubuntu 18.04仍然滞后
  • 滚动和游戏时屏幕撕裂

假设nVidia导致问题,解决方法是独家运行英特尔IGD。 以下步骤以“排他性”的增加顺序实现此目的。 您可以在每个步骤后检查改进情况。

1.配置Xorg以优先选择英特尔

创建文件/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 

我有同样的问题,但有:

  • CPU: AMD Ryzen 7 2700X(无集成GPU)
  • GPU: Gigabyte Geforce GTX 1080(驱动程序nVidea 390.48)
  • 显示器:三星4K UHD HDR 40“SmartTV 60 FPS(HDMI 2.0线)

在Ubuntu 18.04(全新安装)和Windows 10 Pro双启动时间隔很长时间出现闪烁。 然而,当我打开“Gnome软件”应用程序并滚动屏幕时,闪烁发生频率,黑色屏幕持续几秒钟。 在Ubuntu的游戏中我也感觉很落后。

我试图更改NVIDEA驱动程序的Noveau驱动程序,但问题是一样的。

也许需要对UEFI BIOS的参数进行一些调整?!