diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-09-28 16:16:04 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-09-28 16:16:04 +0000 |
commit | 8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03 (patch) | |
tree | 60312eb6698b129d172c8b9ffdb13cf079840886 /user/grub/quirk-01_radeon_agpmode | |
parent | 5cd64ffbbf9c1744efcb0319d30735ce2cf5b471 (diff) | |
parent | 2b957d5e230510b304b7ffa72c6401c49ffdd41f (diff) | |
download | packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.gz packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.bz2 packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.tar.xz packages-8ec14c727a1a5e6179c8f856ebaacdd73e2c7a03.zip |
Merge branch 'update-grub' into 'master'
user/grub: add radeon quirk (#49) and trigger
See merge request adelie/packages!331
Diffstat (limited to 'user/grub/quirk-01_radeon_agpmode')
-rw-r--r-- | user/grub/quirk-01_radeon_agpmode | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/user/grub/quirk-01_radeon_agpmode b/user/grub/quirk-01_radeon_agpmode new file mode 100644 index 000000000..879f1619e --- /dev/null +++ b/user/grub/quirk-01_radeon_agpmode @@ -0,0 +1,28 @@ +#!/bin/sh +# vi: noet: +# Horst Burkhardt <horst@adelielinux.org> 2018 +# Max Rees <maxcrees@me.com> 2019 +# +# AGP acceleration in the Radeon KMS driver has been broken on Apple PPC +# since the 2.6 series, and most developers are in agreement that since +# UniNorth is underdocumented, it probably won't ever be fixed. Disable +# it on all Apple machines except ones where it is known not to apply. +# +# https://bts.adelielinux.org/show_bug.cgi?id=49 +set -e + +case "$(uname -m)" in +ppc|ppc64) + if grep -q 'MacRISC[23]' /proc/cpuinfo; then + case "$(awk '$1 == "machine" { print $3 }' /proc/cpuinfo)" in + PowerBook1,1) ;; + PowerMac1,1) ;; + PowerMac1,2) ;; + PowerMac11,2) ;; + PowerMac12,1) ;; + RackMac3,1) ;; + iMac,1) ;; + *) export GRUB_CMDLINE_LINUX="radeon.agpmode=-1 $GRUB_CMDLINE_LINUX";; + esac + fi;; +esac |