Searched refs:rtc_device (Results 1 – 2 of 2) sorted by relevance
13 def read_rtc_wakeup(rtc_device): argument17 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' % rtc_device22 def read_rtc_wakeup_active_count(rtc_device): argument26 path = '/sys/class/rtc/%s/device/power/wakeup_active_count' % rtc_device30 def fire_wakealarm(rtc_device): argument34 rtc.set_wake_alarm('+1', rtc_device)56 for rtc_device in rtc.get_rtc_devices():57 if read_rtc_wakeup(rtc_device) != 'enabled':58 logging.info('RTC wakeup is not enabled: %s' % rtc_device)60 logging.info('RTC wakeup is enabled for: %s' % rtc_device)[all …]
21 def get_seconds(utc=True, rtc_device='rtc0'): argument25 with open('/sys/class/rtc/%s/since_epoch' % rtc_device) as rf:30 def write_wake_alarm(alarm_time, rtc_device='rtc0'): argument34 with open('/sys/class/rtc/%s/wakealarm' % rtc_device, 'w') as f:38 def set_wake_alarm(alarm_time, rtc_device='rtc0'): argument43 write_wake_alarm(alarm_time, rtc_device)48 write_wake_alarm('0', rtc_device)49 write_wake_alarm(alarm_time, rtc_device)