def driverLevel(self):
		return slurp('/sys/devices/platform/thinkpad_hwmon/pwm1')
	def read(self):
		try:
			return float(slurp('/sys/devices/platform/thinkpad_hwmon/temp%d_input' % self.__id)) / 1000
		except IOError:
			return None
Exemple #3
0
 def __readPos(self, file):
     l = slurp(file)
     return [int(x) for x in l[1:-2].split(",")]