[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#342053: Boot-time script to disable DFB's HW acceleration



This script should disable DFB's harware acceleration for those vesa drivers whose accelerated modes are known to be broken. I think this script should be named something like "Sxxdisable_dfbhw.sh" and should be installed into /lib/debian-installer.d and provided by rootskel-gtk package. Since this is meant mainly for PPC systems, Sven could you please have a look at it? A more appropriate name for "DISABLE_FB_ACCELERATION" boot option i've added may be needed too.

thanks

Attilio


#List of vesa drivers that require DFB's HW acceleration to be disabled
BAD_LIST="atyfb nvidiafb"

if [ -z "DISABLE_FB_ACCELERATION" ]; then
	echo "no-hardware" >>/etc/directfbrc
else
	for driver in $BAD_LIST; do
		if [ $(dmesg|grep $driver |wc -w) -gt 0 ];then
			echo "no-hardware" >>/etc/directfbrc
			break;
		fi
	done
fi



Reply to: