On Sam, 2003-03-01 at 22:20, Branden Robinson wrote: > On Sat, Mar 01, 2003 at 03:30:02PM +0100, Michel D?nzer wrote: > > Here's some OFfb output: > > > > 0 OFfb /[EMAIL PROTECTED]/ATY,[EMAIL PROTECTED]/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?
I think this doesn't handle multiple framebuffer devices, it would set USE_FBDEV to yes no matter what they are. I'm not sure how to handle that though, maybe FB_TYPE="$(egrep '^0' /proc/fb | awk '{print $2}')" ? -- Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]