Khadas Display Problem

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu Noble

Which version of system do you use? Please provide the version of the system here:

Build from fenix
5.15.119 #1.6.8

PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Please describe your issue below:

Good day. I have a problem with the screen on my khadas vim1s. How can I switch the resolution to 1280x800? When I turn this resolution - display no signal.

edid of display:

00ffffffffffff0026cd0511fa0200000f22010380160e782af3e59957538f2622505421080081c001010101010101010101010101019e20009051201f3048803600d9880000001e000000fc00504c5431303135202020202020000000fd00383c1f3209000a20202020202000000010000a202020202020202020202020014a

gnome-randr:

gnome-randr
max-screen-size: 0x0
layout-mode: logical
global-scale-required: no
supports-mirroring: yes
supports-changing-layout-mode: no

logical monitor 0:
x: 0 y: 0, scale: 1.0, rotation: normal, primary: yes
associated physical monitors:
        HDMI-1 PLT1015

HDMI-1 IVM PLT1015       0x000002fa
     1280x800   59.81*      [x1.0+]
     1280x720   60.00+      [x1.0+]

[ 2712.524537] [hdmitx:] system: irq 4 0
[ 2712.524598] [hdmitx:] UTC+0 2024-10-10 17:15:10 HPD LOW
[ 2712.524750] [hdmitx:] system: plugout
[ 2712.524808] [RX]-up_phy_addr = 0
[ 2712.524825] [hdmitx:] hdmitx_set_drm_pkt: disable drm pkt
[ 2712.524859] [hdmitx:] hdmitx_set_hdr10plus_pkt: null vsif
[ 2712.525586] [drm] drm hdmitx hpd notify
[ 2712.602949] [drm] [meson_hdmitx_encoder_atomic_disable]
[ 2712.709523] [drm] am_meson_crtc_atomic_disable-[0]:in
[ 2713.343427] [hdmitx:] system: irq 2 0
[ 2713.343488] [hdmitx:] UTC+0 2024-10-10 17:15:11 HPD HIGH
[ 2713.865499] [hdmitx:] system: plugin
[ 2713.998017] cec: [hdmitx_notify_callback] unsupported notify:3
[ 2713.998046] [RX]-up_phy_addr = 1
[ 2713.998060] [hdmitx:] edid: blk0 raw data
[ 2713.998120] [hdmitx:] 00ffffffffffff0026cd0511fa0200000f22010380160e782af3e59957538f2622505421080081c001010101010101010101010101019e20009051201f304880
               3600d9880000001e000000fc00504c5431303135202020202020000000fd00383c1f3209000a20202020202000000010000a202020202020202020202020014a
[ 2713.998134] [hdmitx:] edid: blk1 raw data
[ 2713.998186] [hdmitx:] 020318f3440102038466030c001000802309070783010000011d007251d01e206e285500a20b3200001e00000000000000000000000000000000000000000000
               00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088
