Received: from [140.186.70.92] (port=46431 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEjeW-0005WI-Ap for qemu-devel@nongnu.org; Wed, 19 May 2010 09:49:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEjeR-00086k-0G for qemu-devel@nongnu.org; Wed, 19 May 2010 09:49:40 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:57512) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEjeQ-00086V-Rw for qemu-devel@nongnu.org; Wed, 19 May 2010 09:49:34 -0400 Date: Wed, 19 May 2010 14:52:54 +0100 From: Stefano Stabellini Subject: Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver In-Reply-To: <4BF3E9C9.1080100@redhat.com> Message-ID: References: <1273766038-16808-1-git-send-email-julian.pidancet@citrix.com> <4BF30E15.6040505@redhat.com> <4BF3E9C9.1080100@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "qemu-devel@nongnu.org" , Julian Pidancet , Stefano Stabellini On Wed, 19 May 2010, Gerd Hoffmann wrote: > Hi, > > > I think the only way to fix this is to handle VT acquire and release > > events ourselves. > > Hmm. I suspect sdl and directfb wanna do this too, so I'm not sure this > will actually work out. > > > At this point I am not sure if it is worth doing it in the DirectFB > > frontend or in the SDL frontend directly (making sure we are not > > running on X11 first). > > I didn't investigate who is at fault here. SDL docs doesn't mention > console switching at all it seems (grep -i console in > /usr/share/doc/SDL-devel-1.2.13/html doesn't find me anything). Which > makes me assume no special actions by the app using SDL are required for > it. Which in turn makes me think SDL is broken. > > Which makes me think we should just go the direct route. No SDL. No > directfb. No other funky library which provides us with nothing but > bugs. Programming fbdev isn't that hard after all. Especially if you > skip all the (IMHO pointless) video mode switching bits. Agreed, actually I was thinking the same thing. The only reason for using a library is to have the color/pixel conversion functions, that could be useful. However we have many of them already implemented in qemu so it shouldn't be difficult to roll our own. Julian, what do you think?