From patchwork Tue Dec 11 14:50:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 205260 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DF81F2C0084 for ; Wed, 12 Dec 2012 02:32:57 +1100 (EST) Received: from localhost ([::1]:45451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiRpI-0005h4-2x for incoming@patchwork.ozlabs.org; Tue, 11 Dec 2012 10:32:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiRp8-0005gM-0u for qemu-devel@nongnu.org; Tue, 11 Dec 2012 10:32:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiRp3-0003Yk-Lu for qemu-devel@nongnu.org; Tue, 11 Dec 2012 10:32:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiRp3-0003Yd-ER for qemu-devel@nongnu.org; Tue, 11 Dec 2012 10:32:41 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBBFWbop019653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Dec 2012 10:32:39 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qBBEoEbt004678; Tue, 11 Dec 2012 09:50:14 -0500 Message-ID: <50C74825.4010800@redhat.com> Date: Tue, 11 Dec 2012 15:50:13 +0100 From: Gerd Hoffmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121116 Thunderbird/10.0.11 MIME-Version: 1.0 To: Bug 1087974 <1087974@bugs.launchpad.net> References: <20121208114601.24292.65396.malonedeb@wampee.canonical.com> <20121211100937.24493.23255.malone@gac.canonical.com> In-Reply-To: <20121211100937.24493.23255.malone@gac.canonical.com> X-Enigmail-Version: 1.4 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Tim Hardeck , qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [Bug 1087974] Re: [regression] vnc tight png produces garbled output X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org On 12/11/12 11:09, Tim Hardeck wrote: > * make sure that qemu is compiled with --enable-vnc-png > > * git clone git://github.com/kanaka/noVNC > * edit include/rfb.js at line 50 and comment out or remove all encodings above "['TIGHT_PNG', -260 ]," > * open vnc.html in Firefox or Chrome > > *apply either my patch to QEMU https://lists.nongnu.org/archive/html > /qemu-devel/2012-12/msg00869.html or use Websockify > https://github.com/kanaka/websockify to get Websocket support. > > * in case of my patch run QEMU with `-vnc :0,websocket` and connect > with noVNC to port 5700. > > * in case of Websockify run QEMU with `./websockify.py 5900 -- qemu- > system-x86_64 -vnc :0` and connect to port 5900 Hmm, doesn't reproduce here (using websockify proxy). cheers, Gerd --- a/include/rfb.js +++ b/include/rfb.js @@ -48,8 +48,8 @@ var that = {}, // Public API methods // In preference order encodings = [ - ['COPYRECT', 0x01 ], - ['TIGHT', 0x07 ], +// ['COPYRECT', 0x01 ], +// ['TIGHT', 0x07 ], ['TIGHT_PNG', -260 ], ['HEXTILE', 0x05 ], ['RRE', 0x02 ],