From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwaJ-0007aW-Gf for qemu-devel@nongnu.org; Tue, 25 May 2010 12:02:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGwaB-00085m-CC for qemu-devel@nongnu.org; Tue, 25 May 2010 12:02:20 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:38883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGwaB-00085a-9W for qemu-devel@nongnu.org; Tue, 25 May 2010 12:02:19 -0400 Received: by vws6 with SMTP id 6so160525vws.4 for ; Tue, 25 May 2010 09:02:18 -0700 (PDT) Message-ID: <4BFBF483.1040803@codemonkey.ws> Date: Tue, 25 May 2010 11:02:11 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] SDL fullscreen window dislikes being resized past the screen size References: <4BFBF292.4030000@msgid.tls.msk.ru> In-Reply-To: <4BFBF292.4030000@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel On 05/25/2010 10:53 AM, Michael Tokarev wrote: > Initially it were a bugreport on #kvm IRC, someone > asked why his kvm exits when entering fullscreen mode, > saying the famous > "Could not open SDL display" > and nothing more. > > I added a bit of debug output and here's what I see: > > ... > resizing to 1440x900 0 0x115 > resizing to 1440x900 32 0x80000115 > Could not open SDL display for 1440x900, bpp=32, flags=0x80000115 > > flag=0x80000000 means fullscreen. My screen size is > 1280x1024, -- 1440 is more than 1280. > > It works just fine if I choose resolution less or equal > to my screen size. Depending on how SDL is configured, it uses DGA or some other relic to actually implement full screen mode. You cannot get a DGA screen that's larger than the physical monitor since it's often backed by video memory. SDL isn't smart enough to degrade into a scaled mode either. Honestly, SDL full screen mode is a bad idea. We offer no indication that the guest is actually running which is potentially very confusing/dangerous. We need a better backend to really implement a functioning full screen mode. Regards, Anthony Liguori > And it works just fine (as seen in the example output > above) that it works with larger resolutions but not > fullscreen (in that case SDL window will be scaled to > fit the actual desktop size). > > It looks to me like an incorrect usage or assumptions > about SDL window, or maybe SDL bug. Mine is > libsdl1.2debian 1.2.13-2. > > And the error message is in usual qemu style - not at > all useful :) But it's at least better than pure > exit without any messages at all, like was in hugetlbfs > code ;) > > Thanks! > > /mjt >