On Tue, 28 Mar 2000, Andrew Apted wrote:
> I think that the LibGGI fbdev target should check whether KDGETMODE
> returns KD_TEXT or KD_GRAPHICS, and if the VT is already in graphics
> mode then refuse to perform a ggiSetMode. Currently it is possible to
> run a libggi program when the framebuffer device is already being used
> (e.g. by XGGI), with very unsatisfactory results. This should also
> prevent problems when someone tries to run the fbdev target from a
> normal X server (I'm pretty sure they set KD_GRAPHICS mode too).
Hum. We just had this discussion on the fbdev mailing list. Its because
you can open /dev/fb more than once which is brain dead for several
reasons which was pointed out on the list. One thing. When /dev/fb is
opened it doesn't set the vc_mode to KD_GRAPHICS. If it did then you
couldn't VT switch which is not the case. You have to find away to find
out its usage count.
"Look its a text editor, no its a OS, no its Emacs"
James Simmons (o_
fbdev/gfx developer (o_ (o_ //\
http://www.linux-fbdev.org (/)_ (/)_ V_/_
http://linuxgfx.sourceforge.net