20210427瑞芯微RK3399在Android10下查看芯片温度

20210427瑞芯微RK3399在Android10下查看芯片温度
2021/4/30 16:52

开发板:天启(t-firefly)AIO-3399J

https://www.t-firefly.com/doc/download/31.html
SDK:版本号Android10.0


https://blog.csdn.net/mialo163/article/details/100921076
RK3399 嵌入式开发板thermal_zone 配置方法 (温度控制)
mialo163 2020-04-06 17:53:25  1373  收藏

图片

Z:\fanzong\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399.dtsi
查看设备树:
    thermal_zones: thermal-zones {
        soc_thermal: soc-thermal {
            polling-delay-passive = <20>;
            polling-delay = <1000>;
            sustainable-power = <1000>; /* milliwatts */

            thermal-sensors = <&tsadc 0>;

            trips {
                threshold: trip-point-0 {
                    temperature = <70000>;
                    hysteresis = <2000>;
                    type = "passive";
                };
                target: trip-point-1 {
                    temperature = <85000>;
                    hysteresis = <2000>;
                    type = "passive";
                };
                soc_crit: soc-crit {
                    temperature = <115000>; /* millicelsius */
                    hysteresis = <2000>; /* millicelsius */
                    type = "critical";
                };
            };
 

threshold 节点表示温度超过 70 度开始限制频率,type 要设置成"passive";
target 节点表示限制系统的最高温度会 85 度左右,type 要设置成"passive";
soc_crit 节点表示温度超过 115 度,自动重启系统,type 要设置成"critical"。

图片


rootroot@rootroot-Inspiron-3880:~/fanzong/rk3399_Android10.0/kernel$ grep thermal-zones . -R
./Documentation/devicetree/bindings/display/repaper.txt:    thermal-zones {
./Documentation/devicetree/bindings/hwmon/pwm-fan.txt:    thermal-zones {
./Documentation/devicetree/bindings/thermal/brcm,ns-thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt:       thermal-zones {
./Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt:    thermal-zones {
./Documentation/devicetree/bindings/thermal/uniphier-thermal.txt:    thermal-zones {
./Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt:    thermal-zones {
./Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/rcar-thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/thermal.txt:* The thermal-zones node
./Documentation/devicetree/bindings/thermal/thermal.txt:The "thermal-zones" node is a container for all thermal zone nodes. It shall
./Documentation/devicetree/bindings/thermal/thermal.txt:"Thermal zone nodes". The "thermal-zones" node appears under "/".
./Documentation/devicetree/bindings/thermal/thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/max77620_thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/rockchip-thermal.txt:thermal-zones {
./Documentation/devicetree/bindings/thermal/zx2967-thermal.txt:Please note: slope coefficient defined in thermal-zones section need to be
./Documentation/devicetree/bindings/thermal/zx2967-thermal.txt:    thermal-zones {
./Documentation/devicetree/bindings/arm/arm,scpi.txt:thermal-zones {
./Documentation/devicetree/bindings/arm/marvell/ap806-system-controller.txt:- #thermal-sensor-cells: shall be <1> when thermal-zones subnodes refer
./Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt:- #thermal-sensor-cells: shall be <1> when thermal-zones subnodes refer
./Documentation/devicetree/bindings/arm/arm,scmi.txt:thermal-zones {
./Documentation/thermal/power_allocator.txt:    thermal-zones {
Binary file ./zboot.img matches
Binary file ./resource.img matches
Binary file ./kernel.img matches
Binary file ./vmlinux.o matches
./arch/powerpc/boot/dts/fsl/t1023si-post.dtsi:    thermal-zones {
./arch/powerpc/boot/dts/fsl/t1040si-post.dtsi:    thermal-zones {
./arch/arm64/boot/dts/nvidia/tegra210.dtsi:    thermal-zones {
./arch/arm64/boot/dts/nvidia/tegra132.dtsi:    thermal-zones {
./arch/arm64/boot/dts/nvidia/tegra186.dtsi:    thermal-zones {
./arch/arm64/boot/dts/rockchip/rk3368.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/px30.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/rk3328.dtsi:    thermal-zones {
./arch/arm64/boot/dts/rockchip/px30-robot-no-gpu.dtsi:    /delete-node/ thermal-zones;
./arch/arm64/boot/dts/rockchip/px30-robot-no-gpu.dtsi:    thermal_zones: thermal-zones {
Binary file ./arch/arm64/boot/dts/rockchip/rk3399-firefly-aio-lvds-HSX101H40C.dtb matches
./arch/arm64/boot/dts/rockchip/rk3399pro-npu.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/rk1808.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/.rk3399-firefly-aio-lvds-HSX101H40C.dtb.dts.tmp: thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/rk3399.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/rockchip/rk3308.dtsi:    thermal_zones: thermal-zones {
./arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi:    thermal-zones {
./arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi:thermal-zones {
./arch/arm64/boot/dts/exynos/exynos7.dtsi:        thermal-zones {
./arch/arm64/boot/dts/hisilicon/hi6220.dtsi:        thermal-zones {
./arch/arm64/boot/dts/hisilicon/hi3660.dtsi:        thermal-zones {
./arch/arm64/boot/dts/renesas/r8a77965.dtsi:    thermal-zones {
./arch/arm64/boot/dts/renesas/r8a7795.dtsi:    thermal-zones {
./arch/arm64/boot/dts/renesas/r8a77995.dtsi:    thermal-zones {
./arch/arm64/boot/dts/renesas/r8a7796.dtsi:    thermal-zones {
./arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi:    thermal-zones {
./arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi:    thermal-zones {
./arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi:    thermal-zones {
./arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi:    thermal-zones {
./arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi:    thermal-zones {
./arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts:    thermal-zones {
./arch/arm64/boot/dts/qcom/msm8916.dtsi:    thermal-zones {
./arch/arm64/boot/dts/qcom/msm8996.dtsi:    thermal-zones {
./arch/arm64/boot/dts/mediatek/mt7622.dtsi:    thermal-zones {
./arch/arm64/boot/dts/mediatek/mt8173.dtsi:    thermal-zones {
./arch/arm64/boot/dts/arm/juno-base.dtsi:    thermal-zones {
Binary file ./arch/arm64/boot/Image matches
./arch/arm/boot/dts/exynos5420.dtsi:    thermal-zones {
./arch/arm/boot/dts/r8a7743.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos4412-odroid-common.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi:    thermal-zones {
./arch/arm/boot/dts/qcom-msm8974.dtsi:    thermal-zones {
./arch/arm/boot/dts/gemini-dlink-dns-313.dts:    thermal-zones {
./arch/arm/boot/dts/omap34xx.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/qcom-apq8084.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos5422-odroidhc1.dts:    thermal-zones {
./arch/arm/boot/dts/omap4460.dtsi:    thermal-zones {
./arch/arm/boot/dts/uniphier-pxs2.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos3250-monk.dts:    thermal-zones {
./arch/arm/boot/dts/exynos4210-trats.dts:    thermal-zones {
./arch/arm/boot/dts/tegra124-jetson-tk1.dts:    thermal-zones {
./arch/arm/boot/dts/exynos4412-odroidu3.dts:    thermal-zones {
./arch/arm/boot/dts/mt7623.dtsi:    thermal-zones {
./arch/arm/boot/dts/sun6i-a31.dtsi:    thermal-zones {
./arch/arm/boot/dts/r8a7790.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos3250-artik5.dtsi:    thermal-zones {
./arch/arm/boot/dts/omap36xx.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/mt2701.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos5410.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos4210.dtsi:    thermal-zones {
./arch/arm/boot/dts/r8a7791.dtsi:    thermal-zones {
./arch/arm/boot/dts/rk312x.dtsi:    thermal-zones {
./arch/arm/boot/dts/sun5i-a13.dtsi:    thermal-zones {
./arch/arm/boot/dts/r8a7793.dtsi:    thermal-zones {
./arch/arm/boot/dts/rv1108.dtsi:    thermal-zones {
./arch/arm/boot/dts/rk3288.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/exynos4412-midas.dtsi:    thermal-zones {
./arch/arm/boot/dts/sun7i-a20.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos4-cpu-thermal.dtsi:thermal-zones {
./arch/arm/boot/dts/dra7.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/rk3128x.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/omap443x.dtsi:    thermal-zones {
./arch/arm/boot/dts/bcm-nsp.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos5250.dtsi:    thermal-zones {
./arch/arm/boot/dts/omap5.dtsi:    thermal-zones {
./arch/arm/boot/dts/tegra124.dtsi:    thermal-zones {
./arch/arm/boot/dts/exynos3250-rinato.dts:    thermal-zones {
./arch/arm/boot/dts/tegra124-apalis.dtsi:    thermal-zones {
./arch/arm/boot/dts/qcom-apq8064.dtsi:    thermal-zones {
./arch/arm/boot/dts/rv1126.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/rk322x.dtsi:    thermal_zones: thermal-zones {
./arch/arm/boot/dts/bcm5301x.dtsi:    thermal-zones {
./arch/arm/boot/dts/sun8i-a33.dtsi:    thermal-zones {
./arch/arm/boot/dts/ls1021a.dtsi:        thermal-zones {
./arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi:    thermal-zones {
./arch/arm/boot/dts/tango4-smp8758.dtsi:    thermal-zones {
./arch/arm/boot/dts/bcm283x.dtsi:    thermal-zones {
./arch/arm/boot/dts/sun4i-a10.dtsi:    thermal-zones {
./arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/powerpc/fsl/t1023si-post.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/powerpc/fsl/t1040si-post.dtsi:    thermal-zones {
grep: ./scripts/dtc/include-prefixes/cris: No such file or directory
grep: ./scripts/dtc/include-prefixes/metag: No such file or directory
./scripts/dtc/include-prefixes/arm64/nvidia/tegra210.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/nvidia/tegra132.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/nvidia/tegra186.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/rk3368.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/px30.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/rk3328.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/px30-robot-no-gpu.dtsi:    /delete-node/ thermal-zones;
./scripts/dtc/include-prefixes/arm64/rockchip/px30-robot-no-gpu.dtsi:    thermal_zones: thermal-zones {
Binary file ./scripts/dtc/include-prefixes/arm64/rockchip/rk3399-firefly-aio-lvds-HSX101H40C.dtb matches
./scripts/dtc/include-prefixes/arm64/rockchip/rk3399pro-npu.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/rk1808.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/.rk3399-firefly-aio-lvds-HSX101H40C.dtb.dts.tmp: thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/rk3399.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/rockchip/rk3308.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm64/socionext/uniphier-ld20.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/exynos/exynos5433-tmu.dtsi:thermal-zones {
./scripts/dtc/include-prefixes/arm64/exynos/exynos7.dtsi:        thermal-zones {
./scripts/dtc/include-prefixes/arm64/hisilicon/hi6220.dtsi:        thermal-zones {
./scripts/dtc/include-prefixes/arm64/hisilicon/hi3660.dtsi:        thermal-zones {
./scripts/dtc/include-prefixes/arm64/renesas/r8a77965.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/renesas/r8a7795.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/renesas/r8a77995.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/renesas/r8a7796.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/freescale/fsl-ls1046a.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/freescale/fsl-ls208xa.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/freescale/fsl-ls1043a.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/freescale/fsl-ls1088a.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/freescale/fsl-ls1012a.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/amlogic/meson-gxm-khadas-vim2.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/qcom/msm8916.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/qcom/msm8996.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/mediatek/mt7622.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/mediatek/mt8173.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm64/arm/juno-base.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos5420.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/r8a7743.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4412-odroid-common.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4412-itop-scp-core.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/qcom-msm8974.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/gemini-dlink-dns-313.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/omap34xx.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/qcom-apq8084.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos5422-odroidhc1.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/omap4460.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/uniphier-pxs2.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos3250-monk.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4210-trats.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/tegra124-jetson-tk1.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4412-odroidu3.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/mt7623.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/sun6i-a31.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/r8a7790.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos3250-artik5.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/omap36xx.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/mt2701.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos5410.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4210.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/r8a7791.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/rk312x.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/sun5i-a13.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/r8a7793.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/rv1108.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/rk3288.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4412-midas.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/sun7i-a20.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos4-cpu-thermal.dtsi:thermal-zones {
./scripts/dtc/include-prefixes/arm/dra7.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/rk3128x.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/omap443x.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/bcm-nsp.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos5250.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/omap5.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/tegra124.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos3250-rinato.dts:    thermal-zones {
./scripts/dtc/include-prefixes/arm/tegra124-apalis.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/qcom-apq8064.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/rv1126.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/rk322x.dtsi:    thermal_zones: thermal-zones {
./scripts/dtc/include-prefixes/arm/bcm5301x.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/sun8i-a33.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/ls1021a.dtsi:        thermal-zones {
./scripts/dtc/include-prefixes/arm/exynos5422-odroidxu3-common.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/tango4-smp8758.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/bcm283x.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/sun4i-a10.dtsi:    thermal-zones {
./scripts/dtc/include-prefixes/arm/tegra124-apalis-v1.2.dtsi:    thermal-zones {
Binary file ./.tmp_vmlinux1 matches
Binary file ./boot.img matches
Binary file ./vmlinux matches
./drivers/thermal/qoriq_thermal.c:    np = of_find_node_by_name(NULL, "thermal-zones");
Binary file ./drivers/thermal/of-thermal.o matches
./drivers/thermal/of-thermal.c:    np = of_find_node_by_name(NULL, "thermal-zones");
./drivers/thermal/of-thermal.c:    np = of_find_node_by_name(NULL, "thermal-zones");
./drivers/thermal/of-thermal.c:    np = of_find_node_by_name(NULL, "thermal-zones");
Binary file ./.tmp_vmlinux2 matches
rootroot@rootroot-Inspiron-3880:~/fanzong/rk3399_Android10.0/kernel$ 


https://blog.csdn.net/weixin_38884324/article/details/80044191
獲取 RK3399 CPU 溫度

彥霖 2018-04-22 22:37:19  2951  收藏 6

linux 代碼 ( 你可以用 adb 工具來測試 ):

cat /sys/class/thermal/thermal_zone0/temp

輸出:53333,代表 53.333 度


console:/ $ cd /sys/class/thermal/
console:/sys/class/thermal $
console:/sys/class/thermal $ ll
total 0
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone1 -> ../../devices/virtual/thermal/thermal_zone1
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone2 -> ../../devices/virtual/thermal/thermal_zone2
console:/sys/class/thermal $
console:/sys/class/thermal $ cd the
thermal_zone0/  thermal_zone1/  thermal_zone2/
console:/sys/class/thermal $ cd thermal_zone0
console:/sys/class/thermal/thermal_zone0 $
console:/sys/class/thermal/thermal_zone0 $ ll
total 0
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 available_policies
lrwxrwxrwx 1 root   root      0 2021-04-30 08:42 cdev0 -> ../cooling_device0
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 cdev0_trip_point
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 cdev0_weight
lrwxrwxrwx 1 root   root      0 2021-04-30 08:42 cdev1 -> ../cooling_device1
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 cdev1_trip_point
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 cdev1_weight
lrwxrwxrwx 1 root   root      0 2021-04-30 08:42 cdev2 -> ../cooling_device2
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 cdev2_trip_point
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 cdev2_weight
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 integral_cutoff
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_d
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_i
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_po
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_pu
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 mode
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 offset
-rw-r--r-- 1 system system 4096 2021-04-30 07:08 policy
drwxr-xr-x 2 root   root      0 2021-04-30 07:08 power
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 slope
lrwxrwxrwx 1 root   root      0 2021-04-30 08:42 subsystem -> ../../../../class/thermal
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 sustainable_power
-r--r--r-- 1 root   root   4096 2021-04-30 07:21 temp
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_0_hyst
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_0_temp
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_0_type
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_1_hyst
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_1_temp
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_1_type
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_2_hyst
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_2_temp
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 trip_point_2_type
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 type
-rw-r--r-- 1 root   root   4096 2021-04-30 07:08 uevent
console:/sys/class/thermal/thermal_zone0 $
console:/sys/class/thermal/thermal_zone0 $ cat type
soc-thermal
console:/sys/class/thermal/thermal_zone0 $ cat temp
50555
console:/sys/class/thermal/thermal_zone0 $
console:/sys/class/thermal/thermal_zone0 $ cd ..
console:/sys/class/thermal $
console:/sys/class/thermal $
console:/sys/class/thermal $ ll
total 0
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1
lrwxrwxrwx 1 root root 0 2021-04-30 08:42 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone1 -> ../../devices/virtual/thermal/thermal_zone1
lrwxrwxrwx 1 root root 0 2021-04-30 07:08 thermal_zone2 -> ../../devices/virtual/thermal/thermal_zone2
console:/sys/class/thermal $
console:/sys/class/thermal $
console:/sys/class/thermal $ cd the
thermal_zone0/  thermal_zone1/  thermal_zone2/
console:/sys/class/thermal $ cd thermal_zone1
console:/sys/class/thermal/thermal_zone1 $
console:/sys/class/thermal/thermal_zone1 $ ll
total 0
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 available_policies
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 integral_cutoff
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_d
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_i
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_po
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 k_pu
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 mode
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 offset
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 passive
-rw-r--r-- 1 system system 4096 2021-04-30 07:08 policy
drwxr-xr-x 2 root   root      0 2021-04-30 07:08 power
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 slope
lrwxrwxrwx 1 root   root      0 2021-04-30 08:42 subsystem -> ../../../../class/thermal
-rw-r--r-- 1 root   root   4096 2021-04-30 08:42 sustainable_power
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 temp
-r--r--r-- 1 root   root   4096 2021-04-30 08:42 type
-rw-r--r-- 1 root   root   4096 2021-04-30 07:08 uevent
console:/sys/class/thermal/thermal_zone1 $ cat type
gpu-thermal
console:/sys/class/thermal/thermal_zone1 $ cat temp
50000
console:/sys/class/thermal/thermal_zone1 $
console:/sys/class/thermal/thermal_zone1 $ cd ../th
thermal_zone0/  thermal_zone1/  thermal_zone2/
d ../thermal_zone2                                                            <
console:/sys/class/thermal/thermal_zone2 $
console:/sys/class/thermal/thermal_zone2 $
console:/sys/class/thermal/thermal_zone2 $ ll
total 0
-r--r--r-- 1 root   root   4096 2021-04-30 08:43 available_policies
drwxr-xr-x 3 root   root      0 2021-04-30 07:08 hwmon0
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 integral_cutoff
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 k_d
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 k_i
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 k_po
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 k_pu
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 offset
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 passive
-rw-r--r-- 1 system system 4096 2021-04-30 07:08 policy
drwxr-xr-x 2 root   root      0 2021-04-30 07:08 power
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 slope
lrwxrwxrwx 1 root   root      0 2021-04-30 08:43 subsystem -> ../../../../class/thermal
-rw-r--r-- 1 root   root   4096 2021-04-30 08:43 sustainable_power
-r--r--r-- 1 root   root   4096 2021-04-30 08:43 temp
-r--r--r-- 1 root   root   4096 2021-04-30 08:43 type
-rw-r--r-- 1 root   root   4096 2021-04-30 07:08 uevent
console:/sys/class/thermal/thermal_zone2 $ cat type
test_battery
console:/sys/class/thermal/thermal_zone2 $ cat temp
2600
console:/sys/class/thermal/thermal_zone2 $

图片

图片

Microsoft Windows [版本 10.0.18363.1500]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\DELL>adb shell
rk3399_firefly_aio_lvds:/ $ cat /sys/class/thermal/thermal_zone*/type
soc-thermal
gpu-thermal
test_battery
rk3399_firefly_aio_lvds:/ $
rk3399_firefly_aio_lvds:/ $ cat /sys/class/thermal/thermal_zone*/temp
50555
50000
2600
rk3399_firefly_aio_lvds:/ $

图片

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值