溫馨提示×

CentOS上Compton與Wayland的沖突解決

小樊
63
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
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女