20260310在瑞芯微原厂RK3576的Android14查看系统休眠时间

console:/ # getprop | grep -E "sleep|timeout|suspend|screenoff"

ro.rk.screenoff_time\]: \[60000

【不同命令获取的休眠时间不同步!】

console:/ # settings get system screen_off_timeout

3600000

设置为1小时(3600000毫秒)

settings put system screen_off_timeout 3600000

【屏幕解锁】

input keyevent 82

20260310在瑞芯微原厂RK3576的Android14查看系统休眠时间

2026/3/10 10:40

缘起:瑞芯微原厂RK3576的Android14刷机之后,一分钟就熄屏了。重启/再次开机还有屏幕锁定。

非常不方便于调试!

首先要看现在的息屏时间设置为多少?

使用乐晓电子的KickPi的K7开发板。

INFO: BL31: v2.3():v2.3-859-gc481e5368:derrick.huang, fwver: v1.14

INFO: enter: cfg=0x1020608, sleeptimes:12

INFO: deep

INFO: logoff

INFO: pmualive_32k

INFO: dis_osc

INFO: pmic_low_power

INFO: 32k ext

INFO: ext-32k invalid

INFO: io_ret (0x8)

INFO: sleep_pin: 0x1 0x0

INFO: gpio power info:

INFO: not config

INFO: pd_st:0x3ffffc1, idle_st:0x7ffff

INFO: GPIO0_INTEN: 0xffff 0xffff 0xff9e 0xffff 0x0 0xd408611a

INFO: GPIO1_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xcf03f600

INFO: GPIO2_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xdfda0c20

INFO: GPIO3_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xaf8c3ec4

INFO: GPIO4_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xfeb0c7d3

INFO: IRQ_EN: 77

INFO: IRQ_EN: 108

INFO: IRQ_EN: 135

INFO: IRQ_EN: 132

INFO: IRQ_EN: 189

INFO: IRQ_EN: 185

INFO: IRQ_EN: 201

INFO: IRQ_EN: 197

INFO: IRQ_EN: 193

INFO: IRQ_EN: 312

012aINFO: pvtm_32k_config:pvtm:

con0=0x23, con1=0x200

st0=0x1, st1=0x1bd

pvtm_freq: 20859khz, div = 651

real_freq: 31khz

bcdef3456789

INFO: PMU1_PWR_CON(0x2101) PMU1_CRU_PWR_CON(0x22f) PMU1_WAKEUP_INT_CON(0x100)

PMU2_BUS_IDLE_ST(0x7ffff) PMU2_PWR_GATE_ST(0x3ffffc1)

PMU2_BUS_IDLE_CON(0x0 0x3ff8)

PMU2_PWR_GATE_CON(0x3e 0x0)

PMU2_VOL_GATE_CON(0x31 0x200)

PMU1_DDR_PWR_CON(0x2b 0x2b)

PMU1_PLLPD_CON(0xfff)

INFO: PMU0_PWR_CON(0x0) PMU0_WAKEUP_INT_CON(0x0)

PMU0_DDR_RET_CON(0x0 0x0) PMU0_GRF_OS_REGS17(0x76543210)

PMU0GRF_SOC_CON5(0x64)

S

console:/ #

console:/ # getprop | grep -E "sleep|timeout|suspend|screenoff"

init.svc.system_suspend\]: \[running

init.svc_debug_pid.system_suspend\]: \[302

persist.wifi.sleep.delay.ms\]: \[0

ro.boottime.system_suspend\]: \[3416372980

ro.rk.screenoff_time\]: \[60000

ro.wifi.sleep.power.down\]: \[true

console:/ #

console:/ #

console:/ # settings get system screen_off_timeout

60000

console:/ #

console:/ #

console:/ # cat /sys/power/autosleep

cat: /sys/power/autosleep: No such file or directory

1|console:/ #

1|console:/ #

1|console:/ # cat /sys/power/wakeup_count

1256

console:/ #

【临时】配置 一个小时禁止休眠:

方案二:修改 Android 系统设置(推荐,重启后仍生效)

Android 标准的屏幕超时时间存储在 settings 数据库中,这个设置是持久化的。你可以在 root 后执行:

bash

设置为1小时(3600000毫秒)

settings put system screen_off_timeout 3600000

设置为永久不休眠(永不锁屏/休眠)

settings put system screen_off_timeout 2147483647

执行后立即生效,重启也有效。这是 Android 原生推荐的方式,大多数系统会优先读取这里的值。

console:/ #

console:/ # getprop | grep -E "sleep|timeout|suspend|screenoff"

init.svc.system_suspend\]: \[running

init.svc_debug_pid.system_suspend\]: \[301

persist.wifi.sleep.delay.ms\]: \[0

ro.boottime.system_suspend\]: \[3301478770

ro.rk.screenoff_time\]: \[60000

ro.wifi.sleep.power.down\]: \[true

console:/ #

console:/ # [ 1267.303094][ T532] healthd: battery l=50 v=3300 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ #

console:/ # settings get system screen_off_timeout

3600000

console:/ #

console:/ # [ 1327.303123][ T532] healthd: battery l=50 v=3300 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ # [ 1387.303022][ T532] healthd: battery l=50 v=3300 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ # cat /sys/power/autosleep

cat: /sys/power/autosleep: No such file or directory

1|console:/ #

1|console:/ # cat /sys/power/wakeup_count

2588

console:/ #

参考资料:

https://blog.csdn.net/u010164190/article/details/50551105

Android input keyevent命令

adb shell input keyevent 4 //模拟返回键(BACK) adb shell input keyevent 82 //模拟菜单键(MENU)

$adb shell input keyevent 3 //模拟主页键(HOME)

相关推荐
xhbh66617 小时前
内网端口映射外网完全教程:路由器端口转发配置+内网穿透工具实战
服务器·网络·智能路由器·端口映射·映射
zhaoyong22217 小时前
uni-app怎么获取短信验证码 uni-app接入短信平台流程【实战】
jvm·数据库·python
x***r15117 小时前
Wireshark 4.4.2 Intel 64.dmg Mac 安装教程|附抓包权限设置
网络
广州灵眸科技有限公司17 小时前
瑞芯微(EASY EAI)RV1126B 模型部署API说明
linux·开发语言·网络·人工智能·深度学习·算法·yolo
Jetev17 小时前
CSS如何实现图片自动裁剪填充_巧用object-fit属性控制尺寸
jvm·数据库·python
gjc59217 小时前
Linux MySQL服务器SSH多端口配置:解决22端口禁直连,兼顾安全与运维
linux·运维·服务器·mysql·ssh
处女座_三月17 小时前
时序数据库改存储时长
数据库·时序数据库
m0_4636722017 小时前
SQL窗口函数如何优化嵌套子查询_提升执行效率
jvm·数据库·python
9命怪猫17 小时前
公司内部网络计费参考
网络
Francek Chen17 小时前
【大数据存储与管理】云数据库:03 云数据库系统架构
大数据·数据库·分布式·架构