On Sat, Mar 01, 2003 at 03:30:02PM +0100, Michel D?nzer wrote:
> Here's some OFfb output:
>
> 0 OFfb /pci@f0000000/ATY,CrownParent@10/AT
>
> And vesafb:
>
> 0 VESA VGA
>
> These look easy. :) I think these are the most common generic
> framebuffer devices, then there's also vga{16,256}fb but I doubt they
> are widely used.
Okay, here's the new code based on this:
# use fbcon kernel functions?
USE_FBDEV=
if [ -e /proc/fb ]; then
FB_TYPE="$(awk '{print $2}' < /proc/fb)"
# did we actually get back anything?
if [ -n "$FB_TYPE" ]; then
case "$FB_TYPE" in
OFfb|VESA)
# generic framebuffer that doesn't support UseFBDev
;;
*)
# other framebuffers do support UseFBDEV
USE_FBDEV=yes
;;
esac
fi
fi
if [ -n "$USE_FBDEV" ]; then
auto_answer db_input high xserver-xfree86/config/device/use_fbdev "true"
else
db_get xserver-xfree86/config/device/use_fbdev || debug_report_status "db_get xserver-xfree86/config/device/use_fbdev" "$?"
if [ "$RET" = "true" ]; then
debug_echo "xserver-xfree86/config/device/use_fbdev is \"true\" but /proc/fb does not exist, is empty, or reports a framebuffer type with which UseFBDev cannot be used; setting template to \"false\""
db_set xserver-xfree86/config/device/use_fbdev false
fi
fi
Comments?
--
G. Branden Robinson | I have a truly elegant proof of the
Debian GNU/Linux | above, but it is too long to fit
branden@debian.org | into this .signature file.
http://people.debian.org/~branden/ |
Attachment:
pgpVt67_Y13Hs.pgp
Description: PGP signature