linux icon indicating copy to clipboard operation
linux copied to clipboard

fuzzy black text on the red background in a 15.6 touchscreen on raspberry kernel 5.10,but kernel 4.19 works well

Open gitgonewithwind opened this issue 3 years ago • 35 comments

Describe the bug

HI all, our application need to show black text on the red background as error,

but fuzzy black text on the red background in a 15.6 touchscreen (Lilliput. The model is tk156a ) on raspberry kernel 5.10 ( ycoto meta-raspberrypi https://github.com/agherzan/meta-raspberrypi/commit/e1014d41ef459af807f95cb7ff9105f077bc6daa), the pi 4 hardware versions are 1.4 and 1.2

at same time, I tested updated raspbian image 2022-04-04-raspios-bullseye-arm64.img.xz(not yocto image) from here: https://www.raspberrypi.com/software/ (kernel 5.15) it has the same issue on both pi4 hardware 1.4 and 1.2

we have pi 4 hardware version 1.2 ,so I tested older yocto image (kernel 4.19 , meta-raspberrypi https://github.com/agherzan/meta-raspberrypi/commit/b112816e95ec59447a82a3a0ee7842c547dda335) ,it works well!( of course ,this image can not startup in hardware 1.4,so we can not use 1.2 boards for our application )

therefore, I think kernel 4.19 work well for the touchscreen ,but updated kernel (5.10,5.15) not work well. Maybe the issue is from HDMI drivers in higher kernel? so do you know where are the HDMI driver files in kernel? how to modified thems (I mean where is the key code ?) any help? I change different resolutions ,but same error.

Steps to reproduce the behaviour

see the pictures here for more info https://github.com/agherzan/meta-raspberrypi/issues/1069

Device (s)

Raspberry Pi 4 Mod. B

System

Which kernel version: kernel 5.10 & kernel 5.15

Logs

No response

Additional context

No response

gitgonewithwind avatar Jul 06 '22 17:07 gitgonewithwind

It sounds like issue occurs with 2022-04-04-raspios-bullseye-arm64 (with 5.15 kernel), so focus on that. Post any changes (if any) you made to config.txt and cmdline.txt.

By default that image uses the kms driver (dtoverlay=vc4-kms-v3d). Can you confirm if the issue occurs with kms changed to fkms on that line?

With kms, when you see fuzzy text can you post output of /sys/kernel/debug/dri/0/state. If that file doesn't exist then try /sys/kernel/debug/dri/1/state.

popcornmix avatar Jul 07 '22 10:07 popcornmix

https://github.com/torvalds/linux/commit/f741b28fb299263d2d03a0fb701bfe648927cd47 introduced in 5.2 dropped the framebuffer default from 32bpp to 16bpp assuming you're running vc4-kms-v3d or vc4-fkms-v3d.

If your text renderer is using anti-aliasing to try and smooth the font out, then the loss of colour definition may cause that sort of issue.

6by9 avatar Jul 07 '22 11:07 6by9

torvalds/linux@f741b28 introduced in 5.2 dropped the framebuffer default from 32bpp to 16bpp assuming you're running vc4-kms-v3d or vc4-fkms-v3d.

If your text renderer is using anti-aliasing to try and smooth the font out, then the loss of colour definition may cause that sort of issue.

@6by9 my yocto image kernel is 5.10. drivers/gpu/drm/vc4/vc4_drv.c is already changed to drm_fbdev_generic_setup(drm, 16); so the issue is NOT here.

gitgonewithwind avatar Jul 08 '22 12:07 gitgonewithwind

16bpp will be blurrier than 32bpp if using anti-aliased fonts.

6by9 avatar Jul 08 '22 12:07 6by9

16bpp will be blurrier than 32bpp if using anti-aliased fonts.

got it now. let try to change and test

gitgonewithwind avatar Jul 08 '22 12:07 gitgonewithwind

You should be able to override it by adding video=HDMI-A-1:1920x1080M-32@60 to /boot/cmdline.txt (do NOT add any carriage returns). Alter the resolution & frame rate to suit.

6by9 avatar Jul 08 '22 13:07 6by9

/sys/kernel/debug/dri/1/state

my debug info for Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux 2022-04-04-raspios-bullseye-arm64 ( I am going to try @6by9 solutions. I will post the result) dtoverlay=vc4-kms-v3d & dtoverlay=vc4-fkms-v3d

  1. vc4-fkms-v3d cat /sys/kernel/debug/dri/1/state plane[31]: plane-0 crtc=crtc-0 fb=99 allocated by = Xorg refcount=2 format=XR24 little-endian (0x34325258) modifier=0x0 size=1024x768 layers: size[0]=1024x768 pitch[0]=4096 offset[0]=0 obj[0]: name=0 refcount=3 start=001006f5 size=3145728 imported=no crtc-pos=1024x768+0+0 src-pos=1024.000000x768.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[38]: plane-1 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[45]: plane-2 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[52]: plane-3 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[59]: plane-4 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[66]: plane-5 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[73]: plane-6 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[80]: plane-7 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range crtc[87]: crtc-0 enable=1 active=1 self_refresh_active=0 planes_changed=1 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=1 connector_mask=1 encoder_mask=1 mode: "": 75 78750 1024 1040 1136 1312 768 769 772 800 0x0 0x5 connector[89]: HDMI-A-1 crtc=crtc-0 self_refresh_aware=0

  2. dtoverlay=vc4-kms-v3d

cat /sys/kernel/debug/dri/1/state plane[51]: plane-0 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[62]: plane-1 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[73]: plane-2 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[84]: plane-3 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[95]: plane-4 crtc=crtc-4 fb=340 allocated by = Xorg refcount=2 format=XR24 little-endian (0x34325258) modifier=0x0 size=1920x1080 layers: size[0]=1920x1080 pitch[0]=7680 offset[0]=0 obj[0]: name=0 refcount=3 start=00100bf7 size=8294400 imported=no crtc-pos=1920x1080+0+0 src-pos=1920.000000x1080.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[106]: plane-5 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=0 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[117]: plane-6 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[127]: plane-7 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=2 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[137]: plane-8 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=3 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[147]: plane-9 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=4 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[157]: plane-10 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=5 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[167]: plane-11 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=6 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[177]: plane-12 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=7 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[187]: plane-13 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=8 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[197]: plane-14 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=9 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[207]: plane-15 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=a color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[217]: plane-16 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=b color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[227]: plane-17 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=c color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[237]: plane-18 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=d color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[247]: plane-19 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=e color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[257]: plane-20 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=f color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[267]: plane-21 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=10 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[277]: plane-22 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=11 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[287]: plane-23 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=11 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[297]: plane-24 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=11 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[307]: plane-25 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=11 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[317]: plane-26 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=1 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range plane[327]: plane-27 crtc=(null) fb=0 crtc-pos=0x0+0+0 src-pos=0.000000x0.000000+0.000000+0.000000 rotation=1 normalized-zpos=11 color-encoding=ITU-R BT.709 YCbCr color-range=YCbCr limited range crtc[61]: crtc-0 enable=0 active=0 self_refresh_active=0 planes_changed=0 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=0 connector_mask=0 encoder_mask=0 mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0 crtc[72]: crtc-1 enable=0 active=0 self_refresh_active=0 planes_changed=0 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=0 connector_mask=0 encoder_mask=0 mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0 crtc[83]: crtc-2 enable=0 active=0 self_refresh_active=0 planes_changed=0 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=0 connector_mask=0 encoder_mask=0 mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0 crtc[94]: crtc-3 enable=0 active=0 self_refresh_active=0 planes_changed=0 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=0 connector_mask=0 encoder_mask=0 mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0 crtc[105]: crtc-4 enable=1 active=1 self_refresh_active=0 planes_changed=1 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=10 connector_mask=2 encoder_mask=2 mode: "": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5 crtc[116]: crtc-5 enable=0 active=0 self_refresh_active=0 planes_changed=0 mode_changed=0 active_changed=0 connectors_changed=0 color_mgmt_changed=0 plane_mask=0 connector_mask=0 encoder_mask=0 mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0 connector[32]: HDMI-A-1 crtc=(null) self_refresh_aware=0 connector[41]: HDMI-A-2 crtc=crtc-4 self_refresh_aware=0 connector[50]: Writeback-1 crtc=(null) self_refresh_aware=0

gitgonewithwind avatar Jul 08 '22 13:07 gitgonewithwind

You should be able to override it by adding video=HDMI-A-1:1920x1080M-32@60 to /boot/cmdline.txt (do NOT add any carriage returns). Alter the resolution & frame rate to suit.

I am going to try

gitgonewithwind avatar Jul 08 '22 13:07 gitgonewithwind

@6by9 my cmdline.txt:

video=HDMI-A-1:1920x1080M-32@60 console=serial0,115200 console=tty1 root=PARTUUID=f3d36243-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

config.txt : dtoverlay=vc4-kms-v3d or dtoverlay=vc4-fkms-v3d


but the issue is same as before

gitgonewithwind avatar Jul 08 '22 13:07 gitgonewithwind

The state posted for kms looks to have:

mode: "": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5
format=XR24 little-endian (0x34325258)
crtc-pos=1920x1080+0+0
src-pos=1920.000000x1080.000000+0.000000+0.000000

So, a 1920x1080 hdmi resolution. 24bpp framebuffer. And no scaling. So that all looks as expected.

popcornmix avatar Jul 08 '22 14:07 popcornmix

@popcornmix sorry, what do you mean? how I can change the config? change to video=HDMI-A-1:1920x1080M-24@60 ?

gitgonewithwind avatar Jul 08 '22 14:07 gitgonewithwind

I didn't suggest anything. I just looked at the kms state, which didn't have either of the obvious causes for the fuzzy text (a scaled or low bpp framebuffer).

popcornmix avatar Jul 08 '22 14:07 popcornmix

Although fkms:

mode: "": 75 78750 1024 1040 1136 1312 768 769 772 800 0x0 0x5

kms:

mode: "": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x0 0x5

are picking different hdmi resolutions. Do both appear fuzzy or only one?

popcornmix avatar Jul 08 '22 14:07 popcornmix

@popcornmix I tried different hdmi resolutions. both appear fuzzy.

gitgonewithwind avatar Jul 08 '22 14:07 gitgonewithwind

I'd asked in your forum post for a link to this display as a search only revealed a TK1560-T - you never answered.

What is the native resolution of this display?

How are you generating your text? It vaguely looks like it's running in a web browser. If you go back to your 4.19 image, then what does tvservice -s report?

Both vc4-kms-v3d and vc4-fkms-v3d will be rendering the display through V3D and OpenGL. 4.19 is likely to be working directly with the framebuffer with no acceleration.

Does it look blurry on a different HDMI display?

6by9 avatar Jul 08 '22 14:07 6by9

@6by9

I'd asked in your forum post for a link to this display as a search only revealed a TK1560-T - you never answered.

I did not received the email (the system shows will send a email to me if posted ), sorry I did not reply.

What is the native resolution of this display? native resolution:1920x1080 this is the webpage for the screen :https://lilliputweb.net/tk1560-t-15-6-inch-touch-screen-monitor/ the part# might be a little different because we have a custom splashscreen installed and a shatter proof film added

How are you generating your text? It vaguely looks like it's running in a web browser. If you go back to your 4.19 image, then what does tvservice -s report? yes, it's running in a web browser for our application. what does tvservice -s report? I will get it later

Both vc4-kms-v3d and vc4-fkms-v3d will be rendering the display through V3D and OpenGL. 4.19 is likely to be working directly with the framebuffer with no acceleration. 4.19 works well for my yocto image.

Does it look blurry on a different HDMI display?

not. we use more that 5 kinds HDMI display. there is no this kind issue. but one has another issue here: https://github.com/agherzan/meta-raspberrypi/issues/1027 for 13.3" LCD Lilliput TK1330-NP/C/T that we solved it with a additional hardware cable

gitgonewithwind avatar Jul 08 '22 15:07 gitgonewithwind

@6by9 If you go back to your 4.19 image, then what does tvservice -s report?

in my yocto image, pi4 hardware version 1.2. display correct. no fuzzy

tvservice -s state 0x6 [DVI CUSTOM RGB full 16:9], 1280x720 @ 60.00Hz, progressive root@raspberrypi4-64:~# uname -a Linux raspberrypi4-64 4.19.66 #1 SMP PREEMPT Wed Apr 13 18:11:21 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

gitgonewithwind avatar Jul 11 '22 15:07 gitgonewithwind

Well that appears to answer your own question - run at 1280x720 60Hz. Either modify the video=HDMI-A-1... line if booting to the console, or use xrandr --output HDMI-1 --mode 1280x720 --refresh 60 if using X.

6by9 avatar Jul 11 '22 15:07 6by9

Well that appears to answer your own question - run at 1280x720 60Hz. Either modify the video=HDMI-A-1... line if booting to the console, or use xrandr --output HDMI-1 --mode 1280x720 --refresh 60 if using X.

you mean I run xrandr --output HDMI-1 --mode 1280x720 --refresh 60 in kernel 5.10 at hardware version 1.4 , it will be fix ?

for our app,we always use 1280x720 for long time

gitgonewithwind avatar Jul 11 '22 16:07 gitgonewithwind

you mean I run xrandr --output HDMI-1 --mode 1280x720 --refresh 60 in kernel 5.10 at hardware version 1.4 , it will be fix ?

That's the suggestion. Try it. You can also use preferences/screen configuration from desktop menu for a gui way of setting this.

popcornmix avatar Jul 11 '22 16:07 popcornmix

@6by9 I tired before ,it's better but fuzzy still has a little bit. my colleagues think it seems OK.( you know the fuzzy is not very heavy, Maybe my colleagues or QC can accept it )

/etc/X11/xorg.conf.d/10-monitor.conf .. Identifier "Screen0" Device "HDMI-1" Monitor "HDMI-1" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1920x1080" "1280x720_60.00" EndSubSection EndSection ..

gitgonewithwind avatar Jul 11 '22 16:07 gitgonewithwind

The other thing from your tvservice output is that it is sending full range RGB in DVI mode, when I suspect that 5.10+ will be using limited range HDMI mode (depends on the EDID). You can force full range via xrandr --output HDMI-1 --set "Broadcast RGB" "Full". (Options are Automatic, Full, or Limited 16:235).

This all sounds like it is down to a dodgy EDID. xrandr --verbose will print it out as a block of 16 lines (along with the modes that it has parse from it). Can you post that section please?

6by9 avatar Jul 11 '22 16:07 6by9

Do you have overscan on? I believe that can change the scaling away from the native resolution.

JamesH65 avatar Jul 11 '22 16:07 JamesH65

The other thing from your tvservice output is that it is sending full range RGB in DVI mode, when I suspect that 5.10+ will be using limited range HDMI mode (depends on the EDID). You can force full range via xrandr --output HDMI-1 --set "Broadcast RGB" "Full". (Options are Automatic, Full, or Limited 16:235).

This all sounds like it is down to a dodgy EDID. xrandr --verbose will print it out as a block of 16 lines (along with the modes that it has parse from it). Can you post that section please? . .

which kernel I run xrandr --verbose ? kernel 5.10?

gitgonewithwind avatar Jul 11 '22 16:07 gitgonewithwind

Do you have overscan on? I believe that can change the scaling away from the native resolution.

I think I do not have overscan on(I do not know where to switch it on). we only open chromium(no frame,no address bar) pages to as a menu as GUI to display infos

gitgonewithwind avatar Jul 11 '22 17:07 gitgonewithwind

Do you have overscan on? I believe that can change the scaling away from the native resolution.

There was no scaling (see https://github.com/raspberrypi/linux/issues/5085#issuecomment-1179040023)

popcornmix avatar Jul 11 '22 17:07 popcornmix

which kernel I run xrandr --verbose ? kernel 5.10?

Yes, 5.10 or 5.15.

6by9 avatar Jul 11 '22 17:07 6by9

@6by9 my yocto image:

5.10.83-v8 #1 SMP PREEMPT Tue Dec 7 13:42:57 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux root@raspberrypi4-64:~# xrandr --verbose Can't open display root@raspberrypi4-64:~# export DISPLAY=:0 root@raspberrypi4-64:~# xrandr --verbose Screen 0: minimum 320 x 200, current 1280 x 720, maximum 7680 x 7680 HDMI-1 connected primary 1280x720+0+0 (0x47) normal (normal left inverted right x axis y axis) 170mm x 110mm Identifier: 0x44 Timestamp: 12680 Subpixel: unknown Gamma: 1.0:1.0:1.0 Brightness: 1.0 Clones:
CRTC: 0 CRTCs: 0 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: EDID: 00ffffffffffff003190502102000000 2d1c010380301b788a2895a7554ea326 0f5054bfef8081c090407140b3008180 a9c081008140023a801871382d40582c 4500aa6e0000001e662156aa51001e30 46f33300aa6e0000001e000000fc004d 6f6e69746f720a2020202020000000fd 00184c1e511e000000000000000001b8 020330c24d010304050790121314169f 2022260907070700008301000072030c 001000b84420c0840102030401410000 8c0ad08a20e02d10103e9600c48e2100 00188c0ad090204031200c405500c48e 21000018011d00bc52d01e20b8285540 c48e2100001e011d80d0721c1620102c 2580c48e2100009e0000000000000010 max bpc: 8 range: (8, 12) bottom margin: 0 range: (0, 100) top margin: 0 range: (0, 100) right margin: 0 range: (0, 100) left margin: 0 range: (0, 100) Colorspace: Default supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater link-status: Good supported: Good, Bad CONNECTOR_ID: 32 supported: 32 non-desktop: 0 range: (0, 1) 1280x720_60.00 (0x47) 74.500MHz -HSync +VSync *current +preferred h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 44.77KHz v: height 720 start 723 end 728 total 748 clock 59.86Hz 1920x1080 (0x48) 148.500MHz +HSync +VSync +preferred h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz 4096x2160 (0x49) 297.000MHz +HSync +VSync h: width 4096 start 5116 end 5204 total 5500 skew 0 clock 54.00KHz v: height 2160 start 2168 end 2178 total 2250 clock 24.00Hz 4096x2160 (0x4a) 296.703MHz +HSync +VSync h: width 4096 start 5116 end 5204 total 5500 skew 0 clock 53.95KHz v: height 2160 start 2168 end 2178 total 2250 clock 23.98Hz 3840x2160 (0x4b) 297.000MHz +HSync +VSync h: width 3840 start 4016 end 4104 total 4400 skew 0 clock 67.50KHz v: height 2160 start 2168 end 2178 total 2250 clock 30.00Hz 3840x2160 (0x4c) 297.000MHz +HSync +VSync h: width 3840 start 4896 end 4984 total 5280 skew 0 clock 56.25KHz v: height 2160 start 2168 end 2178 total 2250 clock 25.00Hz 3840x2160 (0x4d) 297.000MHz +HSync +VSync h: width 3840 start 5116 end 5204 total 5500 skew 0 clock 54.00KHz v: height 2160 start 2168 end 2178 total 2250 clock 24.00Hz 3840x2160 (0x4e) 296.703MHz +HSync +VSync h: width 3840 start 4016 end 4104 total 4400 skew 0 clock 67.43KHz v: height 2160 start 2168 end 2178 total 2250 clock 29.97Hz 3840x2160 (0x4f) 296.703MHz +HSync +VSync h: width 3840 start 5116 end 5204 total 5500 skew 0 clock 53.95KHz v: height 2160 start 2168 end 2178 total 2250 clock 23.98Hz 1920x1080 (0x50) 148.500MHz +HSync +VSync h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz 1920x1080 (0x51) 148.352MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz 1920x1080i (0x52) 74.250MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.75KHz v: height 1080 start 1084 end 1094 total 1125 clock 60.00Hz 1920x1080i (0x53) 74.250MHz +HSync +VSync Interlace h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 28.12KHz v: height 1080 start 1084 end 1094 total 1125 clock 50.00Hz 1920x1080 (0x54) 74.250MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.75KHz v: height 1080 start 1084 end 1089 total 1125 clock 30.00Hz 1920x1080 (0x55) 74.250MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 27.00KHz v: height 1080 start 1084 end 1089 total 1125 clock 24.00Hz 1920x1080i (0x56) 74.176MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.72KHz v: height 1080 start 1084 end 1094 total 1125 clock 59.94Hz 1920x1080 (0x57) 74.176MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.72KHz v: height 1080 start 1084 end 1089 total 1125 clock 29.97Hz 1920x1080 (0x58) 74.176MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 26.97KHz v: height 1080 start 1084 end 1089 total 1125 clock 23.98Hz 1680x1050 (0x59) 119.000MHz +HSync -VSync h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz 1400x1050 (0x5a) 101.000MHz +HSync -VSync h: width 1400 start 1448 end 1480 total 1560 skew 0 clock 64.74KHz v: height 1050 start 1053 end 1057 total 1080 clock 59.95Hz 1600x900 (0x5b) 108.000MHz +HSync +VSync h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz v: height 900 start 901 end 904 total 1000 clock 60.00Hz 1280x1024 (0x5c) 135.000MHz +HSync +VSync h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz 1280x1024 (0x5d) 108.000MHz +HSync +VSync h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz 1280x960 (0x5e) 108.000MHz +HSync +VSync h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.00KHz v: height 960 start 961 end 964 total 1000 clock 60.00Hz 1280x800 (0x5f) 71.000MHz +HSync -VSync h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 49.31KHz v: height 800 start 803 end 809 total 823 clock 59.91Hz 1152x864 (0x60) 108.000MHz +HSync +VSync h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz v: height 864 start 865 end 868 total 900 clock 75.00Hz 1280x720 (0x61) 74.250MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz v: height 720 start 725 end 730 total 750 clock 60.00Hz 1280x720 (0x62) 74.250MHz +HSync +VSync h: width 1280 start 1720 end 1760 total 1980 skew 0 clock 37.50KHz v: height 720 start 725 end 730 total 750 clock 50.00Hz 1280x720 (0x63) 74.176MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 44.96KHz v: height 720 start 725 end 730 total 750 clock 59.94Hz 1024x768 (0x64) 78.750MHz +HSync +VSync h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz v: height 768 start 769 end 772 total 800 clock 75.03Hz 1024x768 (0x65) 75.000MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz v: height 768 start 771 end 777 total 806 clock 70.07Hz 1024x768 (0x66) 65.000MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz v: height 768 start 771 end 777 total 806 clock 60.00Hz 832x624 (0x67) 57.284MHz -HSync -VSync h: width 832 start 864 end 928 total 1152 skew 0 clock 49.73KHz v: height 624 start 625 end 628 total 667 clock 74.55Hz 800x600 (0x68) 50.000MHz +HSync +VSync h: width 800 start 856 end 976 total 1040 skew 0 clock 48.08KHz v: height 600 start 637 end 643 total 666 clock 72.19Hz 800x600 (0x69) 49.500MHz +HSync +VSync h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz v: height 600 start 601 end 604 total 625 clock 75.00Hz 800x600 (0x6a) 40.000MHz +HSync +VSync h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz v: height 600 start 601 end 605 total 628 clock 60.32Hz 800x600 (0x6b) 36.000MHz +HSync +VSync h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz v: height 600 start 601 end 603 total 625 clock 56.25Hz 720x576 (0x6c) 27.000MHz -HSync -VSync h: width 720 start 732 end 796 total 864 skew 0 clock 31.25KHz v: height 576 start 581 end 586 total 625 clock 50.00Hz 720x576i (0x6d) 13.500MHz -HSync -VSync Interlace h: width 720 start 732 end 795 total 864 skew 0 clock 15.62KHz v: height 576 start 580 end 586 total 625 clock 50.00Hz 720x480 (0x6e) 27.027MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.50KHz v: height 480 start 489 end 495 total 525 clock 60.00Hz 720x480 (0x6f) 27.000MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.47KHz v: height 480 start 489 end 495 total 525 clock 59.94Hz 720x480i (0x70) 13.514MHz -HSync -VSync Interlace h: width 720 start 739 end 801 total 858 skew 0 clock 15.75KHz v: height 480 start 488 end 494 total 525 clock 60.00Hz 720x480i (0x71) 13.500MHz -HSync -VSync Interlace h: width 720 start 739 end 801 total 858 skew 0 clock 15.73KHz v: height 480 start 488 end 494 total 525 clock 59.94Hz 640x480 (0x72) 31.500MHz -HSync -VSync h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz v: height 480 start 481 end 484 total 500 clock 75.00Hz 640x480 (0x73) 31.500MHz -HSync -VSync h: width 640 start 664 end 704 total 832 skew 0 clock 37.86KHz v: height 480 start 489 end 492 total 520 clock 72.81Hz 640x480 (0x74) 30.240MHz -HSync -VSync h: width 640 start 704 end 768 total 864 skew 0 clock 35.00KHz v: height 480 start 483 end 486 total 525 clock 66.67Hz 640x480 (0x75) 25.200MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz v: height 480 start 490 end 492 total 525 clock 60.00Hz 640x480 (0x76) 25.175MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz v: height 480 start 490 end 492 total 525 clock 59.94Hz 720x400 (0x77) 28.320MHz -HSync +VSync h: width 720 start 738 end 846 total 900 skew 0 clock 31.47KHz v: height 400 start 412 end 414 total 449 clock 70.08Hz HDMI-2 disconnected (normal left inverted right x axis y axis) Identifier: 0x45 Timestamp: 12680 Subpixel: unknown Clones:
CRTCs: 4 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: max bpc: 8 range: (8, 12) bottom margin: 0 range: (0, 100) top margin: 0 range: (0, 100) right margin: 0 range: (0, 100) left margin: 0 range: (0, 100) Colorspace: Default supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater link-status: Good supported: Good, Bad CONNECTOR_ID: 40 supported: 40 non-desktop: 0 range: (0, 1)

gitgonewithwind avatar Jul 11 '22 17:07 gitgonewithwind

@6by9 root@raspberrypi4-64:~# xrandr --output HDMI-1 --set "Broadcast RGB" "Full" X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 139 (RANDR) Minor opcode of failed request: 11 (RRQueryOutputProperty) Serial number of failed request: 39 Current serial number in output stream: 39

gitgonewithwind avatar Jul 11 '22 17:07 gitgonewithwind

"Broadcast RGB" was only added in 5.15 via #4850 and updated by #5021 in May. You'll need a fairly recent kernel for that (5.15.40 or more recent).

6by9 avatar Jul 11 '22 17:07 6by9