From bc00af81b9b9376069e66fbd9eb68f6988a83240 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Tue, 20 Mar 2018 15:29:31 +0900 Subject: [PATCH] scripts: Add pass-thermal.conf configuration Thermal Monitor is able to define the multiple scenario indicating the thermal status. Thermal Monitor uses the defined scenarios when reporting the current system status according to raw temperature. pass-thermal.conf contains the supported scenarios of Themral Monitor. It will be located in "/etc/pass/pass-thermal.conf" Change-Id: I98e4a109b47f1a4d398dfbf1cc4cdb08efa596e7 Signed-off-by: Chanwoo Choi --- CMakeLists.txt | 1 + packaging/pass.spec | 1 + scripts/pass-thermal.conf | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 scripts/pass-thermal.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index f787e45..26cab5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,6 +156,7 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-ldl" "-lm") INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/${PROJECT_NAME}.conf DESTINATION /etc/dbus-1/system.d) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-pmqos.conf DESTINATION /etc/pass) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-thermal.conf DESTINATION /etc/pass) CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) diff --git a/packaging/pass.spec b/packaging/pass.spec index 8c1ffc8..f274516 100644 --- a/packaging/pass.spec +++ b/packaging/pass.spec @@ -86,6 +86,7 @@ systemctl daemon-reload %license LICENSE %config %{_sysconfdir}/dbus-1/system.d/%{daemon_name}.conf %config %{_sysconfdir}/pass/pass-pmqos.conf +%config %{_sysconfdir}/pass/pass-thermal.conf %{_bindir}/%{daemon_name} %{_unitdir}/multi-user.target.wants/%{daemon_name}.service %{_unitdir}/%{daemon_name}.service diff --git a/scripts/pass-thermal.conf b/scripts/pass-thermal.conf new file mode 100644 index 0000000..ad0f02d --- /dev/null +++ b/scripts/pass-thermal.conf @@ -0,0 +1,25 @@ +[thermal] +# set to "yes" thermal_support (Default value is no) +# set thermal_number_of_scenario to be tested +thermal_support=yes +thermal_number_of_scenario=4 + +# describe the scenario section as follows +#[Scenario0] +#name=ReleaseAction +#support=yes +[thermal.scenario0] +name=ReleaseAction +support=yes + +[thermal.scenario1] +name=WarningAction +support=yes + +[thermal.scenario2] +name=LimitAction +support=yes + +[thermal.scenario3] +name=ShutdownAction +support=yes -- 2.7.4