mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
sysstat: dont scan for thermalzone gpus unless dgpu monitoring is on
This commit is contained in:
@@ -1319,16 +1319,17 @@ Singleton {
|
||||
// Priority (when dGPU monitoring enabled): NVIDIA > AMD dGPU > Intel Arc > AMD iGPU
|
||||
// Priority (when dGPU monitoring disabled): AMD iGPU only (discrete GPUs skipped to preserve D3cold)
|
||||
function selectBestGpu() {
|
||||
const dgpuEnabled = Settings.data.systemMonitor.enableDgpuMonitoring;
|
||||
|
||||
if (root.foundGpuSensors.length === 0) {
|
||||
// No hwmon GPU sensors found, try thermal_zone fallback
|
||||
if (root.gpuThermalZonePath === "" && root.gpuThermalZonePaths.length === 0) {
|
||||
if (dgpuEnabled && root.gpuThermalZonePath === "" && root.gpuThermalZonePaths.length === 0) {
|
||||
// Thermal zone scanner hasn't found GPU zones yet; start a scan
|
||||
thermalZoneScanner.startScan();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const dgpuEnabled = Settings.data.systemMonitor.enableDgpuMonitoring;
|
||||
let best = null;
|
||||
|
||||
for (var i = 0; i < root.foundGpuSensors.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user