CM3 + Waveshare AMOLED screen

Hello everyone,
I’m facing an issue with my Waveshare AMOLED screen not functioning properly with my Radxa CM3 running Debian Bullseye. Here are the instructions of Waveshare to make the screen work with rpi: https://www.waveshare.com/wiki/5.5inch_HDMI_AMOLED

I added the following lines to /etc/kernel/cmdline :

max_framebuffer_height=1920
config_hdmi_boost=10
hdmi_group=2
hdmi_force_hotplug=1
hdmi_mode=87
hdmi_timings=1080 1 26 4 50 1920 1 8 2 6 0 0 0 60 0 135580000 3

After running sudo u-boot-update , the screen still doesn’t work at all. The only progress I’ve made is shown in this image:


I reached out to Waveshare support for assistance and they didn’t help me at all, they just told me to change the resolution of the board…
I already modified /etc/X11/xorg.conf.d file and now it looks like:

> Section "Device"
>     Identifier  "Rockchip Graphics"
>     Driver      "modesetting"
> 
> ### Use Rockchip RGA 2D HW accel
> #    Option      "AccelMethod"    "exa"
> 
> ### Use GPU HW accel
>     Option      "AccelMethod"    "glamor"
> 
>     Option      "DRI"            "2"
> 
> ### Set to "always" to avoid tearing, could lead to up 50% performance loss
>     Option      "FlipFB"         "always"
> 
> ### Limit flip rate and drop frames for "FlipFB" to reduce performance lost
> #    Option      "MaxFlipRate"    "60"
> 
>     Option      "NoEDID"         "false"
>     Option	    "UseGammaLUT"	 "true"
> EndSection
> 
> Section	"Screen"
>     Identifier	"Default Screen"
>     Device	    "Rockchip Graphics"
>     Monitor	    "Default Monitor"
>     SubSection "Display"
>         Modes    "1920x1080"
> 	Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
>     EndSubSection
> EndSection
> 
> ### Valid values for rotation are "normal", "left", "right"
> Section	"Monitor"
>     Identifier	"Default Monitor"
>     Option	    "Rotate" "normal"
> EndSection

Additionally the dmesg shows this errors related to drm:

[   25.673441] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp0
[   25.744285] systemd[1]: modprobe@drm.service: Succeeded.
[   25.745508] systemd[1]: Finished Load Kernel Module drm.
[   25.840132] rockchip-vop2 fe040000.vop: [drm:vop2_isr] *ERROR* POST_BUF_EMPTY irq err at vp0

If anyone has encountered a similar issue or has any suggestions for resolving it, I would greatly appreciate your input.

Thank you.

Please removed lines you added to /etc/kernel/cmdline. It is a totally different file compared to Raspberry Pi’s config.txt, so you cannot just copy & paste content there.

Can you run our system unmodified, then run xrandr --verbose and provide the output here? We’d like to know what EDID was detected by the system.

Hi, thank you for your response. I managed to make it work by setting a custom resolution like this:

xrandr --newmode "1080x1920_custom" 1355.80 1080 1136 1162 1206 1920 1921 1924 1930 -hsync +vsync xrandr --addmode OUTPUT_NAME 1080x1920_custom xrandr --output OUTPUT_NAME --mode 1080x1920_custom

However I have detected some artifacts displaying on my screen:

Here is the output of xrandr --verbose:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 16384 x 16384
HDMI-1 connected primary 1280x1024+0+0 (0x42) normal (normal left inverted right x axis y axis) 376mm x 301mm
Identifier: 0x40
Timestamp: 79466
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:
00ffffffffffff004c2d150139315347
0d0f0103a0261e782a6f86a25a4d9424
1a4f54bfef808180714f010101010101
010101010101302a009851002a403070
1300782d1100001e000000fd00384b1e
510e000a20202020202000005ffc0053
796e634d61737465720a2020000000ff
0048394e593331323030360a202001d8
02031b6223097f078301000067030c00
2000802d43011084e2000f0000360040
e86300001a1a1d008051d01c20408035
0040846300001c000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000015
hue: 50
range: (0, 100)
saturation: 50
range: (0, 100)
contrast: 50
range: (0, 100)
brightness: 50
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
hdmi_quant_range: default
supported: default, limit, full
output_type_capacity: HDMI
supported: DVI, HDMI
output_hdmi_dvi: auto
supported: auto, force_hdmi, force_dvi
allm_enable: disable
supported: disable, enable
allm_capacity: 0
range: (0, 1)
USER_SPLIT_MODE: 0
range: (0, 1)
color_format_caps: 3
range: (0, 15)
color_depth_caps: 1
range: (0, 255)
color_format: rgb
supported: rgb, ycbcr444, ycbcr422, ycbcr420, ycbcr_high_subsampling, ycbcr_low_subsampling, invalid_output
color_depth: 24bit
supported: Automatic, 24bit, 30bit
max bpc: 0
range: (8, 16)
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 0
range: (0, 15)
non-desktop: 0
range: (0, 1)
1280x1024 (0x42) 108.000MHz +HSync +VSync *current +preferred
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
1920x1080 (0x43) 148.500MHz +HSync +VSync
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
1920x1080 (0x44) 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
1280x1024 (0x45) 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
1152x864 (0x46) 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 (0x47) 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 (0x48) 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 (0x49) 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 (0x4a) 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 (0x4b) 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 (0x4c) 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 (0x4d) 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 (0x4e) 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 (0x4f) 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 (0x50) 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
640x480 (0x51) 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 (0x52) 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 (0x53) 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 (0x54) 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 (0x55) 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
640x480 (0x56) 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 (0x57) 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