GPU temp script is now checks commands

This commit is contained in:
lanxu 2017-02-19 23:30:12 +02:00
parent 18d6881d75
commit 44965bf762

View File

@ -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"