From: Randolph Sapp <[email protected]> Thermal zones defined in dt are enabled by default. This script just adds a service that can be disabled to switch all thermal zones to kernel unmanaged.
We should not attempt to do that ourselves, as we could potentially interfere with other userspace tools like thermald. Signed-off-by: Randolph Sapp <[email protected]> --- .../packagegroups/packagegroup-arago-base.bb | 1 - .../recipes-core/thermal-init/thermal-init.bb | 19 ---------------- .../thermal-init/thermal-init/init | 22 ------------------- 3 files changed, 42 deletions(-) delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init.bb delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init/init diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb index 1971d45c..8b37aab9 100644 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb @@ -19,7 +19,6 @@ ARAGO_BASE = "\ initscript-telnetd \ systemd-telnetd \ ethtool \ - thermal-init \ bash \ opkg-bash-completion \ udev-extraconf \ diff --git a/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb b/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb deleted file mode 100644 index 56f1ba1a..00000000 --- a/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb +++ /dev/null @@ -1,19 +0,0 @@ -DESCRIPTION = "Init script to enable cpu_thermal zones" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" - -PR = "r1" - -SRC_URI = "file://init" - -INITSCRIPT_NAME = "thermal-zone-init" -INITSCRIPT_PARAMS = "defaults 98" - -inherit update-rc.d - -do_install() { - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} -} - -FILES:${PN} = "${sysconfdir} ${bindir}" diff --git a/meta-arago-distro/recipes-core/thermal-init/thermal-init/init b/meta-arago-distro/recipes-core/thermal-init/thermal-init/init deleted file mode 100644 index b7e8a36a..00000000 --- a/meta-arago-distro/recipes-core/thermal-init/thermal-init/init +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -if [ ! -d /sys/class/thermal ]; then - exit 0 -fi - -case "$1" in - start ) - echo "Enabling thermal zones..." - for i in /sys/class/thermal/thermal_zone*/mode; do - echo enabled > $i - done - ;; - stop ) - echo "Disabling thermal zones..." - for i in /sys/class/thermal/thermal_zone*/mode; do - echo disabled > $i - done - ;; -esac - -exit 0 -- 2.45.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15339): https://lists.yoctoproject.org/g/meta-arago/message/15339 Mute This Topic: https://lists.yoctoproject.org/mt/106234259/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
