202 |
export GRUBLEGACYOPTS="" |
export GRUBLEGACYOPTS="" |
203 |
fi |
fi |
204 |
|
|
205 |
|
# check for i845 Chipsets and enable KMS and use 915 drm driver later in initrd |
206 |
|
if [[ ! -z $(echo "${hwinfo}" | grep -i i845) ]] |
207 |
|
then |
208 |
|
export SPECIALDEVICE="i845" |
209 |
|
# unset default video=1024x768 opt or the drm driver breaks |
210 |
|
export KERNELOPTS="quiet" |
211 |
|
export GRUBLEGACYOPTS="" |
212 |
|
# enable full kms support |
213 |
|
export GRUB2GFXPAYLOAD="keep" |
214 |
|
fi |
215 |
|
|
216 |
|
# check for radeon gfxcards |
217 |
|
if [[ ! -z $(echo "${hwinfo}" | grep -i radeon) ]] |
218 |
|
then |
219 |
|
# enable full kms support |
220 |
|
export GRUB2GFXPAYLOAD="keep" |
221 |
|
fi |
222 |
|
|
223 |
|
# requires nomsi to prevent massive IRQ error spam |
224 |
|
# see: http://ubuntuforums.org/showthread.php?t=1234983 |
225 |
|
if [[ ! -z $(echo "${hwinfo}" | grep -i 'P5VD2-X') ]] || [[ ! -z $(echo "${hwinfo}" | grep -i 'VT8237') ]] || [[ ! -z $(echo "${hwinfo}" | grep -i 'VX700') ]] |
226 |
|
then |
227 |
|
export SPECIALDEVICE="nomsi" |
228 |
|
export KERNELOPTS="${KERNELOPTS} pci=nomsi,noaer" |
229 |
|
fi |
230 |
|
|
231 |
# check for special devices/clients: |
# check for special devices/clients: |
232 |
# check for laptops and activate cpufreq scaling |
# check for laptops and activate cpufreq scaling |
233 |
if [[ $(echo "${hwinfo}" | grep 'Formfactor:' | sed 's:.*Formfactor\:\ \"\(.*\)\":\1:') = laptop ]] |
if [[ $(echo "${hwinfo}" | grep 'Formfactor:' | sed 's:.*Formfactor\:\ \"\(.*\)\":\1:') = laptop ]] |
566 |
zotac*) message+=$"\n\Z2Zotac device detected.\Zn" ;; |
zotac*) message+=$"\n\Z2Zotac device detected.\Zn" ;; |
567 |
rangee) message+=$"\n\Z2Rangee device detected.\Zn" ;; |
rangee) message+=$"\n\Z2Rangee device detected.\Zn" ;; |
568 |
maxdata) message+=$"\n\Z2Maxdata device detected.\Zn" ;; |
maxdata) message+=$"\n\Z2Maxdata device detected.\Zn" ;; |
569 |
|
i845) message+=$"\n\Z2Intel i845 VGA device detected.\Zn" ;; |
570 |
|
nomsi) message+=$"\n\Z2Mainboard with P5VD2-X/VT8237/VX700 chipset detected.\Zn" |
571 |
|
message+=$"\n\Z2Disabling Message Signaled Interrupts (MSI) capability of the kernel.\Zn" ;; |
572 |
*) message+=$"\n\ZnCommon device detected.\Zn" ;; |
*) message+=$"\n\ZnCommon device detected.\Zn" ;; |
573 |
esac |
esac |
574 |
if [[ ${FORMFACTOR} = laptop ]] |
if [[ ${FORMFACTOR} = laptop ]] |