diff --git a/getGPUTemp.py b/getGPUTemp.py index 21f52f9..9aa879d 100755 --- a/getGPUTemp.py +++ b/getGPUTemp.py @@ -14,8 +14,13 @@ aticonfig_available = is_exe("/usr/bin/aticonfig") sensors_available = is_exe("/usr/bin/sensors") if sensors_available: - #command = "sensors radeon-pci-* | grep temp1" - command = "sensors thinkpad-isa-* | grep ATI" + commands = ["sensors radeon-pci-* | grep temp1", "sensors thinkpad-isa-* | grep ATI"] + + for try_command in commands: + command = try_command + return_command = check_output(command, shell=True) + if return_command is not None: + break if aticonfig_available: command = "aticonfig --odgt"