From patchwork Fri Nov 3 18:33:15 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Lucke X-Patchwork-Id: 12404 Received: from einhorn.in-berlin.de ([192.109.42.8] ident=root) by www.linuxtv.org with esmtp (Exim 4.50) id 1Gg3qy-0004Y1-Vx for vdr@linuxtv.org; Fri, 03 Nov 2006 19:33:21 +0100 X-Envelope-From: stefan@lucke.in-berlin.de X-Envelope-To: Received: from jarada.farpoint.de (p54BF7158.dip.t-dialin.net [84.191.113.88]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id kA3IXJYq027304 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Fri, 3 Nov 2006 19:33:20 +0100 From: Stefan Lucke To: VDR Mailing List Subject: Re: [vdr] softdevice and epia tv-out problem with Xorg Date: Fri, 3 Nov 2006 19:33:15 +0100 User-Agent: KMail/1.8.3 References: <45467DB9.5040202@calidae.net> <454A5489.5000706@calidae.net> <1162507134.454a737ef1376@webmail.in-berlin.de> In-Reply-To: <1162507134.454a737ef1376@webmail.in-berlin.de> MIME-Version: 1.0 Message-Id: <200611031933.15131.stefan@lucke.in-berlin.de> X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 18:33:21 -0000 Status: O X-Status: X-Keywords: X-UID: 11156 On Donnerstag 02 November 2006 23:38, Stefan Lucke wrote: > Quoting Leo Márquez: > > > Hi again, > > > > Stefan Lucke escribió: > > > > >>/ But after started it without problems now I get: > > >/>/ > > >/>/ [softdevice] A/V devices initialized, now initializing MPEG2 Decoder > > >/>/ X Error of failed request: BadValue (integer parameter out of range for > > >/>/ operation) > > >/>/ Major opcode of failed request: 145 (MIT-SHM) > > >/>/ Minor opcode of failed request: 3 (X_ShmPutImage) > > >/>/ Value in failed request: 0x3ff > > >/ > > >Which are the startup options now ? > > >0x3ff = 1023 = 1024 - 11 > > > > > > > > My startup options are only "-vo xv:full" > > > > >Did you changed your X resolution via "ALT"+"CTRL"+"Keypad +" ? > > > > > > > > No but I press the 'f' key to toggle between fullscreen and windowed vdr > > mode. > > The second time I run vdr with -vo xv:full don't work > > Ah, I should have mentioned that you _must_ not toggle full screen -> > windowed mode, as windowed mode works with some default values > which even did not work previously (thats why I ask for full screen mode). > > I'll send you a patch tomorrow that will restrict these values. > Ok, here comes the patch. I tested it with 640x480 resolution and now I do not get these failed request any more. In contrast to your setup, mine worked fine when setting "softdevice.OSDalphablend = 1" in vdr's setup.conf even without the patch. Index: video-xv.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/video-xv.c,v retrieving revision 1.63 diff -U3 -r1.63 video-xv.c --- video-xv.c 29 Sep 2006 19:17:18 -0000 1.63 +++ video-xv.c 3 Nov 2006 18:29:54 -0000 @@ -862,6 +862,23 @@ } } #endif + + /* ------------------------------------------------------------------------- + * limit widht and height to screen dimensions + */ + { + int screen_width, screen_height; + + screen_width = DisplayWidth(dpy, scn_id); + screen_height = DisplayHeight(dpy, scn_id); + + if (height > screen_height) + old_dheight = lheight = dheight = height = screen_height; + + if (width > screen_width) + old_dwidth = lwidth = dwidth = width = screen_width; + } + /* ------------------------------------------------------------------------- * default settings which allow arbitraray resizing of the window */