diff -Nru thermald-2.4.9/debian/changelog thermald-2.4.9/debian/changelog --- thermald-2.4.9/debian/changelog 2023-07-05 19:37:32.000000000 +0800 +++ thermald-2.4.9/debian/changelog 2023-08-10 15:36:06.000000000 +0800 @@ -1,3 +1,9 @@ +thermald (2.4.9-1ubuntu0.4) jammy; urgency=medium + + * Add support for Mateor Lake (LP: #2028217) + + -- Koba Ko Thu, 10 Aug 2023 15:36:06 +0800 + thermald (2.4.9-1ubuntu0.3) jammy; urgency=medium * Cherry-pick following fixes from thermald 2.5.1 and 2.5.2 (LP: #1995606) diff -Nru thermald-2.4.9/debian/patches/0015-Add-support-for-Mateor-Lake.patch thermald-2.4.9/debian/patches/0015-Add-support-for-Mateor-Lake.patch --- thermald-2.4.9/debian/patches/0015-Add-support-for-Mateor-Lake.patch 1970-01-01 08:00:00.000000000 +0800 +++ thermald-2.4.9/debian/patches/0015-Add-support-for-Mateor-Lake.patch 2023-08-10 15:34:03.000000000 +0800 @@ -0,0 +1,51 @@ +From 7000c53d80c69a01efbd1df9d7b35ecaa0d539c5 Mon Sep 17 00:00:00 2001 +From: Srinivas Pandruvada +Date: Thu, 15 Jun 2023 10:38:48 -0700 +Subject: [PATCH] Add support for Mateor Lake + +Add support for Matero Lake by adding CPU model and sysfs paths. +--- + src/thd_engine.cpp | 1 + + src/thd_engine_adaptive.cpp | 2 ++ + src/thd_gddv.cpp | 2 ++ + src/thd_int3400.cpp | 2 ++ + 4 files changed, 7 insertions(+) + +Index: thermald-2.4.9/src/thd_engine.cpp +=================================================================== +--- thermald-2.4.9.orig/src/thd_engine.cpp ++++ thermald-2.4.9/src/thd_engine.cpp +@@ -715,6 +715,7 @@ static supported_ids_t id_table[] = { + { 6, 0xba }, // Raptorlake + { 6, 0xbe }, // Alderlake N + { 6, 0xbf }, // Raptorlake S ++ { 6, 0xaa }, // Mateor Lake L + { 0, 0 } // Last Invalid entry + }; + +Index: thermald-2.4.9/src/thd_engine_adaptive.cpp +=================================================================== +--- thermald-2.4.9.orig/src/thd_engine_adaptive.cpp ++++ thermald-2.4.9/src/thd_engine_adaptive.cpp +@@ -2047,6 +2047,8 @@ int cthd_engine_adaptive::thd_engine_ini + int3400_base_path = "/sys/bus/platform/devices/INTC1041:00/"; + } else if (sysfs.exists("/sys/bus/platform/devices/INTC10A0:00")) { + int3400_base_path = "/sys/bus/platform/devices/INTC10A0:00/"; ++ } else if (sysfs.exists("/sys/bus/platform/devices/INTC1042:00")) { ++ int3400_base_path = "/sys/bus/platform/devices/INTC1042:00/"; + } else { + return THD_ERROR; + } +Index: thermald-2.4.9/src/thd_int3400.cpp +=================================================================== +--- thermald-2.4.9.orig/src/thd_int3400.cpp ++++ thermald-2.4.9/src/thd_int3400.cpp +@@ -40,6 +40,8 @@ cthd_INT3400::cthd_INT3400(std::string _ + base_path = "/sys/bus/acpi/devices/INTC1041:00/physical_node/uuids/"; + } else if (cdev_sysfs.exists("/sys/bus/acpi/devices/INTC10A0:00/physical_node/uuids")) { + base_path = "/sys/bus/acpi/devices/INTC10A0:00/physical_node/uuids/"; ++ } else if (cdev_sysfs.exists("/sys/bus/acpi/devices/INTC1042:00/physical_node/uuids")) { ++ base_path = "/sys/bus/acpi/devices/INTC1042:00/physical_node/uuids/"; + } + thd_log_info("INT3400 Base path is %s\n", base_path.c_str()); + } diff -Nru thermald-2.4.9/debian/patches/series thermald-2.4.9/debian/patches/series --- thermald-2.4.9/debian/patches/series 2023-07-05 19:24:04.000000000 +0800 +++ thermald-2.4.9/debian/patches/series 2023-08-10 15:36:06.000000000 +0800 @@ -12,3 +12,4 @@ 0012-Always-match-motion-0.patch 0013-Add-AlderLake-N.patch 0014-Process-ITMT-v2.patch +0015-Add-support-for-Mateor-Lake.patch