[modules/sensors] Use thermal zone, if specified on commandline
fixes #298
This commit is contained in:
parent
e80ae8b91e
commit
7af04b0556
1 changed files with 11 additions and 7 deletions
|
@ -32,6 +32,10 @@ class Module(bumblebee.engine.Module):
|
|||
self.determine_method()
|
||||
|
||||
def determine_method(self):
|
||||
if self.parameter("path") != None:
|
||||
self.use_sensors = False # use thermal zone
|
||||
else:
|
||||
# try to use output of sensors -u
|
||||
try:
|
||||
output = bumblebee.util.execute("sensors -u")
|
||||
self.use_sensors = True
|
||||
|
|
Loading…
Reference in a new issue