在Ubuntu上启用Compton的硬件加速,可以按照以下步骤进行操作:
Ctrl + Alt + T
)。sudo apt update
sudo apt install compton
~/.config/compton.conf
)。backend = "glx";
glx-no-stencil = false;
glx-damage = true;
glx-copy-from-front = true;
glx-vsync = false;
glx-fps-limit = 60;
glx-hardware-acceleration = true;
compton -c ~/.config/compton.conf
/etc/systemd/system/compton.service
并添加以下内容:[Unit]
Description=Compton Compositor
After=graphical.target
[Service]
ExecStart=/usr/bin/compton -c ~/.config/compton.conf
Restart=always
[Install]
WantedBy=graphical.target
sudo systemctl enable compton
sudo systemctl start compton
确保你的显卡驱动已经正确安装并且是最新的。对于NVIDIA显卡,可以使用以下命令安装驱动:
sudo ubuntu-drivers autoinstall
对于AMD显卡,可以使用以下命令安装驱动:
sudo apt install mesa-vdpau-drivers mesa-vulkan-drivers
~/.cache/compton.log
)以获取更多信息。通过以上步骤,你应该能够在Ubuntu上成功启用Compton的硬件加速。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:ubuntu compton显示效果怎样