OpenHarmony 唤醒花屏问题

平台RK3568

基线 3.2 beta

在移植Harmonys的时候发现一个问题,就是开机正常显示,uboot和kernel正常,开机后灭屏,等待系统进入Deep ,然后按power按键唤醒设备。此时出现花屏或者不显示问题

多次测试发现,如果系统没有进入deep,就是串口还没打印以下log之前唤醒,没有问题

703.759856 PM: suspend entry (deep)

703.768287 Filesystems sync: 0.008 seconds

703.769305 I/kevent KeventPmNotifierFn:action=3

703.769371 I/kevent KeventPmNotifierFn:receive suspend event

703.770634 I/devmgr_service DevmgrServicePowerStateChange:suspend state 3

703.770708 I/sample_driver_test HdfSampleSuspend:called

703.770737 I/pm_driver_test HdfPmTestSuspend called

703.770958 I/devmgr_service DevmgrServicePowerStateChange:suspend state 3

703.771165 I/sample_driver_test HdfSampleSuspend:called

703.771200 I/pm_driver_test HdfPmTestSuspend called

703.771385 Freezing user space processes ... (elapsed 0.006 seconds) done.

703.778436 OOM killer disabled.

703.778464 Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.

703.782404 printk: Suspending console(s) (use no_console_suspend to debug)

如果开机一直插着usb,系统无法进入deep也不会有问题

一直困扰到底是怎么回事,网上也没找到解决方案,开始认真看log

发现在这种情况下唤醒打印的以下log

611.167887 I/HDF_DISP PanelSendCmds enter

611.457904 I/HDF_DISP PanelSendCmds enter

从此开始怀疑是不是hdf下还有一个driver走的并不是我们的dts的参数,一搜这个接口,果然在hdf下的display下的driver走的一套写在driver里面的初始化参数。

这时候把那套参数修改成自己屏的初始化参数,进入deep唤醒就正常了

相关推荐
爱写Bug的浮游1 小时前
初识仓颉:5 分钟看懂核心语法
harmonyos·编程语言
程序猿追14 小时前
鸿蒙 PC 的 Ionic 工单有两个错误,按下生成后光标该去哪儿
华为·harmonyos
KevinChaos18 小时前
随手备忘录手记 04|HarmonyOS 7.0新特性实验:物品图鉴的加载逻辑
华为·harmonyos
Sirius_Ji1 天前
从硬解基座到字幕与滤镜链:ffmpeg-for-HarmonyOS v0.3.2
harmonyos
用户86194177207411 天前
uni-app 鸿蒙端提现点不动?我用 UTS 插件补上了微信"确认收款"
微信·harmonyos
码间留白1 天前
uni-app 鸿蒙端提现点不动?我用 UTS 插件补上了微信"确认收款"
uni-app·harmonyos·鸿蒙·uts插件·微信商家转账
GitCode官方2 天前
开源鸿蒙跨平台直播|AI 时代,用 cj-tauri 开发鸿蒙 PC 应用
人工智能·华为·harmonyos·atomgit
程序猿追2 天前
鸿蒙 PC 用 Tauri 做本地查找,怎样让慢请求给新请求让路
华为·状态模式·harmonyos
程序猿追2 天前
鸿蒙 PC 用 Ionic 做巡检目录,缩窄窗口后草稿还在吗
华为·harmonyos
jianqiang.xue2 天前
1颗NPU分时复用:鸿蒙把轻AI塞进了MCU
人工智能·单片机·mcu·嵌入式·harmonyos·鸿蒙·端侧ai