Fix temporarily disabling glamor for bionic due to Mesa bug

This commit is contained in:
JMCC 2020-02-15 14:51:00 +01:00
parent cc091e7ac0
commit 899a9f2fcb
2 changed files with 4 additions and 10 deletions

View File

@ -163,11 +163,10 @@ create_board_package()
if [[ $RELEASE == bionic ]]; then
cat <<-EOF >> "${destination}"/DEBIAN/postinst
# temporally disable acceleration in Bionic due to broken mesa packages
if [ -n "\$(cat /etc/X11/xorg.conf.d/01-armbian-defaults.conf 2> /dev/null | grep AccelMethod)" ]; then
sed -i '/\Device/,/^\[/ s/AccelMethod".*/AccelMethod"\t "none"/' /etc/X11/xorg.conf.d/01-armbian-defaults.conf
else
sed -i '/\Device/a \\\tOption\t\t\t"AccelMethod" "none"' /etc/X11/xorg.conf.d/01-armbian-defaults.conf
fi
echo 'Section "Device"
Identifier "Default Device"
Option "AccelMethod" "none"
EndSection' >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
EOF
fi

View File

@ -8,8 +8,3 @@ Section "ServerFlags"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Device"
Identifier "Default Device"
Driver "modesetting"
Option "AccelMethod" "glamor"
EndSection