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)

相关推荐
人道领域11 小时前
【Redis实战篇】初步基于Redis实现的分布式锁---基于黑马点评
java·数据库·redis·分布式·缓存
健康平安的活着12 小时前
mysql中left join 不一定比 in效率高案例
数据库·mysql
神の愛17 小时前
左连接查询数据 left join
java·服务器·前端
IT摆渡者17 小时前
MySQL性能巡检脚本分析报告
数据库·mysql
Lyyaoo.18 小时前
Redis基础
数据库·redis·缓存
杨云龙UP19 小时前
ODA登录ODA Web管理界面时提示Password Expired的处理方法_20260423
linux·运维·服务器·数据库·oracle
解救女汉子19 小时前
SQL触发器如何获取触发源应用名_利用APP_NAME函数追踪
jvm·数据库·python
郑寿昌19 小时前
IIoT本体迁移的领域扩展机制
服务器·前端·microsoft
pingao14137819 小时前
智联未来:4G温湿度传感器如何重塑数据监测新生.态
大数据·网络·人工智能
songx_9919 小时前
Linux基础2
linux·运维·服务器