scripts: Add pass-thermal.conf configuration 67/174367/6
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 20 Mar 2018 06:29:31 +0000 (15:29 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 5 Apr 2018 09:50:49 +0000 (18:50 +0900)
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>
CMakeLists.txt
packaging/pass.spec
scripts/pass-thermal.conf [new file with mode: 0644]

index f787e45..26cab5a 100644 (file)
@@ -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)
index 8c1ffc8..f274516 100644 (file)
@@ -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 (file)
index 0000000..ad0f02d
--- /dev/null
@@ -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