通过串口或者adb 输入如下命令
setprop debug.sf.fps 1
logcat | grep mFps
滑动界面后可以在logcat中可以输出当前系统显示的帧率信息
rk3588_s:/ $ setprop debug.sf.fps 1
rk3588_s:/ $ logcat | grep mFps
06-27 13:00:11.099 367 367 D SurfaceFlinger: mFrameCount = 1 mFps = 0.000
06-27 13:00:11.600 367 367 D SurfaceFlinger: mFrameCount = 31 mFps = 59.821
06-27 13:00:12.101 367 367 D SurfaceFlinger: mFrameCount = 61 mFps = 59.888
06-27 13:00:12.617 367 367 D SurfaceFlinger: mFrameCount = 91 mFps = 58.149
06-27 13:00:13.118 367 367 D SurfaceFlinger: mFrameCount = 119 mFps = 55.853
06-27 13:00:13.620 367 367 D SurfaceFlinger: mFrameCount = 149 mFps = 59.752
06-27 13:00:14.121 367 367 D SurfaceFlinger: mFrameCount = 179 mFps = 59.884
06-27 13:00:14.622 367 367 D SurfaceFlinger: mFrameCount = 209 mFps = 59.906
06-27 13:00:15.123 367 367 D SurfaceFlinger: mFrameCount = 239 mFps = 59.895
06-27 13:00:15.624 367 367 D SurfaceFlinger: mFrameCount = 269 mFps = 59.893
06-27 13:00:16.158 367 367 D SurfaceFlinger: mFrameCount = 292 mFps = 43.066
06-27 13:00:17.310 367 367 D SurfaceFlinger: mFrameCount = 308 mFps = 13.893
cat /d/dri/0/summary
通过该命令可以查看显示分分辨率和使用图层信息
130|rk3588_s:/ $ cat /d/dri/0/summary
Video Port0: DISABLED
Video Port1: DISABLED
Video Port2: DISABLED
Video Port3: ACTIVE
Connector: DSI-1
bus_format[100a]: RGB888_1X24
overlay_mode[0] output_mode[0] color_space[0], eotf:0
Display mode: 1080x1920p60
clk[132000] real_clk[132000] type[48] flag[a]
H: 1080 1095 1099 1129
V: 1920 1935 1937 1952
Cluster3-win0: ACTIVE
win_id: 6
format: AB24 little-endian (0x34324241)[AFBC] SDR[0] color_space[0] glb_alpha[0xff]
rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
csc: y2r[0] r2y[0] csc mode[0]
zpos: 0
src: pos[0, 0] rect[1080 x 1920]
dst: pos[0, 0] rect[1080 x 1920]
buf[0]: addr: 0x00000000eefb9000 pitch: 4352 offset: 0
echo c > /proc/sysrq-trigger
echo "PowerManagerService.noSuspend" > /sys/power/wake_lock
RK356x cpu增加了,task boost的功能:(比如后台有任务切换都会boost),可以通过如下命令进行开关
echo 0 > /proc/sys/kernel/sched_performance_bias
echo 1 > /proc/sys/kernel/sched_performance_bias
通过adb 敲命令的方式:
echo 1 > /sys/module/pm_domains/parameters/always_on
echo 1 > /sys/module/clk_gate/parameters/always_on
echo 0 > sys/devices/system/cpu/cpux/online
echo 1 > sys/devices/system/cpu/cpux/online
echo mem > sys/power/state
setprop use_nuplayer true
rk3588_s:/ # settings put system accelerometer_rotation 0
rk3588_s:/ # content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0 //旋转0度
rk3588_s:/ # content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1 //旋转90度
rk3588_s:/ # content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1 //旋转180度
rk3588_s:/ # content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:3 //旋转270度
设置系统分辨率为3840x2160@60
setprop persist.vendor.framebuffer.main 3840x2160@60
持续更新中…