Use compton instead of xcompmgr with GL driver.

This commit is contained in:
Simon Long 2016-12-07 15:30:08 +00:00
parent 4149c738c2
commit d15dec8cbe
2 changed files with 18 additions and 7 deletions

12
debian/changelog vendored
View File

@ -1,3 +1,15 @@
raspi-config (20161207) jessie; urgency=medium
* Use compton for compositing with GL driver instead of xcompmgr
-- Simon Long <simon@raspberrypi.org> Wed, 07 Dec 2016 12:43:26 +0000
raspi-config (20161206) jessie; urgency=medium
* Menus reorganised; resolution setting added
-- Simon Long <simon@raspberrypi.org> Tue, 06 Dec 2016 13:43:32 +0000
raspi-config (20161114) jessie; urgency=medium raspi-config (20161114) jessie; urgency=medium
* Restore -a option for xcompmgr; disable splash screen with GL driver * Restore -a option for xcompmgr; disable splash screen with GL driver

View File

@ -1127,10 +1127,6 @@ do_gldriver() {
whiptail --msgbox "libgl1-mesa-dri not found - please install" 20 60 2 whiptail --msgbox "libgl1-mesa-dri not found - please install" 20 60 2
return 1 return 1
fi fi
if [ ! -e /usr/bin/xcompmgr ]; then
whiptail --msgbox "xcompmgr not found - please install" 20 60 2
return 1
fi
DEFAULT=--defaultno DEFAULT=--defaultno
CURRENT=0 CURRENT=0
@ -1160,13 +1156,16 @@ do_gldriver() {
cat << EOF > /etc/xdg/autostart/xcompmgr.desktop cat << EOF > /etc/xdg/autostart/xcompmgr.desktop
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Name=xcompmgr Name=compton
Comment=Start simple compositor Comment=Start Compton compositor
NoDisplay=true NoDisplay=true
Exec=xcompmgr -a Exec=compton --backend glx --unredir-if-possible --glx-swap-method buffer-age --glx-no-stencil --paint-on-overlay --vsync opengl
EOF EOF
mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~ mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
sed $CONFIG -i -e "s/^gpu_mem/#gpu_mem/" sed $CONFIG -i -e "s/^gpu_mem/#gpu_mem/"
if [ ! -e /usr/bin/compton ]; then
sudo apt-get -y install compton
fi
STATUS=enabled STATUS=enabled
elif [ $RET -eq 1 ]; then # disable driver elif [ $RET -eq 1 ]; then # disable driver
sed $CONFIG -i -e "s/^dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/" sed $CONFIG -i -e "s/^dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/"