thermald/0001-Fix-path-for-Lenovo-kill-switch-heuristic.patch
DistroBaker 2cac7e7fc9 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/thermald.git#8d90a767d775d9916a452d7e057826dc1a3e711f
2020-10-30 15:48:24 +01:00

32 lines
1009 B
Diff

From 8c283e472fa3947ec66e3560599cdce378ce62a1 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Tue, 1 Sep 2020 14:09:47 +0200
Subject: [PATCH] Fix path for Lenovo kill-switch heuristic
The path was missing the /sys prefix, rendering the test useless. Add
the appropriate prefix and also a comment explaining why we do this.
---
src/thd_engine.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/thd_engine.cpp b/src/thd_engine.cpp
index ee4ed57..4f86549 100644
--- a/src/thd_engine.cpp
+++ b/src/thd_engine.cpp
@@ -698,7 +698,11 @@ static supported_ids_t id_table[] = {
};
std::vector<std::string> blocklist_paths {
- "/devices/platform/thinkpad_acpi/dytc_lapmode",
+ /* Some Lenovo machines have in-firmware thermal management,
+ * avoid having two entities trying to manage things.
+ * We may want to change this to dytc_perfmode once that is
+ * widely available. */
+ "/sys/devices/platform/thinkpad_acpi/dytc_lapmode",
};
#endif
--
2.26.2