[ 2713.998531] [drm] drm hdmitx hpd notify
[ 2714.067619] [drm:meson_hdmitx_atomic_check [aml_drm]] *ERROR* hdmitx_on changed, force modeset.
[ 2714.068685] [drm]  meson_hdmitx_choose_preset_mode validate vmode 1280x800p60hz, 0
[ 2714.068712] [drm] meson_hdmitx_choose_preset_mode update 1280x800p60hz expect 0
[ 2714.068717] [drm] meson_hdmitx_encoder_atomic_mode_set enter:attr[1-12]
[ 2714.068724] [drm] hdmitx hdr eotf check fail [-19]
[ 2714.068731] [drm] build_hdmitx_attr_str:422,12bit = 1+12
[ 2714.068769] [hdmitx:] sname = (null)
[ 2714.068775] [hdmitx:] char_clk = 83500
[ 2714.068779] [hdmitx:] cd = 6
[ 2714.068782] [hdmitx:] cs = 1
[ 2714.068786] [drm] meson_hdmitx_test_color_attr success [1]+[12]
[ 2714.068794] [drm] am_meson_crtc_atomic_enable-[0] in: new[1280x800p60hz], old[], vmode[4-0], uboot[0]
[ 2714.068803] [drm] am_meson_crtc_atomic_enable-[0]: enable mode 1280x800p60hz final vmode 0
[ 2714.069185] [hdmitx:] *ERROR* VESA only support RGB format
[ 2714.070426] [hdmitx:] div40: 0
[ 2714.097473] [hdmitx:] ERR: SCDC not present, should not send 1:10
[ 2714.097494] [hdmitx:] frac_rate = 1
[ 2714.097504] [hdmitx:] config HPLL = 5680000 frac_rate = 1
[ 2714.097588] [hdmitx:] HPLL: 0xdb0004ec
[ 2714.097669] [hdmitx:] set enc for VIC: 777
[ 2714.097680] [hdmitx:]  config hdmitx IP vic = 777 cd:4 cs: 0
[ 2714.149508] [hdmitx:] Sink is HDMI device
[ 2714.149572] [hdmitx:] fs = 3, cd = 4, tmds_clk = 83500
[ 2714.149584] [hdmitx:] update audio N 6144
[ 2714.152664] [hdmitx:] update physical size: 220 140
[ 2714.152680] DOLBY: vout_notify_callback: VOUT_EVENT_MODE_CHANGE
[ 2714.152689] vsync_pts_inc 1504 1000/59810
[ 2714.152776] [drm] meson_vout_update_mode_name: hdmitx update vout 1 name 1280x800p60hz.
[ 2714.152799] [hdmitx:] hdmitx support hdcp14: 0, hdcp22: 0
[ 2714.152805] [drm] meson_hdmitx_get_hdcp_request usr_type: 3, hdcp cap: 0,1
[ 2714.152810] [drm] [meson_hdmitx_get_hdcp_request]: TX no hdcp key
[ 2714.152813] [drm:meson_hdmitx_update_hdcp [aml_drm]] *ERROR* meet stopped hdcp stat
[ 2714.153288] [drm:meson_hdmitx_update_hdcp [aml_drm]] *ERROR* No valid hdcp mode exit, maybe hdcp havenot init.
[ 2714.154787] [drm] am_meson_crtc_atomic_flush color_mgmt_changed!
[ 2714.154807] CPU: 2 PID: 1386 Comm: KMS thread Tainted: G        W   E     5.15.119 #1.6.8
[ 2714.154815] Hardware name: Khadas VIM1S (DT)
[ 2714.154820] Call trace:
[ 2714.154822]  dump_backtrace+0x0/0x1c4
[ 2714.154836]  show_stack+0x18/0x2c
[ 2714.154842]  dump_stack_lvl+0x64/0x80
[ 2714.154852]  dump_stack+0x18/0x34
[ 2714.154858]  rdma_write_reg+0x2f0/0x350 [aml_media]
[ 2714.156468]  rdma_write_reg_bits+0x188/0x400 [aml_media]
[ 2714.157976]  VSYNC_WR_MPEG_REG_BITS+0xd8/0x110 [aml_media]
[ 2714.159525]  am_meson_ctm_disable+0x20/0x30 [aml_media]
[ 2714.161043]  am_meson_crtc_atomic_flush+0x2b0/0x2c0 [aml_drm]
[ 2714.161104]  drm_atomic_helper_commit_planes+0x14c/0x21c
[ 2714.161117]  drm_atomic_helper_commit_tail_rpm+0x5c/0xa0
[ 2714.161124]  meson_atomic_helper_commit_tail+0x80/0x90 [aml_drm]
[ 2714.161168]  commit_tail+0xa4/0x194 [aml_drm]
[ 2714.161212]  meson_atomic_commit+0xa58/0xac0 [aml_drm]
[ 2714.161256]  drm_atomic_commit+0x4c/0x60
[ 2714.161264]  drm_mode_atomic_ioctl+0x7e4/0xe9c
[ 2714.161272]  drm_ioctl_kernel+0xc8/0x120
[ 2714.161280]  drm_ioctl+0x2a0/0x5cc
[ 2714.161287]  __arm64_sys_ioctl+0xac/0xf0
[ 2714.161296]  invoke_syscall+0x48/0x114
[ 2714.161305]  el0_svc_common.constprop.0+0x44/0xec
[ 2714.161312]  do_el0_svc+0x24/0xa0
[ 2714.161318]  el0_svc+0x20/0x80
[ 2714.161327]  el0t_64_sync_handler+0xe8/0x114
[ 2714.161334]  el0t_64_sync+0x1b0/0x1b4
[ 2714.161424] rdma: rdma_write(1) 0(32bd)<=0
[ 2714.161443] [drm] am_meson_crtc_atomic_flush Set GAMMA
[ 2714.221946] [drm] am_meson_crtc_atomic_flush color_mgmt_changed!
[ 2714.221975] CPU: 3 PID: 157 Comm: crtc0_commit Tainted: G        W   E     5.15.119 #1.6.8
[ 2714.221986] Hardware name: Khadas VIM1S (DT)
[ 2714.221990] Call trace:
[ 2714.221993]  dump_backtrace+0x0/0x1c4
[ 2714.222008]  show_stack+0x18/0x2c
[ 2714.222014]  dump_stack_lvl+0x64/0x80
[ 2714.222024]  dump_stack+0x18/0x34
[ 2714.222030]  rdma_write_reg+0x2f0/0x350 [aml_media]
[ 2714.224405]  rdma_write_reg_bits+0x188/0x400 [aml_media]
[ 2714.226517]  VSYNC_WR_MPEG_REG_BITS+0xd8/0x110 [aml_media]
[ 2714.228136]  am_meson_ctm_disable+0x20/0x30 [aml_media]
[ 2714.230442]  am_meson_crtc_atomic_flush+0x2b0/0x2c0 [aml_drm]
[ 2714.230532]  drm_atomic_helper_commit_planes+0x14c/0x21c
[ 2714.230548]  drm_atomic_helper_commit_tail_rpm+0x5c/0xa0
[ 2714.230556]  meson_atomic_helper_commit_tail+0x80/0x90 [aml_drm]
[ 2714.230607]  commit_tail+0xa4/0x194 [aml_drm]
[ 2714.230655]  meson_commit_work+0x40/0xc0 [aml_drm]
[ 2714.230705]  kthread_worker_fn+0xbc/0x280
[ 2714.230716]  kthread+0x14c/0x160
[ 2714.230722]  ret_from_fork+0x10/0x20
[ 2714.230871] rdma: rdma_write(1) 0(32bd)<=0
[ 2714.230900] [drm] am_meson_crtc_atomic_flush Set GAMMA
[ 2714.245063] [drm] am_meson_crtc_atomic_flush color_mgmt_changed!
[ 2714.245091] CPU: 3 PID: 157 Comm: crtc0_commit Tainted: G        W   E     5.15.119 #1.6.8
[ 2714.245102] Hardware name: Khadas VIM1S (DT)
[ 2714.245107] Call trace:
[ 2714.245109]  dump_backtrace+0x0/0x1c4
[ 2714.245125]  show_stack+0x18/0x2c
[ 2714.245131]  dump_stack_lvl+0x64/0x80
[ 2714.245140]  dump_stack+0x18/0x34
[ 2714.245147]  rdma_write_reg+0x2f0/0x350 [aml_media]
[ 2714.246671]  rdma_write_reg_bits+0x188/0x400 [aml_media]
[ 2714.248179]  VSYNC_WR_MPEG_REG_BITS+0xd8/0x110 [aml_media]
[ 2714.249727]  am_meson_ctm_disable+0x20/0x30 [aml_media]
[ 2714.251240]  am_meson_crtc_atomic_flush+0x2b0/0x2c0 [aml_drm]
[ 2714.251302]  drm_atomic_helper_commit_planes+0x14c/0x21c
[ 2714.251313]  drm_atomic_helper_commit_tail_rpm+0x5c/0xa0
[ 2714.251320]  meson_atomic_helper_commit_tail+0x80/0x90 [aml_drm]
[ 2714.251364]  commit_tail+0xa4/0x194 [aml_drm]
[ 2714.251409]  meson_commit_work+0x40/0xc0 [aml_drm]
[ 2714.251453]  kthread_worker_fn+0xbc/0x280
[ 2714.251461]  kthread+0x14c/0x160
[ 2714.251467]  ret_from_fork+0x10/0x20
[ 2714.251585] rdma: rdma_write(1) 0(32bd)<=0
[ 2714.251602] [drm] am_meson_crtc_atomic_flush Set GAMMA
[ 2730.739716] [hdmitx:] system: irq 4 0
[ 2730.739755] [hdmitx:] UTC+0 2024-10-10 17:15:28 HPD LOW
[ 2730.739831] [hdmitx:] system: plugout
[ 2730.739883] [RX]-up_phy_addr = 0
[ 2730.739897] [hdmitx:] hdmitx_set_drm_pkt: disable drm pkt
[ 2730.739924] [hdmitx:] hdmitx_set_hdr10plus_pkt: null vsif
[ 2730.740314] [drm] drm hdmitx hpd notify
[ 2730.811028] [drm] [meson_hdmitx_encoder_atomic_disable]
[ 2730.921308] [drm] am_meson_crtc_atomic_disable-[0]:in

