9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] rpi4 RGB24 vs BGR24, glitches and golang status
@ 2021-02-27  8:49 p.kosyh
  2021-02-27 11:54 ` hiro
  2021-02-27 16:54 ` ori
  0 siblings, 2 replies; 5+ messages in thread
From: p.kosyh @ 2021-02-27  8:49 UTC (permalink / raw)
  To: 9front

Hello!  I finally bought rpi4 4Gb specially for 9front. It seems,
that default bpp of framebuffer is 16.  I changed it to 24 (via
cmdline.txt and config.txt) and found, that rendering is much faster!
(May be due removing overheads in 16->24 conversions?)

But on rpi4 r and b channels are swapped.  So, i changed BGR24 to
RGB24 in bcm/screen.c and now it works fine!  I am not sure, if this
patch will work on rpi3/2/1, so i just wrote this message if it will useful
for someone.

The next problem.  Sometimes i see strange artefacts on screen.  If i
run acme with lot of text i see pale character places (like vertical
bars) in other parts of the screen.  /dev/screen does not contain
those data.  I checked hdmi cable and monitor with Linux.  No problem.
Can it be something with alpha blending calculations or something like
this?  Is there an experiment i could do?  Btw i remember that i saw
such artefacts in 9front running in amd64 qemu on AMD (non Intel)
host.

Golang does not support plan9/arm64 target.  Because arm64 is
9front only :) Is anyone working on it or it is too hard to implement?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] rpi4 RGB24 vs BGR24, glitches and golang status
  2021-02-27  8:49 [9front] rpi4 RGB24 vs BGR24, glitches and golang status p.kosyh
@ 2021-02-27 11:54 ` hiro
  2021-02-27 14:54   ` p.kosyh
  2021-02-27 16:54 ` ori
  1 sibling, 1 reply; 5+ messages in thread
From: hiro @ 2021-02-27 11:54 UTC (permalink / raw)
  To: 9front

> /dev/screen does not contain those data.
then i think it's not our doing. probably nothing we can do about it... :(
are you using high resolutions, 4k?

try to save /dev/screen via topng, and display it in fullscreen on
both 9front and linux to make sure it's not just those combination of
pixels at those exact positions...

i have seen crazy shit like that at 4k over shitty hdmi cables. it was subtle.

try to also change refresh rate. if that changes the effect it's even
more sure that it's not our fault.
the lower the pixel clock the less we are affected by noise on the HDMI cable.

On 2/27/21, p.kosyh@gmail.com <p.kosyh@gmail.com> wrote:
> Hello!  I finally bought rpi4 4Gb specially for 9front. It seems,
> that default bpp of framebuffer is 16.  I changed it to 24 (via
> cmdline.txt and config.txt) and found, that rendering is much faster!
> (May be due removing overheads in 16->24 conversions?)
>
> But on rpi4 r and b channels are swapped.  So, i changed BGR24 to
> RGB24 in bcm/screen.c and now it works fine!  I am not sure, if this
> patch will work on rpi3/2/1, so i just wrote this message if it will useful
> for someone.
>
> The next problem.  Sometimes i see strange artefacts on screen.  If i
> run acme with lot of text i see pale character places (like vertical
> bars) in other parts of the screen.  /dev/screen does not contain
> those data.  I checked hdmi cable and monitor with Linux.  No problem.
> Can it be something with alpha blending calculations or something like
> this?  Is there an experiment i could do?  Btw i remember that i saw
> such artefacts in 9front running in amd64 qemu on AMD (non Intel)
> host.
>
> Golang does not support plan9/arm64 target.  Because arm64 is
> 9front only :) Is anyone working on it or it is too hard to implement?
>
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] rpi4 RGB24 vs BGR24, glitches and golang status
  2021-02-27 11:54 ` hiro
@ 2021-02-27 14:54   ` p.kosyh
  2021-02-27 16:56     ` hiro
  0 siblings, 1 reply; 5+ messages in thread
From: p.kosyh @ 2021-02-27 14:54 UTC (permalink / raw)
  To: 9front

Quoth hiro <23hiro@gmail.com>:

> try to save /dev/screen via topng, and display it in fullscreen on
> both 9front and linux to make sure it's not just those combination of
> pixels at those exact positions...

Nice idea.  Thanks!  Yes, you are right.  I see artefacts in
fullscreen view on linux too.  So, will try another hdmi cable or will
not pay attention to it.

> i have seen crazy shit like that at 4k over shitty hdmi cables. it was subtle.

I have 1920x1080, but glitches are not so noticeable.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] rpi4 RGB24 vs BGR24, glitches and golang status
  2021-02-27  8:49 [9front] rpi4 RGB24 vs BGR24, glitches and golang status p.kosyh
  2021-02-27 11:54 ` hiro
@ 2021-02-27 16:54 ` ori
  1 sibling, 0 replies; 5+ messages in thread
From: ori @ 2021-02-27 16:54 UTC (permalink / raw)
  To: 9front

Quoth p.kosyh@gmail.com:
> 
> Golang does not support plan9/arm64 target.  Because arm64 is
> 9front only :) Is anyone working on it or it is too hard to implement?

Nobody is working on it (as far as I know). It is
likely relatively easy to implement.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] rpi4 RGB24 vs BGR24, glitches and golang status
  2021-02-27 14:54   ` p.kosyh
@ 2021-02-27 16:56     ` hiro
  0 siblings, 0 replies; 5+ messages in thread
From: hiro @ 2021-02-27 16:56 UTC (permalink / raw)
  To: 9front

i have 4k working at 60hz, and without artifacts. should be much
easier for you to find a working hdmi cable.
unless something is just broken in the pi or your display...

On 2/27/21, p.kosyh@gmail.com <p.kosyh@gmail.com> wrote:
> Quoth hiro <23hiro@gmail.com>:
>
>> try to save /dev/screen via topng, and display it in fullscreen on
>> both 9front and linux to make sure it's not just those combination of
>> pixels at those exact positions...
>
> Nice idea.  Thanks!  Yes, you are right.  I see artefacts in
> fullscreen view on linux too.  So, will try another hdmi cable or will
> not pay attention to it.
>
>> i have seen crazy shit like that at 4k over shitty hdmi cables. it was
>> subtle.
>
> I have 1920x1080, but glitches are not so noticeable.
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-27 20:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27  8:49 [9front] rpi4 RGB24 vs BGR24, glitches and golang status p.kosyh
2021-02-27 11:54 ` hiro
2021-02-27 14:54   ` p.kosyh
2021-02-27 16:56     ` hiro
2021-02-27 16:54 ` ori

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git