mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
fix amdgpu fan and voltage for lm_sensors #130
This commit is contained in:
@@ -54,7 +54,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil {
|
||||
let sensors = [];
|
||||
for (var chipset in data) {
|
||||
let gpuFilter = /(radeon|amdgpu|nouveau)/;
|
||||
if (!data.hasOwnProperty(chipset) || gpuFlag != gpuFilter.test(chipset))
|
||||
if (!data.hasOwnProperty(chipset) || (gpuFlag != gpuFilter.test(chipset) && sensorType === 'temp'))
|
||||
continue;
|
||||
|
||||
let chipsetSensors = data[chipset]
|
||||
|
||||
Reference in New Issue
Block a user