CentOS上Compton与Wayland的冲突解决

1456
2025/3/19 21:31:46
栏目: 智能运维
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

在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. 重启系统:
  • 完成上述更改后,重启系统以使更改生效。

辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: 如何在CentOS上备份PostgreSQL数据库