Fix temporarily disabling glamor for bionic due to Mesa bug
This commit is contained in:
parent
cc091e7ac0
commit
899a9f2fcb
@ -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
|
||||
|
||||
|
||||
@ -8,8 +8,3 @@ 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