Hello @Anton_Kalinichenko

Can you check with the latest code? Just pull the code from GitHub, you use can try the prebuild image 1.7-240926.

@numbqq Hi. I’m tryed new image 1.7-240926 and problem not fixed.
resolution 1280x800 not working

Hello @Anton_Kalinichenko

@ivan.li will try to add support for 1280x800 resolution and provide a test image for you later.

@numbqq Thanks a lot. We are really looking forward to it :sweat_smile:

I think problem in freq 59.810326 Hz. Because default resolutions in image is 60hz:

Detailed Timing Descriptors:
    DTD 1:  1280x800    **59.810326 Hz**   8:5     49.702 kHz     83.500000 MHz (217 mm x 136 mm)
                 Hfront   72 Hsync 128 Hback  200 Hpol P
                 Vfront    3 Vsync   6 Vback   22 Vpol P

@numbqq @ivan.li
Hello. Can you please tell me when we can expect a test image?

Hello @Anton_Kalinichenko

Next week I will provide you with test image.

Hi. Do you have any updates on my issue?

Hello @Anton_Kalinichenko

1280x800 is supported by default, but currently, switching to 1280x800 causes the HDMI display to go black. I am still working on resolving this issue.

Hello. But display is black because GDM not starting. When I turn 1280x800 - gdm service can’t start and cyclically restarting

Please tell me when we can expect a fix? We already have the software written, everything is installed on the final product, but the screen does not want to work :sleepy:
And at a resolution of 1280x720 - all round elements become oval

We are really looking forward to this fix

Hi @ivan.li @numbqq
Do you have any updates ?

Hello @Anton_Kalinichenko

We are still working on resolving this issue. once it’s resolved, I will update the firmware here.

Hello @ivan.li
Do you have any changes ?

Hello @Anton_Kalinichenko
The issue has not yet been fully resolved.

@numbqq @ivan.li

Hi. It’s been more than a month. Please help with my problem. :sleepy:

Hello @Anton_Kalinichenko

Sorry for the delay, we are working on it.

Could you use oowow to install this image and check again?

vim1s-ubuntu-24.04-xfce-linux-5.15-fenix-1.7.3-241206-develop-test-only.img.xz

Hello. Where I can download this image?

UPD: I found

I tested this image and the resolution 1280x800 still doesn’t work. And we need gnome…

OK, we will try to find same screen as yous and do more debug.

Hi @numbqq. Do you have any results?