GPU temp script is now checks commands
This commit is contained in:
parent
18d6881d75
commit
44965bf762
@ -14,8 +14,13 @@ aticonfig_available = is_exe("/usr/bin/aticonfig")
|
|||||||
sensors_available = is_exe("/usr/bin/sensors")
|
sensors_available = is_exe("/usr/bin/sensors")
|
||||||
|
|
||||||
if sensors_available:
|
if sensors_available:
|
||||||
#command = "sensors radeon-pci-* | grep temp1"
|
commands = ["sensors radeon-pci-* | grep temp1", "sensors thinkpad-isa-* | grep ATI"]
|
||||||
command = "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:
|
if aticonfig_available:
|
||||||
command = "aticonfig --odgt"
|
command = "aticonfig --odgt"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user