Add Framework laptop controls and monitoring with hardware-aware discovery

This commit is contained in:
ajp_anton
2026-09-11 10:29:27 +00:00
parent 787231cb03
commit 8719402d97
50 changed files with 3611 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
#pragma once
#include "hardware.h"
QString validateFan(const QVariantMap &config);
QString restoreFan();
QString updateFan(const QVariantMap &config, double &lastDuty, const QString &sys = QStringLiteral("/sys"));
inline const QString fanConfigPath = QStringLiteral("/run/framework-laptop-tools/fan.json");
inline const QString savedFanConfigPath = QStringLiteral("/etc/framework-laptop-tools/fan.json");
QVariantMap readFanConfig(QString &error);
QVector<double> fanTemperatures(const QVariantMap &config);