使用英特尔显卡的 Ubuntu Xorg 20.04 上的屏幕撕裂

Ren*_*ies 13 graphics intel 20.04

我对 Linux 和 Ubuntu 还很陌生。昨天刚刚在我的华硕 ZenBook S13 上将它与 Windows 10 交换。

我注意到很多屏幕撕裂,不仅在快速移动的视频中,甚至当我将鼠标悬停在存档管理器中的文件上或在 Firefox 中滚动时(是的,我已经激活了Firefox 内部 VSync 选项)。

我尝试了一些事情,例如Tear Free true20-intel.conf文件中。这个选项解决了我的撕裂问题并带来了另一个更大的问题。看看它对我的桌面做了什么。但是这些仅在我的桌面上,而不是在浏览器等其他窗口上,而且它们各不相同,有时它们是 3。

Wayland 似乎也解决了这个问题,但是我不想使用 Wayland 的原因有很多,例如没有小数缩放、更糟糕的抗锯齿和一个奇怪的错误,光标在系统窗口上的大小是原来的两倍,比如终端或设置。

当我激活20-intel.conf文件中的其他选项时,例如Triple buffer trueAccel method uxa,我无法登录,只有在我使用 Wayland 时。

我的期望是,我可以使用普通的 Ubuntu(没有 Wayland)而不会出现任何屏幕撕裂。

我在下面提供了有关我的 VGA 控制器和我的20-intel.conf文件的当前状态的信息。

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake) (prog-if 00 [VGA controller])
        DeviceName: VGA
        Subsystem: ASUSTeK Computer Inc. UHD Graphics 620 (Whiskey Lake)
        Flags: bus master, fast devsel, latency 0, IRQ 146
        Memory at b0000000 (64-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 3000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915
Run Code Online (Sandbox Code Playgroud)

20-intel.conf

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
#   Option "AccelMethod" "uxa"
    Option "TearFree" "true"
#   Option "TripleBuffer "true"
EndSection
Run Code Online (Sandbox Code Playgroud)

Jka*_*ese 14

不幸的是,这对我不起作用。我能够通过修改我的/etc/X11/xorg.conf.d/20-intel-graphics.conf文件以包含 DRI3来修复,我在这里找到

Section "Module"
    Load "dri3"
EndSection

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "DRI"   "3"
EndSection
Run Code Online (Sandbox Code Playgroud)

  • 这确实阻止了我的撕裂,但破坏了一些应用程序。Firefox 需要禁用硬件加速才能工作。Signal 和其他人,只是不这样做。至于@Rene,我的文件位置位于 /usr/share/X11/xorg.conf.d 中。 (3认同)
  • 嗯,我没有这个文件。我什至没有在 `/etc/X11` 中看到 `xorg.conf.d` 目录。 (2认同)