From nobody Fri Aug 18 05:53:39 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RRrdz043bz4qkHG for ; Fri, 18 Aug 2023 05:53:43 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RRrdy5q4Fz4QVS; Fri, 18 Aug 2023 05:53:42 +0000 (UTC) (envelope-from corvink@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692338022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rudXRice1K3qW1GP+gJqjuhw4GNiZgzgh/ls6KVp3Z0=; b=KEqD012F4TdQi9cVu0vFyt85Dto0RGR1hE5SsaTQjY9U8oVmTncZPeeJcao7+mdO9NzQSW JAlu7T8skKOMLjR/NC9+ozOvIBHcwlGJ/EMyH4C/tFUyo4TE9Wo676jBLsDKop239WuGgR w5b0WftwBKrOchGXaJh67fuoJLTEGy0UA2JbMkNJqEib5kZ6ahumrwpm9kKsSOO9ZbuBdb AuY0Bf0CO9mP8RzOCYQiGirw3/Ayyo5gb4i5LQSSIHLTul/Cic6tDQOVQTRBVSYF5LW2d+ 4MUWcwSvFRIkV1xS907+nggNUf1Naj796wdQuHzu1f+3Um6oSMVhyNdQqM5LtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692338022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rudXRice1K3qW1GP+gJqjuhw4GNiZgzgh/ls6KVp3Z0=; b=e3vGXI4NAymv5Qs73PLCXWl6G5nKscLS9gcHTumaAMnuxZwG1kt6TqNNYK0ET4avGEo4vH 8c/TiPf0nQGtJaJqEP+adbgb6ZNEOEGWTuZjna9b76vd7Vao2qX/QEterzZLcaDJSxCh0L VoayN65jey1b3jlWtzcaS8DsYtjMdz7Mzq+4acaU2R4YSkKd5W2IlzNfyCLexrdIj6wnix b+E/3YbWP62stEM3sVGLDcA1Jhjkj0JH1EA1BvBFn3Bk1bOI77fKP5ExWXahJx4hS0Z/qt U/g4IfocE2AzSHnkilNIS9CM1PqzATgSCQs18dIge3pYxeq7yZ3KgLgWVAyV1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692338022; a=rsa-sha256; cv=none; b=I68ZuKy/r40DIm4uzbSs824CqMP1jb++u8F/WGIuGkeF0kYOWOXN6jgcUyHIxlucEz4L3Y FOdRW3anNTy6tV61DtWB4UjS0fd+NRudoIst5QLuiMNo/1vEqQHKpRehLG+7z6rn5NMeGj NwVCjG2er1GGyA/tzSrBzG+FqxzJ3e+ZysXRyko87fyj4SB+ICD9Sb1Th5GjYP0HgL7Utl NoTDf6OhK4x76G6Ps0JD8kVnEa5DTKoPhWiJPvXTMkYLy6anKUOa7S0AwlBtq4L6UwTKKw 83NYG2VhUpkgiNZMUOWpJ+3UYHicT3SmEymRIA3WhjWOjCtTcrbb8x1dwa0M4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [172.21.179.63] (unknown [195.226.174.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RRrdy1sg5z13kw; Fri, 18 Aug 2023 05:53:42 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Message-ID: <7bedef372204b58227be77a1ed132fa87f1d92c5.camel@FreeBSD.org> Subject: Re: RFB doesn't use client's SetPixelFormat From: Corvin =?ISO-8859-1?Q?K=F6hne?= To: Justin England , "virtualization@freebsd.org" Date: Fri, 18 Aug 2023 07:53:39 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-cD+YOT2RfD+ZQp/aUCXk" User-Agent: Evolution 3.48.4 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 --=-cD+YOT2RfD+ZQp/aUCXk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2023-08-17 at 10:31 -0700, Justin England wrote: > Greetings, >=20 > I am using FreeBSD 13.2-STABLE and have recently attempted to get > noVNC=E2=80=99s web based VNC client to work with my bhyve VNC consoles, = but > immediately realized that the colors are not correctly displayed > where essentially the reds and blues are reversed. >=20 > After doing some research, that is exactly what is happening.=C2=A0 Web > browsers seem to use BGR colors where bhyve=E2=80=99s RFB uses RGB.=C2=A0= Reading > through the mailing lists / forums of noVNC, this appears to be a > common issue and usually means that the embedded RFB server does not > properly use the pixel format that the client requests. >=20 > After quickly going through the RFB protocol and bhyve=E2=80=99s rfb.c > source, sure enough, when bhyve receives a SetPixelFormat from the > client, it basically ignores it and moves on. ( > rfb_recv_set_pixfmt_msg() ) >=20 > At this point, I=E2=80=99m not sure what to do next. >=20 > Does anybody have a work around for this? >=20 > Is this something that will be added in a future release? >=20 > Should I file a bug report as recommended by the noVNC developers? >=20 >=20 > I appreciate any help I can get with this. >=20 > Thanks, >=20 > Justin England >=20 >=20 >=20 Hi Justin, the illumos project made some improvements for vnc on their fork of bhyve. As far as I can see, they do support the SetPixelFormat command. This would be a good starting point. See https://github.com/illumos/illumos-gate/commit/1aa1f41fe10c6220a7fbef328fac= 1b72a8355a01 --=20 Kind regards, Corvin --=-cD+YOT2RfD+ZQp/aUCXk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmTfB2MACgkQ2FTaVjFe AmqhHA//RySv8xwhaMjFvWdXg1TNqUNX4iWbashk+80fXqyPYBq34zLmVXNdv+rF TzJ+eELbgRF5+zV2UM/W44NT+z8PEJp/d2K+Rq0TDTCBplbRihyY3/bWDwPNNH/L 2lePaqgCQrkKjKf0GLjpDtt5KvinOk+uj48YVxDxLd85581/0hpItw+NvpvQj5ZZ mI3vWikuFPQpQLl9rof+OjKuwSD+QMblNNDzMcJqsS7L7XKa8qKwx7NUksBXdgDG EtywsN+CNyXYWToXZsA7ZpL/gzGADX7MLc7QjH3zkq7Qqhr9UAgaPD4O1uDdcrer ZNZCYAADPVPQ9z9zhcX4xgKwG90B6MNyDc961YtJYaA0gCcTdL7HVCfFga71zhW5 Ij4G5Pqsv9HvcsY+A4aOvroIoW9j9v/LyCSBdgKkXVsPaCWBinp+AONBaiu8bTIQ Jaayq3BK5s3eueJ62H0fUOHD1MjsnrsJSOk4GgQ2llLbVJfD+/pbFVIUxb7wxJOF ljFYnsdStLnS8YUgMORznRiiJe3zB1r0ifRFyQrZ1x6v3dkVQhgqcO851eK/Qjps TzP1Cq1Xv3uupwPhaMnt4AR2b6BRVfvnYhScKUqUqCR9TxutrooOP3bah7pBvwVp SxuwUalyphyyWICE5MXkH11iojGxJqXJJuSrlzlfHgI8EiAmaMc= =oSTk -----END PGP SIGNATURE----- --=-cD+YOT2RfD+ZQp/aUCXk--