Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 无法禁用RK3588的待机状态

54

积分

0

威望

0

贡献

技术小白

积分
54

无法禁用RK3588的待机状态

发表于 2023-6-19 15:45:18      浏览:4009 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_linux_bsp_release_20230403_v1.0.6f
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 按照文档《RK3588 系统待机配置指南》(Rockchip_RK3588_Developer_Guide_System_Suspend_CN.pdf)进行修改
  • Log日志: log.rar
问题描述及复现步骤:
硬件:AIO-3588Q
软件:buildroot (sdk 版本:v1.0.6f.)
在系统运行的时候,单击power按键,会使系统进入待机状态,现在想要禁止单击Power按键系统进入待机状态,按照文档《RK3588 系统待机配置指南》(Rockchip_RK3588_Developer_Guide_System_Suspend_CN.pdf)中的步骤,在kernel的dts文件rk3588-firefly-aio-3588q-mipi101-M101014-BE45-A1.dtsi,增加如下设置:
&rockchip_suspend {
       status= "disabled";
       rockchip,sleep-debug-en= <0>;
};
或:
&rockchip_suspend {
       status= "disabled";
       rockchip,sleep-debug-en= <0>;
       rockchip,sleep-mode-config= <0>;
       rockchip,wakeup-config= <0>;
};
均无法奏效,即:单击power键后,系统仍然进入待机状态,在串口打印打印如下信息:
[ 463.265257] [dhd] [wlan0] dhd_pri_stop : tx queue stopped
[ 463.265297] [dhd] [wlan0] dhd_stop : Enter
[ 463.265307] [dhd] dhd_stop: ######### called for ifidx=0 #########
[ 463.265316] [dhd] dhd_rtt_deinit: ENTER
[ 463.265324] [dhd] dhd_rtt_deinit: EXIT, err = 0
[ 463.267814] [dhd] CFGP2P-ERROR) wl_cfgp2p_disable_discovery :  do nothing, not initialized
[ 463.268132] [dhd] dhd_stop: making dhdpub up FALSE
[ 463.268152] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 3 ->mode 0
[ 463.268160] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=10,TCPDATA_INFO_MAXNUM=10
[ 463.268210] [dhd] [wlan0] wl_android_wifi_off : in g_wifi_on=1,on_failure=1
[ 463.268222] [dhd] dhd_rtt_deinit: ENTER
[ 463.268229] [dhd] dhd_rtt_deinit: EXIT, err = 0
[ 463.268241] [dhd] dhd_bus_devreset: == Power OFF ==
[ 463.268286] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 463.268442] [dhd] dhd_dpc_kill: tasklet disabled
[ 463.272664] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 463.272684] [dhd] dhd_bus_devreset: WLAN OFF Done
[ 463.272696] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ 463.272705] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ 463.272715] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 463.272724] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 463.272731] wifi power off
[ 463.377269] [WLAN_RFKILL]: wifi shut off power [GPIO20-0]
[ 463.377316] [dhd] [wlan0] wl_android_wifi_off : out
[ 463.377390] [dhd] [wlan0] dhd_stop : Exit
[ 463.394825] PM: suspend entry (deep)
[ 463.395803] Filesystems sync: 0.000 seconds
[ 463.395840] [dhd] dhd_pm_callback: action=3, suspend=1, suspend_mode=1
[ 463.395856] [dhd] dhd_conf_set_suspend_resume : op_mode 5, suspend 1,suspended 0, insuspend 0x6, suspend_mode=1
[ 463.397279] Freezing user space processes ... (elapsed 0.002 seconds)done.
[ 463.399428] OOM killer disabled.
[ 463.399438] Freezing remaining freezable tasks ... (elapsed 0.137seconds) done.
[ 463.536926] printk: Suspending console(s) (use no_console_suspend todebug)
INFO:   BL31: v2.3():v2.3-499-ge63a16361:derrick.huang
INFO:   enter: cfg=0x4000024, sleeptimes:1
INFO:   armoff_ddrpd
INFO:   slp_from_uboot
INFO:   pmu debug
INFO:   io_ret (0x0)
INFO:   GPIO POWER INFO:
INFO:           not config
INFO:   GPIO0_INTEN: 0xffff 0xffff 0xfe7e 0xf7ff 0x0 0xc02e302d
INFO:   GPIO1_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0x44ec0c30
INFO:   GPIO2_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xffcef4
INFO:   GPIO3_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xd0047b9f
INFO:   GPIO4_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xe09c02e6
INFO:    IRQ_EN: 251
INFO:    IRQ_EN: 250
INFO:    IRQ_EN: 248
INFO:    IRQ_EN: 247
INFO:    IRQ_EN: 282
INFO:    IRQ_EN: 272
INFO:    IRQ_EN: 313
INFO:    IRQ_EN: 312
INFO:    IRQ_EN: 311
INFO:    IRQ_EN: 310
INFO:    IRQ_EN: 309
INFO:    IRQ_EN: 292
INFO:    IRQ_EN: 321
INFO:    IRQ_EN: 365
01INFO:   pmu_power_domains_suspend 1000 pd_st=0x24dfffff repair_st=0xfa900001 idle_st=0xbffffqst=0x28000
2abcde3456789aINFO:    PMU1_PWR_CON(0x1) PMU1_CRU_PWR_CON(0x30)PMU1_WAKEUP_INT_CON(0x101)
PMU2_BUS_IDLE_ST(0x27fffff 0x0)PMU2_BUS_IDLE_ACK(0x27fffff 0x0) PMU2_PWR_GATE_ST(0x6cffffff 0x0)
PMU2_BUS_IDLE_CON(0x0 0xf980 0xf007) PMU2_BIU_AUTO_CON(0xffff0xffff 0x7)
PMU2_PWR_GATE_CON(0x0 0x1000 0x3)
PMU2_VOL_GATE_CON(0x7 0x0 0x3)
PMU2_QCHANNEL_PWR_CON(0x0)PMU2_QCHANNEL_STATUS(0xfe0007f)
PMU1_DDR_PWR_CON(0x747 0x747 0x747 0x747)
PMU1_DDR_PWR_SFTCON(0x900 0x900 0x9000x900)
PMU1_PLLPD_CON(0xffff 0x3)
PMU2_PWR_CON1(0xfe)
PMU2_DSU_PWR_CON(0x3)
PMU2_CORE_PWR_CON0(0x1 0x1)
PMU2_CORE_AUTO_PWR_CON0(0x0 0x0)
PMU2_CLUSTER_IDLE_CON(0x75)
INFO:   PMU0_PWR_CON(0x0) PMU0_WAKEUP_INT_CON(0x0)
PMU0_DDR_RET_CON(0x0 0x0)
PMU1_GRF_SOC_CON2(0x7777)PMU0_GRF_OS_REGS9(0x5599e70f)
9aS

log.rar

1.49 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

789

积分

2

威望

4

贡献

技术大神

Rank: 3Rank: 3

积分
789
发表于 2023-6-19 17:39:56        只看该作者  沙发
sed -i 's/#HandlePowerKey=.*/HandlePowerKey=ignore/g' /etc/systemd/logind.conf
回复

使用道具 举报

54

积分

0

威望

0

贡献

技术小白

积分
54
发表于 2023-6-20 08:50:52        只看该作者  板凳
penguin 发表于 2023-6-19 17:39
sed -i 's/#HandlePowerKey=.*/HandlePowerKey=ignore/g' /etc/systemd/logind.conf

我的系统是buildroot(kernel+weston),不是Android,也不是Ubuntu或Debian,所以没有这个配置文件
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表