195c513ecSRafael J. Wysocki ACPI Time and Alarm (TAD) device attributes. 295c513ecSRafael J. Wysocki 395c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/caps 495c513ecSRafael J. WysockiDate: March 2018 595c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 695c513ecSRafael J. WysockiDescription: 795c513ecSRafael J. Wysocki (RO) Hexadecimal bitmask of the TAD attributes are reported by 895c513ecSRafael J. Wysocki the platform firmware (see ACPI 6.2, section 9.18.2): 995c513ecSRafael J. Wysocki 1034433332SMauro Carvalho Chehab ======= ====================================================== 1195c513ecSRafael J. Wysocki BIT(0): AC wakeup implemented if set 1295c513ecSRafael J. Wysocki BIT(1): DC wakeup implemented if set 1395c513ecSRafael J. Wysocki BIT(2): Get/set real time features implemented if set 1495c513ecSRafael J. Wysocki BIT(3): Real time accuracy in milliseconds if set 1595c513ecSRafael J. Wysocki BIT(4): Correct status reported for wakeups from S4/S5 if set 1695c513ecSRafael J. Wysocki BIT(5): The AC timer wakes up from S4 if set 1795c513ecSRafael J. Wysocki BIT(6): The AC timer wakes up from S5 if set 1895c513ecSRafael J. Wysocki BIT(7): The DC timer wakes up from S4 if set 1995c513ecSRafael J. Wysocki BIT(8): The DC timer wakes up from S5 if set 2034433332SMauro Carvalho Chehab ======= ====================================================== 2195c513ecSRafael J. Wysocki 2295c513ecSRafael J. Wysocki The other bits are reserved. 2395c513ecSRafael J. Wysocki 2495c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/ac_alarm 2595c513ecSRafael J. WysockiDate: March 2018 2695c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2795c513ecSRafael J. WysockiDescription: 2895c513ecSRafael J. Wysocki (RW) The AC alarm timer value. 2995c513ecSRafael J. Wysocki 3095c513ecSRafael J. Wysocki Reads return the current AC alarm timer value in seconds or 3195c513ecSRafael J. Wysocki "disabled", if the AC alarm is not set to wake up the system. 3295c513ecSRafael J. Wysocki 3395c513ecSRafael J. Wysocki Write a new AC alarm timer value in seconds or "disabled" to it 3495c513ecSRafael J. Wysocki to set the AC alarm timer or to disable it, respectively. 3595c513ecSRafael J. Wysocki 3695c513ecSRafael J. Wysocki If the AC alarm timer is set through this attribute and it 3795c513ecSRafael J. Wysocki expires, it will immediately wake up the system from the S3 3895c513ecSRafael J. Wysocki sleep state (and from S4/S5 too if supported) until its status 3995c513ecSRafael J. Wysocki is explicitly cleared via the ac_status attribute. 4095c513ecSRafael J. Wysocki 4195c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/ac_policy 4295c513ecSRafael J. WysockiDate: March 2018 4395c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 4495c513ecSRafael J. WysockiDescription: 4595c513ecSRafael J. Wysocki (RW) The AC alarm expired timer wake policy (see ACPI 6.2, 4695c513ecSRafael J. Wysocki Section 9.18 for details). 4795c513ecSRafael J. Wysocki 4895c513ecSRafael J. Wysocki Reads return the current expired timer wake delay for the AC 4995c513ecSRafael J. Wysocki alarm timer or "never", if the policy is to discard AC timer 5095c513ecSRafael J. Wysocki wakeups if the system is on DC power. 5195c513ecSRafael J. Wysocki 5295c513ecSRafael J. Wysocki Write a new expired timer wake delay for the AC alarm timer in 5395c513ecSRafael J. Wysocki seconds or "never" to it to set the expired timer wake delay for 5495c513ecSRafael J. Wysocki the AC alarm timer or to set its expired wake policy to discard 5595c513ecSRafael J. Wysocki wakeups if the system is on DC power, respectively. 5695c513ecSRafael J. Wysocki 5795c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/ac_status 5895c513ecSRafael J. WysockiDate: March 2018 5995c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 6095c513ecSRafael J. WysockiDescription: 6195c513ecSRafael J. Wysocki (RW) The AC alarm status. 6295c513ecSRafael J. Wysocki 6395c513ecSRafael J. Wysocki Reads return a hexadecimal bitmask representing the AC alarm 6495c513ecSRafael J. Wysocki timer status with the following meaning of bits (see ACPI 6.2, 6595c513ecSRafael J. Wysocki Section 9.18.5): 6695c513ecSRafael J. Wysocki 6734433332SMauro Carvalho Chehab ======= ====================================================== 6895c513ecSRafael J. Wysocki Bit(0): The timer has expired if set. 6995c513ecSRafael J. Wysocki Bit(1): The timer has woken up the system from a sleep state 7095c513ecSRafael J. Wysocki (S3 or S4/S5 if supported) if set. 7134433332SMauro Carvalho Chehab ======= ====================================================== 7295c513ecSRafael J. Wysocki 7395c513ecSRafael J. Wysocki The other bits are reserved. 7495c513ecSRafael J. Wysocki 7595c513ecSRafael J. Wysocki Reads also cause the AC alarm timer status to be reset. 7695c513ecSRafael J. Wysocki 77*b18ee4a4SSlark Xiao Another way to reset the status of the AC alarm timer is to 7895c513ecSRafael J. Wysocki write (the number) 0 to this file. 7995c513ecSRafael J. Wysocki 8095c513ecSRafael J. Wysocki If the status return value indicates that the timer has expired, 8195c513ecSRafael J. Wysocki it will immediately wake up the system from the S3 sleep state 8295c513ecSRafael J. Wysocki (and from S4/S5 too if supported) until its status is explicitly 8395c513ecSRafael J. Wysocki cleared through this attribute. 8495c513ecSRafael J. Wysocki 8595c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/dc_alarm 8695c513ecSRafael J. WysockiDate: March 2018 8795c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 8895c513ecSRafael J. WysockiDescription: 8995c513ecSRafael J. Wysocki (RW,optional) The DC alarm timer value. 9095c513ecSRafael J. Wysocki 9195c513ecSRafael J. Wysocki This attribute is only present if the TAD supports a separate 9295c513ecSRafael J. Wysocki DC timer. 9395c513ecSRafael J. Wysocki 9495c513ecSRafael J. Wysocki It is analogous to the ac_alarm attribute. 9595c513ecSRafael J. Wysocki 9695c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/dc_policy 9795c513ecSRafael J. WysockiDate: March 2018 9895c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 9995c513ecSRafael J. WysockiDescription: 10095c513ecSRafael J. Wysocki (RW,optional) The DC alarm expired timer wake policy. 10195c513ecSRafael J. Wysocki 10295c513ecSRafael J. Wysocki This attribute is only present if the TAD supports a separate 10395c513ecSRafael J. Wysocki DC timer. 10495c513ecSRafael J. Wysocki 10595c513ecSRafael J. Wysocki It is analogous to the ac_policy attribute. 10695c513ecSRafael J. Wysocki 10795c513ecSRafael J. WysockiWhat: /sys/bus/platform/devices/ACPI000E:00/dc_status 10895c513ecSRafael J. WysockiDate: March 2018 10995c513ecSRafael J. WysockiContact: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 11095c513ecSRafael J. Wysocki 11195c513ecSRafael J. WysockiDescription: 11295c513ecSRafael J. Wysocki (RW,optional) The DC alarm status. 11395c513ecSRafael J. Wysocki 11495c513ecSRafael J. Wysocki This attribute is only present if the TAD supports a separate 11595c513ecSRafael J. Wysocki DC timer. 11695c513ecSRafael J. Wysocki 11795c513ecSRafael J. Wysocki It is analogous to the ac_status attribute. 118