在 Debian 上 compton(或其继任者 picom)闪退,常见原因和排查思路如下:
compton 依赖 OpenGL(或 XRender),驱动异常会直接崩溃。
排查:
glxinfo | grep OpenGL
或
inxi -G
常见于:
compton --backend glx 但环境不支持尝试:
compton --backend xrender
配置文件语法错误会导致启动即退出。
检查:
compton --config ~/.config/compton.conf
建议:
mv ~/.config/compton.conf ~/.config/compton.conf.bak
compton &
picom --config ~/.config/picom.conf
如果你用了:
会导致冲突闪退。
检查:
ps aux | grep compton
Debian 新版本中:
compton 已被 picom 取代建议:
sudo apt remove compton
sudo apt install picom
compton
或
picom
看报错信息(非常重要)
journalctl -xe | grep compton
| 错误信息 | 原因 |
|---|---|
Failed to load backend |
后端不支持 |
Segmentation fault |
驱动或版本 bug |
Another compositor running |
冲突 |
No screen found |
X 会话异常 |
✅ Debian 用户建议直接用 picom
sudo apt install picom
picom &
✅ 若仍闪退:
xrender 后端如果你愿意,可以把 终端报错内容 或你的 Debian 版本 + 桌面环境 发给我,我可以精准定位原因。