温馨提示×

CentOS上Compton与Wayland的冲突解决

小樊
70
2025-03-19 20:36:27
栏目: 智能运维

在CentOS上,Compton与Wayland的冲突通常是由于Wayland的默认显示堆栈替代了传统的X.Org Server,而Compton是一个基于X.Org的窗口合成器。为了解决这一冲突,可以采取以下步骤:

  1. 禁用Wayland
  • 编辑 /etc/gdm/custom.conf 文件,将 WaylandEnable=false 添加到 [Seat:*] 部分。这将禁用Wayland并强制使用X.Org。
  1. 安装和配置X.Org
  • 确保系统上安装了X.Org服务器和相关组件。可以通过以下命令安装:

    sudo yum install xorg-x11-server xorg-x11-server-Xorg xorg-x11-libX11 xorg-x11-libXext xorg-x11-libXrender xorg-x11-libXi xorg-x11-libXrandr xorg-x11-libXcursor xorg-x11-libXinerama xorg-x11-libXcomposite xorg-x11-libXdamage xorg-x11-libXext6 xorg-x11-libXrandr2 xorg-x11-libXrender1 xorg-x11-libXi6 xorg-x11-libXrandr3 xorg-x11-libXrender-dev xorg-x11-libXi-dev
    
  1. 配置Compton
  • 确保Compton配置文件(通常位于 ~/.config/compton.conf)中没有强制使用Wayland的设置。如果有,将其更改为使用X.Org。
  1. 重启系统
  • 完成上述更改后,重启系统以使更改生效。

0