def __setMode(self, mode): if mode in [1, 2]: # Manual, auto print 'Fan mode %d' % mode burp('/sys/devices/platform/thinkpad_hwmon/pwm1_enable', '%d' % mode)
def driverSetLevel(self, level): burp('/sys/devices/platform/thinkpad_hwmon/pwm1', '%d' % level)
def __setWatchdog(self, time): burp('/sys/bus/platform/drivers/thinkpad_hwmon/fan_watchdog', '%d' % time)
def __set(self, mode): if self.__accessible: burp('/proc/acpi/ibm/led', '%d %s' % (self.__id, mode))