diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2018-03-20 15:29:31 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2018-04-05 18:50:49 +0900 |
commit | bc00af81b9b9376069e66fbd9eb68f6988a83240 (patch) | |
tree | 66273bee397326248946fa8f945a5ee1c36f0b9b | |
parent | f770e15a4e52ac4c7b4b6aedcf977a7a32ee1fbd (diff) | |
download | pass-bc00af81b9b9376069e66fbd9eb68f6988a83240.tar.gz pass-bc00af81b9b9376069e66fbd9eb68f6988a83240.tar.bz2 pass-bc00af81b9b9376069e66fbd9eb68f6988a83240.zip |
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 <cw00.choi@samsung.com>
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | packaging/pass.spec | 1 | ||||
-rw-r--r-- | scripts/pass-thermal.conf | 25 |
3 files changed, 27 insertions, 0 deletions
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 |