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