From fa7563a0c0c266228fd13e7823a5282beb799ec1 Mon Sep 17 00:00:00 2001 From: spl Date: Wed, 20 Jan 2016 16:53:11 +0000 Subject: [PATCH] Launch of simple compositor added when GL driver is enabled. --- raspi-config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/raspi-config b/raspi-config index 7744318..18eb3b0 100755 --- a/raspi-config +++ b/raspi-config @@ -930,6 +930,7 @@ set_gldriver() { if [ "$1" -eq 0 ]; then # disable driver sed $CONFIG -i -e "s/^dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/" + rm /etc/xdg/autostart/xcompmgr.desktop mv /usr/share/X11/xorg.conf.d/99-fbturbo.~ /usr/share/X11/xorg.conf.d/99-fbturbo.conf if [ "$INTERACTIVE" = True ]; then whiptail --msgbox "Desktop GL driver is disabled" 20 60 1 @@ -939,6 +940,14 @@ set_gldriver() { if ! grep -q -E "^dtoverlay=vc4-kms-v3d" $CONFIG; then printf "dtoverlay=vc4-kms-v3d\n" >> $CONFIG fi + cat </etc/xdg/autostart/xcompmgr.desktop +[Desktop Entry] +Type=Application +Name=xcompmgr +Comment=Start simple compositor +NoDisplay=true +Exec=xcompmgr -a +EOF mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~ if [ "$INTERACTIVE" = True ]; then whiptail --msgbox "Desktop GL driver is enabled" 20 60 1