Implement a workaround for Bionic Mesa related issues (#1760)
Closing [AR-152]
This commit is contained in:
parent
9be143c2e4
commit
74a2e23f8a
@ -159,6 +159,18 @@ create_board_package()
|
||||
fi
|
||||
|
||||
EOF
|
||||
|
||||
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
|
||||
EOF
|
||||
fi
|
||||
|
||||
# install bootscripts if they are not present. Fix upgrades from old images
|
||||
if [[ $FORCE_BOOTSCRIPT_UPDATE == yes ]]; then
|
||||
cat <<-EOF >> "${destination}"/DEBIAN/postinst
|
||||
|
||||
@ -8,3 +8,8 @@ Section "ServerFlags"
|
||||
Option "SuspendTime" "0"
|
||||
Option "OffTime" "0"
|
||||
EndSection
|
||||
Section "Device"
|
||||
Identifier "Default Device"
|
||||
Driver "modesetting"
|
||||
Option "AccelMethod" "glamor"
|
||||
EndSection
|
||||
|
||||
Loading…
Reference in New Issue
Block a user